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);
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
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