445a09b qemu: Don't compare CPU against host for TCG

Authored and Committed by crobinso 9 years ago
25 files changed. 90 lines added. 69 lines removed.
src/qemu/qemu_command.c
file modified
+40 -28
tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-default-nic.args
file modified
+2 -1
tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-default-nic.xml
file modified
+3 -0
tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-virtio.args
file modified
+2 -1
tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-virtio.xml
file modified
+3 -0
tests/qemuxml2argvdata/qemuxml2argv-cpu-exact1.args
file modified
+1 -1
tests/qemuxml2argvdata/qemuxml2argv-cpu-exact1.xml
file modified
+2 -2
tests/qemuxml2argvdata/qemuxml2argv-cpu-exact2-nofallback.args
file modified
+1 -1
tests/qemuxml2argvdata/qemuxml2argv-cpu-exact2-nofallback.xml
file modified
+2 -2
tests/qemuxml2argvdata/qemuxml2argv-cpu-exact2.args
file modified
+1 -1
tests/qemuxml2argvdata/qemuxml2argv-cpu-exact2.xml
file modified
+2 -2
tests/qemuxml2argvdata/qemuxml2argv-cpu-fallback.args
file modified
+1 -1
tests/qemuxml2argvdata/qemuxml2argv-cpu-fallback.xml
file modified
+2 -2
tests/qemuxml2argvdata/qemuxml2argv-cpu-minimum1.args
file modified
+1 -1
tests/qemuxml2argvdata/qemuxml2argv-cpu-minimum1.xml
file modified
+2 -2
tests/qemuxml2argvdata/qemuxml2argv-cpu-minimum2.args
file modified
+1 -1
tests/qemuxml2argvdata/qemuxml2argv-cpu-minimum2.xml
file modified
+2 -2
tests/qemuxml2argvdata/qemuxml2argv-cpu-nofallback.xml
file modified
+1 -1
tests/qemuxml2argvdata/qemuxml2argv-cpu-strict1.args
file modified
+1 -1
tests/qemuxml2argvdata/qemuxml2argv-cpu-strict1.xml
file modified
+2 -2
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-timeout.args
file modified
+1 -1
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-timeout.xml
file modified
+2 -2
tests/qemuxml2argvdata/qemuxml2argv-pseries-cpu-exact.args
file modified
+2 -2
tests/qemuxml2argvtest.c
file modified
+11 -10
tests/qemuxml2xmloutdata/qemuxml2xmlout-graphics-spice-timeout.xml
file modified
+2 -2
    qemu: Don't compare CPU against host for TCG
    
    Right now when building the qemu command line, we try to do various
    unconditional validations of the guest CPU against the host CPU. However
    this checks are overly applied. The only time we should use the checks
    are:
    
    - The user requests host-model/host-passthrough, or
    
    - When KVM is requsted. CPU features requested in TCG mode are always
      emulated by qemu and are independent of the host CPU, so no host CPU
      checks should be performed.
    
    Right now if trying to specify a CPU for arm on an x86 host, it attempts
    to do non-sensical validation and falls over.
    
    Switch all the test cases that were intending to test CPU validation to
    use KVM, so they continue to test the intended code.
    
    Amend some aarch64 XML tests with a CPU model, to ensure things work
    correctly.
    
        
file modified
+40 -28
file modified
+11 -10