c498a89 conf: Add target type and model for spapr-vty

Authored and Committed by Andrea Bolognani 6 years ago
43 files changed. 386 lines added. 82 lines removed.
docs/formatdomain.html.in
file modified
+9 -4
docs/schemas/domaincommon.rng
file modified
+2 -0
src/conf/domain_conf.c
file modified
+5 -1
src/conf/domain_conf.h
file modified
+2 -0
src/qemu/qemu_command.c
file modified
+28 -39
src/qemu/qemu_domain.c
file modified
+57 -12
src/qemu/qemu_domain_address.c
file modified
+1 -0
tests/qemuxml2argvdata/qemuxml2argv-pseries-basic.args
file modified
+1 -1
tests/qemuxml2argvdata/qemuxml2argv-pseries-console-native.args
file added
+1
tests/qemuxml2argvdata/qemuxml2argv-pseries-console-native.xml
file added
+17
tests/qemuxml2argvdata/qemuxml2argv-pseries-console-virtio.args
file added
+23
tests/qemuxml2argvdata/qemuxml2argv-pseries-console-virtio.xml
file added
+19
tests/qemuxml2argvdata/qemuxml2argv-pseries-cpu-compat-power9.args
file modified
+1 -1
tests/qemuxml2argvdata/qemuxml2argv-pseries-cpu-compat.args
file modified
+1 -1
tests/qemuxml2argvdata/qemuxml2argv-pseries-cpu-exact.args
file modified
+1 -1
tests/qemuxml2argvdata/qemuxml2argv-pseries-cpu-le.args
file modified
+1 -1
tests/qemuxml2argvdata/qemuxml2argv-pseries-panic-missing.args
file modified
+1 -1
tests/qemuxml2argvdata/qemuxml2argv-pseries-panic-no-address.args
file modified
+1 -1
tests/qemuxml2argvdata/qemuxml2argv-pseries-serial+console-native.args
file added
+1
tests/qemuxml2argvdata/qemuxml2argv-pseries-serial+console-native.xml
file added
+18
tests/qemuxml2argvdata/qemuxml2argv-pseries-serial-compat.args
file added
+1
tests/qemuxml2argvdata/qemuxml2argv-pseries-serial-compat.xml
file added
+19
tests/qemuxml2argvdata/qemuxml2argv-pseries-serial-invalid-machine.xml
file added
+19
tests/qemuxml2argvdata/qemuxml2argv-pseries-serial-native.args
file added
+22
tests/qemuxml2argvdata/qemuxml2argv-pseries-serial-native.xml
file added
+16
tests/qemuxml2argvdata/qemuxml2argv-pseries-usb-default.args
file modified
+1 -1
tests/qemuxml2argvdata/qemuxml2argv-pseries-usb-kbd.args
file modified
+1 -1
tests/qemuxml2argvdata/qemuxml2argv-pseries-usb-multi.args
file modified
+1 -1
tests/qemuxml2argvdata/qemuxml2argv-pseries-vio-user-assigned.args
file modified
+2 -2
tests/qemuxml2argvdata/qemuxml2argv-pseries-vio.args
file modified
+2 -2
tests/qemuxml2argvtest.c
file modified
+16 -0
tests/qemuxml2xmloutdata/qemuxml2xmlout-panic-pseries.xml
file modified
+2 -2
tests/qemuxml2xmloutdata/qemuxml2xmlout-pseries-console-native.xml
file added
+1
tests/qemuxml2xmloutdata/qemuxml2xmlout-pseries-console-virtio.xml
file added
+31
tests/qemuxml2xmloutdata/qemuxml2xmlout-pseries-cpu-compat-power9.xml
file modified
+2 -2
tests/qemuxml2xmloutdata/qemuxml2xmlout-pseries-cpu-compat.xml
file modified
+2 -2
tests/qemuxml2xmloutdata/qemuxml2xmlout-pseries-cpu-exact.xml
file modified
+2 -2
tests/qemuxml2xmloutdata/qemuxml2xmlout-pseries-panic-missing.xml
file modified
+2 -2
tests/qemuxml2xmloutdata/qemuxml2xmlout-pseries-panic-no-address.xml
file modified
+2 -2
tests/qemuxml2xmloutdata/qemuxml2xmlout-pseries-serial+console-native.xml
file added
+1
tests/qemuxml2xmloutdata/qemuxml2xmlout-pseries-serial-compat.xml
file added
+1
tests/qemuxml2xmloutdata/qemuxml2xmlout-pseries-serial-native.xml
file added
+35
tests/qemuxml2xmltest.c
file modified
+15 -0
    conf: Add target type and model for spapr-vty
    
    We can finally introduce a specific target model for the spapr-vty
    device used by pSeries 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 spapr-vty is
    not used for non-pSeries guests and add a bunch of test cases.
    
    This commit is best viewed with 'git show -w'.
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1511421
    
    Signed-off-by: Andrea Bolognani <abologna@redhat.com>
    Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
    
        
file modified
+9 -4
file modified
+5 -1
file modified
+2 -0
file modified
+28 -39
file modified
+57 -12
file modified
+16 -0
file modified
+15 -0