Re: [Qemu-devel] virtio-blk-pci: how to tell if it is CD or HDD?

2013-10-17 Thread Nikunj A Dadhania
Alexey Kardashevskiy writes: > > "channel@0" -> ""? This is a generic scsi bus, cannot change this. > "disk@3,2" -> "disk@8302"? This is a generic scsi-cd, cannot > change this either > > >> On top of this, fix the remaining QEMU->OF differences using a callback >> in QEMUMachine. Th

Re: [Qemu-devel] virtio-blk-pci: how to tell if it is CD or HDD?

2013-10-17 Thread Paolo Bonzini
Il 17/10/2013 15:36, Alexey Kardashevskiy ha scritto: >> > But please make sure to not block the path for non-SLOF machines. -M mac99 >> > should still be able to get different path names for PCI devices for >> > example. > Ok. Then question for you. I need to change root PHB name from > spapr-pc

Re: [Qemu-devel] virtio-blk-pci: how to tell if it is CD or HDD?

2013-10-17 Thread Paolo Bonzini
Il 17/10/2013 15:09, Alexey Kardashevskiy ha scritto: >> In general, try to make QEMU produce SLOF APIs by modifying the devices >> that instantiate the buses. > > "channel@0" -> ""? This is a generic scsi bus, cannot change this. > "disk@3,2" -> "disk@8302"? This is a generic scsi-cd,

Re: [Qemu-devel] virtio-blk-pci: how to tell if it is CD or HDD?

2013-10-17 Thread Alexey Kardashevskiy
On 10/18/2013 12:02 AM, Alexander Graf wrote: > > On 17.10.2013, at 14:54, Paolo Bonzini wrote: > >> Il 17/10/2013 14:38, Alexey Kardashevskiy ha scritto: >>> qdev_get_fw_dev_path: >>> /spapr-vio-bridge/spapr-vscsi/channel@0/disk@3,2 suffix=(null) >>> /spapr-vio-bridge/spapr-vscsi/channel@0/disk

Re: [Qemu-devel] virtio-blk-pci: how to tell if it is CD or HDD?

2013-10-17 Thread Alexey Kardashevskiy
On 10/17/2013 11:54 PM, Paolo Bonzini wrote: > Il 17/10/2013 14:38, Alexey Kardashevskiy ha scritto: >> qdev_get_fw_dev_path: >> /spapr-vio-bridge/spapr-vscsi/channel@0/disk@3,2 suffix=(null) >> /spapr-vio-bridge/spapr-vscsi/channel@0/disk@3,1 suffix=(null) > > You need to implement qdev_fw_get_pa

Re: [Qemu-devel] virtio-blk-pci: how to tell if it is CD or HDD?

2013-10-17 Thread Alexander Graf
On 17.10.2013, at 14:54, Paolo Bonzini wrote: > Il 17/10/2013 14:38, Alexey Kardashevskiy ha scritto: >> qdev_get_fw_dev_path: >> /spapr-vio-bridge/spapr-vscsi/channel@0/disk@3,2 suffix=(null) >> /spapr-vio-bridge/spapr-vscsi/channel@0/disk@3,1 suffix=(null) > > You need to implement qdev_fw_ge

Re: [Qemu-devel] virtio-blk-pci: how to tell if it is CD or HDD?

2013-10-17 Thread Paolo Bonzini
Il 17/10/2013 14:38, Alexey Kardashevskiy ha scritto: > qdev_get_fw_dev_path: > /spapr-vio-bridge/spapr-vscsi/channel@0/disk@3,2 suffix=(null) > /spapr-vio-bridge/spapr-vscsi/channel@0/disk@3,1 suffix=(null) You need to implement qdev_fw_get_path to change spapr-vio-bridge -> vdevice spapr-vscs

Re: [Qemu-devel] virtio-blk-pci: how to tell if it is CD or HDD?

2013-10-17 Thread Alexey Kardashevskiy
On 10/16/2013 06:59 PM, Alexey Kardashevskiy wrote: > On 10/16/2013 05:36 PM, Paolo Bonzini wrote: >> Il 16/10/2013 07:04, Alexey Kardashevskiy ha scritto: >>> Hi! >>> >>> Normally on sPAPR platform the IBMVSCSI host bus adapter is used which is >>> SCSI. So when we want some image to appear as a D

Re: [Qemu-devel] virtio-blk-pci: how to tell if it is CD or HDD?

2013-10-16 Thread Alexey Kardashevskiy
On 10/16/2013 05:36 PM, Paolo Bonzini wrote: > Il 16/10/2013 07:04, Alexey Kardashevskiy ha scritto: >> Hi! >> >> Normally on sPAPR platform the IBMVSCSI host bus adapter is used which is >> SCSI. So when we want some image to appear as a DVD to the guest >> (particularly SLOF - our firmware), we u

Re: [Qemu-devel] virtio-blk-pci: how to tell if it is CD or HDD?

2013-10-15 Thread Paolo Bonzini
Il 16/10/2013 07:04, Alexey Kardashevskiy ha scritto: > Hi! > > Normally on sPAPR platform the IBMVSCSI host bus adapter is used which is > SCSI. So when we want some image to appear as a DVD to the guest > (particularly SLOF - our firmware), we use "-device scsi-cd". Or QEMU > extracts this autom

[Qemu-devel] virtio-blk-pci: how to tell if it is CD or HDD?

2013-10-15 Thread Alexey Kardashevskiy
Hi! Normally on sPAPR platform the IBMVSCSI host bus adapter is used which is SCSI. So when we want some image to appear as a DVD to the guest (particularly SLOF - our firmware), we use "-device scsi-cd". Or QEMU extracts this automatically from the "media=cdrom" property of "-drive" (correct?). A