• D
    Enable support for nested SVM · f98a6cd6
    Daniel P. Berrange 提交于
    This enables support for nested SVM using the regular CPU
    model/features block. If the CPU model or features include
    'svm', then the '-enable-nesting' flag will be added to the
    QEMU command line. Latest out of tree patches for nested
    'vmx', no longer require the '-enable-nesting' flag. They
    instead just look at the cpu features. Several of the models
    already include svm support, but QEMU was just masking out
    the svm bit silently. So this will enable SVM on such
    models
    
    * src/qemu/qemu_conf.h: flag for -enable-nesting
    * src/qemu/qemu_conf.c: Use -enable-nesting if VMX or SVM are in
      the CPUID
    * src/cpu/cpu.h, src/cpu/cpu.c: API to check for a named feature
    * src/cpu/cpu_x86.c: x86 impl of feature check
    * src/libvirt_private.syms: Add cpuHasFeature
    * src/qemuhelptest.c: Add nesting flag where required
    f98a6cd6
qemu_conf.h 14.7 KB