qemu: Introduce qemuDomainDeviceDefValidateIOMMU()
commita7a78c273e04103e10ab9f7d3e555d06b6dc3ce5
authorAndrea Bolognani <abologna@redhat.com>
Fri, 17 May 2019 11:37:35 +0000 (17 13:37 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 23 May 2019 13:19:01 +0000 (23 15:19 +0200)
treeabc3c75691087827c3ebf5c9bf7a4dd6d7f68a3b
parentb00f32c34d42a279cb10c9595577a5301e3164f9
qemu: Introduce qemuDomainDeviceDefValidateIOMMU()

Device validation should not have to wait until command line
generation time. Moving the code to a separate function also
allows us to avoid some unnecessary repetition.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
tests/qemuxml2argvtest.c