From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXCa4-0004sy-Ms for qemu-devel@nongnu.org; Wed, 23 May 2012 10:30:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXCZu-0002Xa-Kz for qemu-devel@nongnu.org; Wed, 23 May 2012 10:30:28 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:38638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXCZu-0002Wi-Bh for qemu-devel@nongnu.org; Wed, 23 May 2012 10:30:18 -0400 Received: by dadv2 with SMTP id v2so11776056dad.4 for ; Wed, 23 May 2012 07:30:16 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4FBCF46E.3020509@redhat.com> Date: Wed, 23 May 2012 16:30:06 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20120523135206.GA14654@chinaltcdragon.cn.ibm.com> <20120523141202.GC29930@redhat.com> In-Reply-To: <20120523141202.GC29930@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] Support virtio-scsi-pci adapter hot-plug List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Stefan Hajnoczi , Brian Zhao , Kelvin Wang , Amos Kong , qemu-devel 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