]> xenbits.xensource.com Git - libvirt.git/commit
qemu: validate: Move disk address validation code
authorPeter Krempa <pkrempa@redhat.com>
Mon, 4 Oct 2021 12:44:09 +0000 (14:44 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 Oct 2021 08:26:04 +0000 (10:26 +0200)
commit03ed14d2d4a4e51568b1ee5a6e6c9c3371bb4d34
tree806c24316cdbc3a1bef0ff4c1ba77ed4fa1ecef7
parent3210c8b047534f7e1d3ccde7ea3bcf11e7c92ad9
qemu: validate: Move disk address validation code

Move the code from 'qemuValidateDomainDeviceDefDiskFrontend' into
'qemuValidateDomainDeviceDefAddressDrive' which is called from
'qemuValidateDomainDeviceDefAddress' so that we have all address
validation code together.

This also allows us to remove the inline validation inside
'qemuBuildSCSIHostdevDevStr'.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_validate.c