Displaying 2 results from an estimated 2 matches for "virstoragesourceisblockloc".
Did you mean:
virstoragesourceisblocklocal
2020 Oct 28
2
proper config for qemu's host_cdrom
...rc/qemu/qemu_block.c#L1090, I see that hostcdrom must be true.
in order for that to be true, the following must be (see https://gitlab.com/libvirt/libvirt/-/blob/master/src/qemu/qemu_domain.c#L7167):
1. disk->device == VIR_DOMAIN_DISK_DEVICE_CDROM
2. disksrc->format == VIR_STORAGE_FILE_RAW
3. virStorageSourceIsBlockLocal(disksrc)
4. virFileIsCDROM(disksrc->path) == 1
virFileIsCDROM uses the kernel, so I assume that as disksrc->path points to the actual path (I can see it in the qemu line) than #4 returns 1.
the other 3 are more complicated. my xml snippet is this:
<devices>
<hostdev mode='s...
2020 Nov 02
0
Re: proper config for qemu's host_cdrom
...#L1090, I see that hostcdrom must be true.
> in order for that to be true, the following must be (see https://gitlab.com/libvirt/libvirt/-/blob/master/src/qemu/qemu_domain.c#L7167):
> 1. disk->device == VIR_DOMAIN_DISK_DEVICE_CDROM
> 2. disksrc->format == VIR_STORAGE_FILE_RAW
> 3. virStorageSourceIsBlockLocal(disksrc)
> 4. virFileIsCDROM(disksrc->path) == 1
>
> virFileIsCDROM uses the kernel, so I assume that as disksrc->path points to the actual path (I can see it in the qemu line) than #4 returns 1.
Note that all of the above is not "SCSI passthrough" but rather device
emu...