Re: [Qemu-devel] [PATCH v3] rtl8139: implement 8139cp link status

2012-09-14 Thread Amos Kong
On 14/09/12 16:36, Paolo Bonzini wrote: Il 14/09/2012 04:16, Amos Kong ha scritto: +/* The LinkDown bit of MediaStatus is inverse with link status */ +ret = 0xd0 | (s->nic->nc.link_down ? MSR_LinkDown : 0); DPRINTF("MediaStatus read 0x%x\n", ret);

Re: [Qemu-devel] [PATCH v3] rtl8139: implement 8139cp link status

2012-09-14 Thread Paolo Bonzini
Il 14/09/2012 04:16, Amos Kong ha scritto: > +/* The LinkDown bit of MediaStatus is inverse with link status */ > +ret = 0xd0 | (s->nic->nc.link_down ? MSR_LinkDown : 0); > DPRINTF("MediaStatus read 0x%x\n", ret); > break; > > @@ -3453,12 +3466,27

[Qemu-devel] [PATCH v3] rtl8139: implement 8139cp link status

2012-09-13 Thread Amos Kong
From: Jason Wang Add a link status chang callback and change the link status bit in BMSR & MSR accordingly. Tested in Linux/Windows guests. The LinkDown bit of MediaStatus is inverse with link status. Signed-off-by: Jason Wang Signed-off-by: Amos Kong --- v2: don't add MediaState in RTL8139St