]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Fix bug preventing more than two levels of nesting
authorNadav Har'El <nyh@il.ibm.com>
Thu, 2 Jun 2011 08:54:52 +0000 (11:54 +0300)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 10:16:11 +0000 (13:16 +0300)
commitd33e4f0b0695046acd3b21a3fe12ad24ecf51ade
treeca92220fc48fca56c882a395bd8527863983a936
parent72a58b68bddf04c119b503b6417704aeee8e3860
KVM: nVMX: Fix bug preventing more than two levels of nesting

The nested VMX feature is supposed to fully emulate VMX for the guest. This
(theoretically) not only allows it to run its own guests, but also also
to further emulate VMX for its own guests, and allow arbitrarily deep nesting.

This patch fixes a bug (discovered by Kevin Tian) in handling a VMLAUNCH
by L2, which prevented deeper nesting.

Deeper nesting now works (I only actually tested L3), but is currently
*absurdly* slow, to the point of being unusable.

Signed-off-by: Nadav Har'El <nyh@il.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c