Skip to content

Commit 92c1e3c

Browse files
kaihuangsean-jc
authored andcommitted
KVM: VMX: Switch __vmx_exit() and kvm_x86_vendor_exit() in vmx_exit()
In the vmx_init() error handling path, the __vmx_exit() is done before kvm_x86_vendor_exit(). They should follow the same order in vmx_exit(). But currently __vmx_exit() is done after kvm_x86_vendor_exit() in vmx_exit(). Switch the order of them to fix. Fixes: e32b120 ("KVM: VMX: Do _all_ initialization before exposing /dev/kvm to userspace") Signed-off-by: Kai Huang <kai.huang@intel.com> Link: https://lore.kernel.org/r/20240627010524.3732488-1-kai.huang@intel.com Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent 23b2c50 commit 92c1e3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/kvm/vmx/vmx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8626,9 +8626,9 @@ static void __vmx_exit(void)
86268626
static void vmx_exit(void)
86278627
{
86288628
kvm_exit();
8629+
__vmx_exit();
86298630
kvm_x86_vendor_exit();
86308631

8631-
__vmx_exit();
86328632
}
86338633
module_exit(vmx_exit);
86348634

0 commit comments

Comments
 (0)