From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUZpA-0003tx-BI for qemu-devel@nongnu.org; Wed, 16 May 2012 04:43:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUZp5-0006lG-JB for qemu-devel@nongnu.org; Wed, 16 May 2012 04:43:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUZp5-0006kw-Bm for qemu-devel@nongnu.org; Wed, 16 May 2012 04:43:07 -0400 Message-ID: <4FB36890.3090301@redhat.com> Date: Wed, 16 May 2012 10:42:56 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1337095599-28836-1-git-send-email-anthony.perard@citrix.com> <1337095599-28836-5-git-send-email-anthony.perard@citrix.com> <20120515210053.GB12039@redhat.com> <4FB36001.9030008@redhat.com> <20120516081341.GB3183@redhat.com> In-Reply-To: <20120516081341.GB3183@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 4/4] xen: Fix PV-on-HVM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Anthony PERARD , Xen Devel , QEMU-devel , Anthony Liguori , Stefano Stabellini Il 16/05/2012 10:13, Michael S. Tsirkin ha scritto: > On Wed, May 16, 2012 at 10:06:25AM +0200, Paolo Bonzini wrote: >> On Xen the PV drivers can ask the firmware to surprise-remove the >> emulated NICs. > > So driver tells firmware (meaning acpi? how?) that it's ok > to do surprize removal? It writes something to some I/O port, and then QEMU surprise-removes the NICs. >> Of course it has to do it early enough so that the guest >> doesn't crash. > > What does early enough mean and how do we ensure that? Early enough means that the I/O port is written very early in the boot process, even before the PCI bus is scanned by the OS. You don't ensure it, it's up to the OS. The OS knows whether its drivers can cope properly with surprise removal. If they can, in principle it could write the magic value whenever it wants to. Paolo