[PATCH 071/103] qemuBuildDeviceAddressProps: Format also 'drive' addresses
Ján Tomko
jtomko at redhat.com
Mon Oct 11 15:02:55 UTC 2021
On a Thursday in 2021, Peter Krempa wrote:
>Introduce infrastructure to format 'drive' addresses via the standard
>helper rather than hand-rolled generators used inline.
>
>The code needs to know the disk bus to format the correct address which
>is passed in via an internal field in virDomainDeviceDriveAddress.
>
>The field types according to QEMU are as following:
>
>'ide-hd' for VIR_DOMAIN_DISK_BUS_IDE and VIR_DOMAIN_DISK_BUS_SATA
> unit=<uint32> - (default: 4294967295)
>
>'floppy' for VIR_DOMAIN_DISK_BUS_FDC
> unit=<uint32> - (default: 4294967295)
>
>'scsi-hd' for VIR_DOMAIN_DISK_BUS_SCSI
> channel=<uint32> - (default: 0)
> scsi-id=<uint32> - (default: 4294967295)
> lun=<uint32> - (default: 4294967295)
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/conf/device_conf.h | 3 +
> src/conf/domain_conf.c | 4 +-
> src/qemu/qemu_command.c | 140 +++++++++++++++++++++++++++++++++++++++-
> 3 files changed, 144 insertions(+), 3 deletions(-)
>
Reviewed-by: Ján Tomko <jtomko at redhat.com>
Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20211011/ed923bb4/attachment-0001.sig>
More information about the libvir-list
mailing list