* [Qemu-devel] [PVSCSI]How to unplug scsi disk simulated by Qemu, just like unplug the ide disk?
@ 2013-05-30 11:23 Gonglei (Arei)
2013-05-30 11:40 ` Laszlo Ersek
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Gonglei (Arei) @ 2013-05-30 11:23 UTC (permalink / raw)
To: qemu-devel@nongnu.org, xen-devel@lists.xen.org; +Cc: Luonengjun, Jinwenwu
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!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PVSCSI]How to unplug scsi disk simulated by Qemu, just like unplug the ide disk?
2013-05-30 11:23 [Qemu-devel] [PVSCSI]How to unplug scsi disk simulated by Qemu, just like unplug the ide disk? Gonglei (Arei)
@ 2013-05-30 11:40 ` Laszlo Ersek
2013-05-30 12:47 ` [Qemu-devel] [Xen-devel] " Pasi Kärkkäinen
2013-06-03 13:16 ` Konrad Rzeszutek Wilk
2 siblings, 0 replies; 5+ messages in thread
From: Laszlo Ersek @ 2013-05-30 11:40 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [Xen-devel] [PVSCSI]How to unplug scsi disk simulated by Qemu, just like unplug the ide disk?
2013-05-30 11:23 [Qemu-devel] [PVSCSI]How to unplug scsi disk simulated by Qemu, just like unplug the ide disk? Gonglei (Arei)
2013-05-30 11:40 ` Laszlo Ersek
@ 2013-05-30 12:47 ` Pasi Kärkkäinen
2013-06-03 13:16 ` Konrad Rzeszutek Wilk
2 siblings, 0 replies; 5+ messages in thread
From: Pasi Kärkkäinen @ 2013-05-30 12:47 UTC (permalink / raw)
To: Gonglei (Arei)
Cc: Jinwenwu, Luonengjun, qemu-devel@nongnu.org,
xen-devel@lists.xen.org
On Thu, May 30, 2013 at 11:23:44AM +0000, 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!
>
Are you actually using Xen *PVSCSI* (http://wiki.xen.org/wiki/Paravirtualized_SCSI),
or are you talking about Xen HVM guest with PV drivers for disk?
-- Pasi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [Xen-devel] [PVSCSI]How to unplug scsi disk simulated by Qemu, just like unplug the ide disk?
2013-05-30 11:23 [Qemu-devel] [PVSCSI]How to unplug scsi disk simulated by Qemu, just like unplug the ide disk? Gonglei (Arei)
2013-05-30 11:40 ` Laszlo Ersek
2013-05-30 12:47 ` [Qemu-devel] [Xen-devel] " Pasi Kärkkäinen
@ 2013-06-03 13:16 ` Konrad Rzeszutek Wilk
2013-06-03 13:20 ` Gonglei (Arei)
2 siblings, 1 reply; 5+ messages in thread
From: Konrad Rzeszutek Wilk @ 2013-06-03 13:16 UTC (permalink / raw)
To: Gonglei (Arei)
Cc: Jinwenwu, Luonengjun, qemu-devel@nongnu.org,
xen-devel@lists.xen.org
On Thu, May 30, 2013 at 11:23:44AM +0000, 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!
I would suggest you look at arch/x86/xen/platform-pci-unplug.c which
tells QEMU to unplug the IDE driver. You could implement a similar
mechanism in QEMU (and in the Linux kernel).
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [Xen-devel] [PVSCSI]How to unplug scsi disk simulated by Qemu, just like unplug the ide disk?
2013-06-03 13:16 ` Konrad Rzeszutek Wilk
@ 2013-06-03 13:20 ` Gonglei (Arei)
0 siblings, 0 replies; 5+ messages in thread
From: Gonglei (Arei) @ 2013-06-03 13:20 UTC (permalink / raw)
To: Konrad Rzeszutek Wilk
Cc: Jinwenwu, Luonengjun, qemu-devel@nongnu.org,
xen-devel@lists.xen.org
> -----Original Message-----
> From: Konrad Rzeszutek Wilk [mailto:konrad.wilk@oracle.com]
> Sent: Monday, June 03, 2013 9:16 PM
> To: Gonglei (Arei)
> Cc: qemu-devel@nongnu.org; xen-devel@lists.xen.org; Luonengjun; Jinwenwu
> Subject: Re: [Xen-devel] [PVSCSI]How to unplug scsi disk simulated by Qemu,
> just like unplug the ide disk?
>
> On Thu, May 30, 2013 at 11:23:44AM +0000, 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!
>
> I would suggest you look at arch/x86/xen/platform-pci-unplug.c which
> tells QEMU to unplug the IDE driver. You could implement a similar
> mechanism in QEMU (and in the Linux kernel).
>
Ok, thank you so much!
-Gonglei
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-06-03 13:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-30 11:23 [Qemu-devel] [PVSCSI]How to unplug scsi disk simulated by Qemu, just like unplug the ide disk? Gonglei (Arei)
2013-05-30 11:40 ` Laszlo Ersek
2013-05-30 12:47 ` [Qemu-devel] [Xen-devel] " Pasi Kärkkäinen
2013-06-03 13:16 ` Konrad Rzeszutek Wilk
2013-06-03 13:20 ` Gonglei (Arei)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).