mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
net/rtl8139: update network information when macaddr is changed in guest
rtl8139 has same problem as e1000, nic info isn't updated when macaddr is changed in guest. This patch updates the nic info when the last bit of macaddr is written. Signed-off-by: Amos Kong <akong@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
7c36507c2b
commit
23c37c37f0
1 changed files with 5 additions and 1 deletions
|
@ -2741,9 +2741,13 @@ static void rtl8139_io_writeb(void *opaque, uint8_t addr, uint32_t val)
|
|||
|
||||
switch (addr)
|
||||
{
|
||||
case MAC0 ... MAC0+5:
|
||||
case MAC0 ... MAC0+4:
|
||||
s->phys[addr - MAC0] = val;
|
||||
break;
|
||||
case MAC0+5:
|
||||
s->phys[addr - MAC0] = val;
|
||||
qemu_format_nic_info_str(qemu_get_queue(s->nic), s->phys);
|
||||
break;
|
||||
case MAC0+6 ... MAC0+7:
|
||||
/* reserved */
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue