public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm, vmx: don't use "unsigned long" in vmx_vcpu_enter_exit()
@ 2022-11-18 17:05 Alexey Dobriyan
  2022-11-18 17:44 ` Sean Christopherson
  2023-01-19 21:03 ` Sean Christopherson
  0 siblings, 2 replies; 3+ messages in thread
From: Alexey Dobriyan @ 2022-11-18 17:05 UTC (permalink / raw)
  To: pbonzini; +Cc: kvm

__vmx_vcpu_run_flags() returns "unsigned int" and uses only 2 bits of it
so using "unsigned long" is very much pointless.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 arch/x86/kvm/vmx/vmx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/x86/kvm/vmx/vmx.c
+++ b/arch/x86/kvm/vmx/vmx.c
@@ -7067,7 +7067,7 @@ static fastpath_t vmx_exit_handlers_fastpath(struct kvm_vcpu *vcpu)
 
 static noinstr void vmx_vcpu_enter_exit(struct kvm_vcpu *vcpu,
 					struct vcpu_vmx *vmx,
-					unsigned long flags)
+					unsigned int flags)
 {
 	guest_state_enter_irqoff();
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-19 21:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-18 17:05 [PATCH] kvm, vmx: don't use "unsigned long" in vmx_vcpu_enter_exit() Alexey Dobriyan
2022-11-18 17:44 ` Sean Christopherson
2023-01-19 21:03 ` Sean Christopherson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox