]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Introduce qemuDomainChrTargetDefValidate()
authorAndrea Bolognani <abologna@redhat.com>
Mon, 20 Nov 2017 18:46:10 +0000 (19:46 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 28 Nov 2017 14:46:32 +0000 (15:46 +0100)
commit81e14caf60ac28acf9b7147617ef26bb99955757
treeb09d01c3a5348dbe35d762934bb5a084fa07a7e8
parent7983068fa50ea5222e62b24ea912a529994276f0
qemu: Introduce qemuDomainChrTargetDefValidate()

Instead of waiting until we get to command line generation, we can
validate the target for a char device much earlier.

Move all the checks out of qemuBuildSerialChrDeviceStr() and into
the new fuction. This will later allow us to validate the target
for platform devices.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_domain.c