]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Enable support for nested SVM
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 22 Sep 2010 11:47:09 +0000 (12:47 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 13 Oct 2010 15:45:31 +0000 (16:45 +0100)
commitf98a6cd6ae95291e09584d3b8853837934506d45
tree034cbe60aff57da39c4fcaf1ea9c30c7a1de958b
parent80aa766067cf6da9c40ddda645d60211fd098a3d
Enable support for nested SVM

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
src/cpu/cpu.c
src/cpu/cpu.h
src/cpu/cpu_x86.c
src/libvirt_private.syms
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
tests/qemuhelptest.c