]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add qemuDomainDefaultUSBControllerModelAutoAdded()
authorAndrea Bolognani <abologna@redhat.com>
Mon, 12 Feb 2024 12:58:26 +0000 (13:58 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 6 Oct 2025 09:16:16 +0000 (11:16 +0200)
commit44a63c2188e2fbdea32955994be2427fbebd0ebf
treeb0a3a1880176f1262e4846e48e1897e5b86d66ff
parent25be83dbfc468f5fb3606aec9a714cb94110036b
qemu: Add qemuDomainDefaultUSBControllerModelAutoAdded()

In addition to the code in qemuDomainControllerDefPostParse(),
which we have just factored into its own function, we also have
some code in qemuDomainDefAddDefaultDevices() that deals with
choosing the USB controller model for a couple of specific
machine types.

Once again, extract the logic to a dedicated helper. The
behavior is unchanged.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_postparse.c