Re: [PATCH 071/103] qemuBuildDeviceAddressProps: Format also 'drive' addresses

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

 



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@xxxxxxxxxx>
---
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@xxxxxxxxxx>

Jano

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux