* [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
` (5 more replies)
0 siblings, 6 replies; 10+ 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] 10+ 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 11:40 ` Laszlo Ersek ` (4 subsequent siblings) 5 siblings, 0 replies; 10+ 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] 10+ 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 11:40 ` Laszlo Ersek 2013-05-30 12:47 ` Pasi Kärkkäinen ` (3 subsequent siblings) 5 siblings, 0 replies; 10+ 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] 10+ messages in thread
* Re: [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 11:40 ` Laszlo Ersek @ 2013-05-30 12:47 ` Pasi Kärkkäinen 2013-05-30 12:47 ` [Qemu-devel] [Xen-devel] " Pasi Kärkkäinen ` (2 subsequent siblings) 5 siblings, 0 replies; 10+ 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] 10+ 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) ` (2 preceding siblings ...) 2013-05-30 12:47 ` Pasi Kärkkäinen @ 2013-05-30 12:47 ` Pasi Kärkkäinen [not found] ` <CAGKZqTBbjdw8+AH-PdXTefHyxKp+xQ+Hip13qB4BfZUU3rmpjg@mail.gmail.com> 2013-06-03 13:16 ` [Qemu-devel] [Xen-devel] " Konrad Rzeszutek Wilk 2013-06-03 13:16 ` Konrad Rzeszutek Wilk 5 siblings, 1 reply; 10+ 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] 10+ messages in thread
[parent not found: <CAGKZqTBbjdw8+AH-PdXTefHyxKp+xQ+Hip13qB4BfZUU3rmpjg@mail.gmail.com>]
[parent not found: <20130530132914.GA11427@reaktio.net>]
[parent not found: <CAGKZqTA7x4Bhm9eNPb58QDRAhOjqXq0uMUcvB8kBr1rX2F2Rvw@mail.gmail.com>]
[parent not found: <20130530134737.GB11427@reaktio.net>]
[parent not found: <CAGKZqTCHwZxHsSQmzA-5uWEsynMVXeCQE_mOPufbb=o+Qk26wQ@mail.gmail.com>]
* Re: [PVSCSI]How to unplug scsi disk simulated by Qemu, just like unplug the ide disk? [not found] ` <CAGKZqTCHwZxHsSQmzA-5uWEsynMVXeCQE_mOPufbb=o+Qk26wQ@mail.gmail.com> @ 2013-05-30 14:45 ` Pasi Kärkkäinen 0 siblings, 0 replies; 10+ messages in thread From: Pasi Kärkkäinen @ 2013-05-30 14:45 UTC (permalink / raw) To: charles wjwen; +Cc: xen-devel On Thu, May 30, 2013 at 10:39:03PM +0800, charles wjwen wrote: > Available work environment is not around,that is what i try, it pass > startup scsi parameters through the file libxl_dm.c(xensoure : > tools\libxl\libxl_dm.c): > if (strncmp(disks[i].vdev, "sd", 2) == 0) > drive = libxl__sprintf > (gc, "file=%s,if=scsi,bus=0,unit=%d,format=%s,cache=writeback", > disks[i].pdev_path, disk, format); > and it can see from qemu log, it works.But in the guest. you can see two > disk, one is pvscsi idsk, one is simulated by qemu, actually they are the > same. > (adding xen-devel back to CC). libxl does not currently have any kind of PVSCSI support. You're not using PVSCSI. You're using Qemu SCSI emulation support. So why are you passing the *same* disk as both IDE and SCSI? There's no point in that, and it'll cause problems, probably corrupting the disk. If you want better performance for the HVM guests you should use PVHVM mode, which means using Xen PV drivers in the HVM guest. There's the unplug logic built for that, so the emulated IDE disk will be unplugged when you use PV drivers. (which is not the same as PVSCSI.) -- Pasi > 2013/5/30 Pasi Kärkkäinen <[1]pasik@iki.fi> > > On Thu, May 30, 2013 at 09:44:30PM +0800, charles wjwen wrote: > > I used in the wrong way? > > The guset VM boot with two disk, scsi disk is actually a user > volume, and > > the system volume is simulated by blkfront. > > > > Please paste your vm cfgfile (/etc/xen/<vm>) > -- Pasi > > > 2013/5/30 Pasi Kärkkäinen <[1][2]pasik@iki.fi> > > > > On Thu, May 30, 2013 at 09:26:48PM +0800, charles wjwen wrote: > > > It's Xen PVSCSI > > > > > > > Are you sure? > > > , when i try to use platform_fixed_ioport_writew -> > > > unplug_disks (in xen_platform.c), it did't work. > > > ide disk unpluged ok.Maybe i used in the wrong way,anyone > who > > encountered > > > a similar situation? > > > > > > > There's absolutely no need for unplugging when using PVSCSI. > > I mean why would you pass passthru the *same* disk with PVSCSI > than with > > Qemu ?? > > > > -- Pasi > > > > > 2013/5/30 Pasi Kärkkäinen <[1][2][3]pasik@iki.fi> > > > > > > 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* > > > ([2][3][4]http://wiki.xen.org/wiki/Paravirtualized_SCSI), > > > or are you talking about Xen HVM guest with PV drivers for > disk? > > > -- Pasi > > > > > > _______________________________________________ > > > Xen-devel mailing list > > > [3][4][5]Xen-devel@lists.xen.org > > > [4][5][6]http://lists.xen.org/xen-devel > > > > > > -- > > > charles,to be a better man. > > > > > > References > > > > > > Visible links > > > 1. mailto:[6][7]pasik@iki.fi > > > 2. [7][8]http://wiki.xen.org/wiki/Paravirtualized_SCSI > > > 3. mailto:[8][9]Xen-devel@lists.xen.org > > > 4. [9][10]http://lists.xen.org/xen-devel > > > > -- > > charles,to be a better man. > > > > References > > > > Visible links > > 1. mailto:[11]pasik@iki.fi > > 2. mailto:[12]pasik@iki.fi > > 3. [13]http://wiki.xen.org/wiki/Paravirtualized_SCSI > > 4. mailto:[14]Xen-devel@lists.xen.org > > 5. [15]http://lists.xen.org/xen-devel > > 6. mailto:[16]pasik@iki.fi > > 7. [17]http://wiki.xen.org/wiki/Paravirtualized_SCSI > > 8. mailto:[18]Xen-devel@lists.xen.org > > 9. [19]http://lists.xen.org/xen-devel > > -- > charles,to be a better man. > > References > > Visible links > 1. mailto:pasik@iki.fi > 2. mailto:pasik@iki.fi > 3. mailto:pasik@iki.fi > 4. http://wiki.xen.org/wiki/Paravirtualized_SCSI > 5. mailto:Xen-devel@lists.xen.org > 6. http://lists.xen.org/xen-devel > 7. mailto:pasik@iki.fi > 8. http://wiki.xen.org/wiki/Paravirtualized_SCSI > 9. mailto:Xen-devel@lists.xen.org > 10. http://lists.xen.org/xen-devel > 11. mailto:pasik@iki.fi > 12. mailto:pasik@iki.fi > 13. http://wiki.xen.org/wiki/Paravirtualized_SCSI > 14. mailto:Xen-devel@lists.xen.org > 15. http://lists.xen.org/xen-devel > 16. mailto:pasik@iki.fi > 17. http://wiki.xen.org/wiki/Paravirtualized_SCSI > 18. mailto:Xen-devel@lists.xen.org > 19. http://lists.xen.org/xen-devel ^ permalink raw reply [flat|nested] 10+ 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) ` (3 preceding siblings ...) 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) 2013-06-03 13:20 ` [Qemu-devel] [Xen-devel] " Gonglei (Arei) 2013-06-03 13:16 ` Konrad Rzeszutek Wilk 5 siblings, 2 replies; 10+ 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] 10+ messages in thread
* Re: [PVSCSI]How to unplug scsi disk simulated by Qemu, just like unplug the ide disk? 2013-06-03 13:16 ` [Qemu-devel] [Xen-devel] " Konrad Rzeszutek Wilk @ 2013-06-03 13:20 ` Gonglei (Arei) 2013-06-03 13:20 ` [Qemu-devel] [Xen-devel] " Gonglei (Arei) 1 sibling, 0 replies; 10+ 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] 10+ 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 ` [Qemu-devel] [Xen-devel] " Konrad Rzeszutek Wilk 2013-06-03 13:20 ` Gonglei (Arei) @ 2013-06-03 13:20 ` Gonglei (Arei) 1 sibling, 0 replies; 10+ 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] 10+ messages in thread
* Re: [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) ` (4 preceding siblings ...) 2013-06-03 13:16 ` [Qemu-devel] [Xen-devel] " Konrad Rzeszutek Wilk @ 2013-06-03 13:16 ` Konrad Rzeszutek Wilk 5 siblings, 0 replies; 10+ 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] 10+ messages in thread
end of thread, other threads:[~2013-06-03 13:21 UTC | newest]
Thread overview: 10+ 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 11:40 ` Laszlo Ersek
2013-05-30 12:47 ` Pasi Kärkkäinen
2013-05-30 12:47 ` [Qemu-devel] [Xen-devel] " Pasi Kärkkäinen
[not found] ` <CAGKZqTBbjdw8+AH-PdXTefHyxKp+xQ+Hip13qB4BfZUU3rmpjg@mail.gmail.com>
[not found] ` <20130530132914.GA11427@reaktio.net>
[not found] ` <CAGKZqTA7x4Bhm9eNPb58QDRAhOjqXq0uMUcvB8kBr1rX2F2Rvw@mail.gmail.com>
[not found] ` <20130530134737.GB11427@reaktio.net>
[not found] ` <CAGKZqTCHwZxHsSQmzA-5uWEsynMVXeCQE_mOPufbb=o+Qk26wQ@mail.gmail.com>
2013-05-30 14:45 ` Pasi Kärkkäinen
2013-06-03 13:16 ` [Qemu-devel] [Xen-devel] " Konrad Rzeszutek Wilk
2013-06-03 13:20 ` Gonglei (Arei)
2013-06-03 13:20 ` [Qemu-devel] [Xen-devel] " Gonglei (Arei)
2013-06-03 13:16 ` Konrad Rzeszutek Wilk
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.