Received: from eggs.gnu.org ([208.118.235.92]:51086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXRaX-0008GV-J2 for qemu-devel@nongnu.org; Thu, 24 May 2012 02:32:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXRaV-0006fw-RH for qemu-devel@nongnu.org; Thu, 24 May 2012 02:31:57 -0400 Received: from e28smtp02.in.ibm.com ([122.248.162.2]:35382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXRa6-0006Sn-SO for qemu-devel@nongnu.org; Thu, 24 May 2012 02:31:55 -0400 Received: from /spool/local by e28smtp02.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 24 May 2012 12:01:07 +0530 Received: from d28av04.in.ibm.com (d28av04.in.ibm.com [9.184.220.66]) by d28relay04.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q4O6V4Z863504560 for ; Thu, 24 May 2012 12:01:04 +0530 Received: from d28av04.in.ibm.com (loopback [127.0.0.1]) by d28av04.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q4OC0pM6001040 for ; Thu, 24 May 2012 22:00:51 +1000 Date: Thu, 24 May 2012 14:31:00 +0800 From: Kelvin Wang Message-ID: <20120524063100.GA21123@chinaltcdragon.cn.ibm.com> References: <20120523135206.GA14654@chinaltcdragon.cn.ibm.com> <20120523141202.GC29930@redhat.com> <4FBCF46E.3020509@redhat.com> <20120523144532.GA30289@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120523144532.GA30289@redhat.com> Subject: Re: [Qemu-devel] [PATCH] Support virtio-scsi-pci adapter hot-plug Reply-To: Kelvin Wang List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Stefan Hajnoczi , Paolo Bonzini , qemu-devel On Wed, May 23, 2012 at 05:45:33PM +0300, Michael S. Tsirkin wrote: > On Wed, May 23, 2012 at 04:30:06PM +0200, Paolo Bonzini wrote: > > Il 23/05/2012 16:12, Michael S. Tsirkin ha scritto: > > >> > 2, Run qemu with the option -monitor. > > >> > > > >> > 3, In the guest, insert necessary modules: > > >> > for m in acpiphp pci_hotplug; do sudo modprobe ${m}; done > > >> > > > >> > 4, In the qemu monitor,hot add a virtio-scsi-pci adapter: > > >> > (qemu)pci_add auto storage if=virtio-scsi-pci > > >> > > > >> > 5, Check whether the controller was added: > > >> > Guest: lspci > > >> > Qemu: (qemu)info qtree > > >> > > > >> > Signed-off-by: Kelvin Wang > > >> > Signed-off-by: Sheng Liu > > > NAK > > > > > > Do not use pci_add. It is a compatibility command. > > > Use the new style device_add. > > > Same for if=. > > > > > > I think you won't need any changes then? > > > > > > > You don't. You need to rescan the bus manually in the guest, that's all. > > > > Paolo > > If the point is to avoid need for manual bus rescans that's > good. But please do not touch the legacy commands. So, may I sent another patch to "avoid need for manual bus rescans"? device_add should be used by users, but another way supplied to users is not necessarily, but always harmless, right? > If anyone wants to use new devices, new commands > drive_add and device_add should be used. > Same for command line flags. > > -- > MST >