From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz6Yd-00044i-5N for qemu-devel@nongnu.org; Mon, 23 Jun 2014 11:53:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wz6YX-0001VJ-GO for qemu-devel@nongnu.org; Mon, 23 Jun 2014 11:53:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wz6YX-0001UQ-7z for qemu-devel@nongnu.org; Mon, 23 Jun 2014 11:53:17 -0400 Date: Mon, 23 Jun 2014 18:53:33 +0300 From: "Michael S. Tsirkin" Message-ID: <1403538745-18622-10-git-send-email-mst@redhat.com> References: <1403538745-18622-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1403538745-18622-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL 09/23] 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: Peter Maydell , Peter Crosthwaite , Anthony Liguori , Gabriel Somlo , Alexander Graf , "Gabriel L. Somlo" , Stefan Hajnoczi From: "Gabriel L. Somlo" 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 Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/net/e1000.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/net/e1000.c b/hw/net/e1000.c index d6ef802..d20f8c8 100644 --- a/hw/net/e1000.c +++ b/hw/net/e1000.c @@ -213,6 +213,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 */ } } -- MST