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 DVD to the

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-vscsi -

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 pbonz...@redhat.com 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

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_path to

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 pbonz...@redhat.com 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)

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, cannot change

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

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

2013-10-17 Thread Nikunj A Dadhania
Alexey Kardashevskiy a...@ozlabs.ru 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. This

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

2013-10-16 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

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 use -device

[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?). And