From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wxego-0004oI-E9 for qemu-devel@nongnu.org; Thu, 19 Jun 2014 11:55:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wxegj-0001DS-Lf for qemu-devel@nongnu.org; Thu, 19 Jun 2014 11:55:50 -0400 Received: from mail-qg0-x22b.google.com ([2607:f8b0:400d:c04::22b]:56435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wxegj-0001DL-HD for qemu-devel@nongnu.org; Thu, 19 Jun 2014 11:55:45 -0400 Received: by mail-qg0-f43.google.com with SMTP id z60so2322918qgd.30 for ; Thu, 19 Jun 2014 08:55:45 -0700 (PDT) From: "Gabriel L. Somlo" Date: Thu, 19 Jun 2014 11:55:36 -0400 Message-Id: <1403193336-32101-5-git-send-email-somlo@cmu.edu> In-Reply-To: <1403193336-32101-1-git-send-email-somlo@cmu.edu> References: <1403193336-32101-1-git-send-email-somlo@cmu.edu> Subject: [Qemu-devel] [PATCH v2 4/4] e1000: signal guest on successful link auto-negotiation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: romain@dolbeau.org, mst@redhat.com, agraf@suse.de, stefanha@redhat.com, pbonzini@redhat.com, afaerber@suse.de Generate a link status change interrupt once link auto-netotiation is successfully completed. This does not affect Linux and Windows (XP and 7 tested) in any way, but is needed by the stock OS X driver (AppleIntel8254XEthernet.kext), which would otherwise fail to notice the link status change event. Signed-off-by: Gabriel Somlo Reviewed-by: Alexander Graf Reviewed-by: Stefan Hajnoczi --- hw/net/e1000.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/net/e1000.c b/hw/net/e1000.c index fd9b9be..8ee5225 100644 --- a/hw/net/e1000.c +++ b/hw/net/e1000.c @@ -344,6 +344,7 @@ e1000_autoneg_timer(void *opaque) s->phy_reg[PHY_LP_ABILITY] |= MII_LPAR_LPACK; s->phy_reg[PHY_STATUS] |= MII_SR_AUTONEG_COMPLETE; DBGOUT(PHY, "Auto negotiation is completed\n"); + set_ics(s, 0, E1000_ICS_LSC); /* signal link status change to guest */ } } -- 1.9.3