From: Abel Gordon Date: Thu, 18 Apr 2013 11:36:55 +0000 (+0300) Subject: KVM: nVMX: Fix VMXON emulation X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~32^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=145c28dd19a2a05aa798e77bd7e679847fe8bee3;p=pandora-kernel.git KVM: nVMX: Fix VMXON emulation handle_vmon doesn't check if L1 is already in root mode (VMXON was previously called). This patch adds this missing check and calls nested_vmx_failValid if VMX is already ON. We need this check because L0 will allocate the shadow vmcs when L1 executes VMXON and we want to avoid host leaks (due to shadow vmcs allocation) if L1 executes VMXON repeatedly. Signed-off-by: Abel Gordon Reviewed-by: Orit Wasserman Signed-off-by: Gleb Natapov --- Reading git-diff-tree failed