From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui1Bu-0004Kq-KY for qemu-devel@nongnu.org; Thu, 30 May 2013 07:38:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ui1Bo-0003zX-2P for qemu-devel@nongnu.org; Thu, 30 May 2013 07:38:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:25387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui1Bn-0003yq-PP for qemu-devel@nongnu.org; Thu, 30 May 2013 07:38:39 -0400 Message-ID: <51A73AC2.8050004@redhat.com> Date: Thu, 30 May 2013 13:40:50 +0200 From: Laszlo Ersek MIME-Version: 1.0 References: <33183CC9F5247A488A2544077AF190206C90149B@szxeml538-mbx.china.huawei.com> In-Reply-To: <33183CC9F5247A488A2544077AF190206C90149B@szxeml538-mbx.china.huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PVSCSI]How to unplug scsi disk simulated by Qemu, just like unplug the ide disk? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Gonglei (Arei)" Cc: Jinwenwu , Luonengjun , "qemu-devel@nongnu.org" , "xen-devel@lists.xen.org" On 05/30/13 13:23, Gonglei (Arei) wrote: > Hi all, > My environment is xen-4.1.2 + qemu-1.2.2 > I made a pvscsi driver for Redhat guest, but I encountered a problem that I could see two scsi disks, one was simulated by QEMU, another was passthrough. > Actually I want to unplug the scsi disk simulated. Any methods can solve the problem on the qemu upstream. Thanks! Unless I'm misunderstanding you (which is more likely than not): emulated devices (eg. NIC and IDE disks) are unplugged by the guest kernel. See "arch/x86/xen/platform-pci-unplug.c". The qemu side seems to be in "hw/xen/xen_platform.c". Laszlo