]> git.proxmox.com Git - qemu.git/commit
rtl8139: implement 8139cp link status
authorJason Wang <jasowang@redhat.com>
Fri, 28 Sep 2012 02:06:00 +0000 (10:06 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 8 Oct 2012 11:59:39 +0000 (13:59 +0200)
commit9e12c5aff2cfdd1574bf732c4bbf579d0c2e85c1
tree33b132c7934018fdf79d36162bdcc1f41ce89353
parent4bb26682f70a5f626cad3e0ac82bf4b6252ea7a4
rtl8139: implement 8139cp link status

Add a link status chang callback and change the link status bit in BMSR
& MSR accordingly. Tested in Linux/Windows guests.

The link status bit of MediaStatus is infered from BasicModeStatus,
they are inverse.

nc.link_down could not be migrated, this patch updates link_down in
rtl8139_post_load() to keep it coincident with real link status.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Amos Kong <akong@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
hw/rtl8139.c