Skip to content
Commit e8733482 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Sean Christopherson
Browse files

KVM: VMX: don't use "unsigned long" in vmx_vcpu_enter_exit()



__vmx_vcpu_run_flags() returns "unsigned int" and uses only 2 bits of it
so using "unsigned long" is very much pointless.  Furthermore,
__vmx_vcpu_run() and vmx_spec_ctrl_restore_host() take an "unsigned int",
i.e. actually relying on an "unsigned long" value won't work.

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: default avatarSean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/Y3e7UW0WNV2AZmsZ@p183


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent 5a7a6477
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment