From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjaUP-0007C2-Rf for qemu-devel@nongnu.org; Thu, 21 Nov 2013 15:04:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjaUF-0007aT-Vj for qemu-devel@nongnu.org; Thu, 21 Nov 2013 15:04:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:15017) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjaUF-0007a4-Ns for qemu-devel@nongnu.org; Thu, 21 Nov 2013 15:04:27 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rALK4Pim025706 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 21 Nov 2013 15:04:25 -0500 From: Vlad Yasevich Date: Thu, 21 Nov 2013 15:04:18 -0500 Message-Id: <1385064260-20962-1-git-send-email-vyasevic@redhat.com> Subject: [Qemu-devel] [RFC PATCH 0/2] Update HMP only upon mac change completion. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Vlad Yasevich , alex.williamson@redhat.com, akong@redhat.com, stefanha@redhat.com, mst@redhat.com Recent threads regarding e1000/rtl8139 and mac address change notifications prompted some research into the respecitive hw data sheets as well as available drivers. What I found is that each hw has a mechanism that can be used by our emulation layer to determine when the mac address change has completed (when the OS finished writing the mac address), and we can use these mechanisms to trigger HMP notifications. This is only an RFC series. It's been tested and works well. I've split e1000 and rtl8139 changes as they are sufficiently different. e1000 make this very clean and easy, but rtl8139 isn't as nice. Please take a look and I'd like to hear your comments. Thanks -vlad Vlad Yasevich (2): e1000: Use Address_Available bit as HW latch rtl8139: update HMP only when the address is fully written hw/i386/pc_piix.c | 4 ++++ hw/i386/pc_q35.c | 4 ++++ hw/net/e1000.c | 11 ++++++++++- hw/net/rtl8139.c | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- include/hw/i386/pc.h | 8 ++++++++ 5 files changed, 75 insertions(+), 2 deletions(-) -- 1.8.4.2