Enable nested SVM support in userspace
commit2bba4446746add456ceeb0e8359a43032a2ea333
authorAlexander Graf <agraf@suse.de>
Thu, 18 Dec 2008 14:38:32 +0000 (18 15:38 +0100)
committerAvi Kivity <avi@redhat.com>
Thu, 18 Dec 2008 15:32:52 +0000 (18 17:32 +0200)
tree28513ef40d1d397632d197818b6b80e1eb636cb8
parent08887c8fae0c474e4eb0c9dde6bba07597e95ac6
Enable nested SVM support in userspace

In order to use the new nested SVM support in KVM, we need to
expose the SVM capability to the virtual machine.
The current code masks this bit out.

In order to expose the SVM capability to the guest, I added
a -enable-nesting command line option, that makes qemu expose
the SVM capability.
Please bear in mind that this switch does not work properly
on VMX.

So what you need to do to use nested SVM with this patch
applied is:

1. modprobe kvm-amd nested=1
2. qemu-system-x86_64 -enable-nesting ...

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
qemu-kvm-x86.c
qemu-kvm.c
qemu-kvm.h
target-i386/helper.c
target-i386/kvm.c
vl.c