]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Add target type and model for pl011
authorAndrea Bolognani <abologna@redhat.com>
Thu, 9 Nov 2017 16:14:57 +0000 (17:14 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 28 Nov 2017 14:46:34 +0000 (15:46 +0100)
commiteccdcb81fcfd1641960d397c82986b4517841794
tree11693f26e5fd690e1749069817482d9d19b03838
parentb342e94399eee7fd519234a12ca3ea04f6564154
conf: Add target type and model for pl011

We can finally introduce a specific target model for the pl011 device
used by mach-virt guests, which means isa-serial will no longer show
up to confuse users.

We make sure migration works in both directions by interpreting the
isa-serial target type, or the lack of target type, appropriately
when parsing the guest XML, and skipping the newly-introduced type
when formatting if for migration. We also verify that pl011 is not
used for non-mach-virt guests and add a bunch of test cases.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=151292

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
32 files changed:
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
src/qemu/qemu_domain_address.c
tests/qemuxml2argvdata/qemuxml2argv-mach-virt-console-native.args [new symlink]
tests/qemuxml2argvdata/qemuxml2argv-mach-virt-console-native.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-mach-virt-console-virtio.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-mach-virt-console-virtio.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-mach-virt-serial+console-native.args [new symlink]
tests/qemuxml2argvdata/qemuxml2argv-mach-virt-serial+console-native.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-mach-virt-serial-compat.args [new symlink]
tests/qemuxml2argvdata/qemuxml2argv-mach-virt-serial-compat.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-mach-virt-serial-invalid-machine.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-mach-virt-serial-native.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-mach-virt-serial-native.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-mach-virt-serial-pci.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-mach-virt-serial-pci.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-mach-virt-serial-usb.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-mach-virt-serial-usb.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/qemuxml2xmlout-aarch64-virtio-pci-default.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-mach-virt-console-native.xml [new symlink]
tests/qemuxml2xmloutdata/qemuxml2xmlout-mach-virt-console-virtio.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/qemuxml2xmlout-mach-virt-serial+console-native.xml [new symlink]
tests/qemuxml2xmloutdata/qemuxml2xmlout-mach-virt-serial-compat.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/qemuxml2xmlout-mach-virt-serial-native.xml [new symlink]
tests/qemuxml2xmloutdata/qemuxml2xmlout-mach-virt-serial-pci.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/qemuxml2xmlout-mach-virt-serial-usb.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c