qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Nikunj A Dadhania
Subject: Re: [Qemu-devel] virtio-blk-pci: how to tell if it is CD or HDD?
Date: Fri, 18 Oct 2013 10:26:45 +0530
User-agent: Notmuch/0.14+104~g0a21fb9 (http://notmuchmail.org) Emacs/24.3.50.1 (x86_64-unknown-linux-gnu)

Alexey Kardashevskiy <address@hidden> writes:

>
> "address@hidden" -> ""? This is a generic scsi bus, cannot change this.
> "address@hidden,2" -> "address@hidden"? 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 callback would be called by
>> qdev_get_fw_dev_path_helper and, if it returns something non-NULL, the
>> result would be used instead of calling bus_get_fw_dev_path.
>
>
> A single machine callback which will recognize all possible bootable
> devices and replace things like "address@hidden,2" -> "address@hidden"? Hm.

That is constructed in SLOF/board-qemu/slof/vio-vscsi.fs:

\ We use SRP luns of the form 8000 | (bus << 8) | (id << 5) | lun
\ in the top 16 bits of the 64-bit LUN

bus is target here. I guess that could be handled in Qemu, and both need
to be in sync.

Regards
Nikunj




reply via email to

[Prev in Thread] Current Thread [Next in Thread]