• Nadav Har'El's avatar
    KVM: nVMX: Fix bug preventing more than two levels of nesting · 509c75ea
    Nadav Har'El authored
    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: default avatarNadav Har'El <nyh@il.ibm.com>
    Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
    509c75ea
vmx.c 202 KB