]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: put hostdev PCI backend into a struct
authorLaine Stump <laine@redhat.com>
Fri, 5 Jan 2024 01:12:51 +0000 (20:12 -0500)
committerLaine Stump <laine@redhat.com>
Mon, 8 Jan 2024 04:57:09 +0000 (23:57 -0500)
commite04ca000bddca850ab0c607e94ca46f30b10c44f
tree2771c1d08f2f86ee3be8e1bc3c7835eb0cec0725
parente7d31d8b00747489a89c0ad81d70546f9739df8c
conf: put hostdev PCI backend into a struct

The new struct is virDeviceHostdevPCIDriverInfo, and the "backend"
enum in the hostdevDef will be replaced with a
virDeviceHostdevPCIDriverInfo named "driver'. Since the enum value in
this new struct is called "name", it means that all references to
"backend" will become "driver.name".

This will allow easily adding other items for new attributes in the
<driver> element / C struct, which will be useful once we are using
this new struct in multiple places.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
16 files changed:
src/conf/device_conf.h
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/virconftypes.h
src/hypervisor/virhostdev.c
src/libxl/libxl_domain.c
src/libxl/libxl_driver.c
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
src/qemu/qemu_validate.c
src/security/security_apparmor.c
src/security/security_dac.c
src/security/security_selinux.c
src/security/virt-aa-helper.c
src/test/test_driver.c
tests/virhostdevtest.c