]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: x86/xen: split up kvm_xen_set_evtchn_fast()
authorPaul Durrant <pdurrant@amazon.com>
Wed, 15 Nov 2023 21:03:32 +0000 (21:03 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 8 Mar 2024 14:53:10 +0000 (14:53 +0000)
commitd1b97d5ef2428482a69c73b69665a18cc596b54e
treed4aaaaef450d59c0315c6972ab3d241927947a6a
parentfd961ad9e17f4d1774d382dae1aa269b6f27f254
KVM: x86/xen: split up kvm_xen_set_evtchn_fast()

The implementation of kvm_xen_set_evtchn_fast() is a rather lengthy piece
of code that performs two operations: updating of the shared_info
evtchn_pending mask, and updating of the vcpu_info evtchn_pending_sel
mask. Introduce a separate function to perform each of those operations and
re-work kvm_xen_set_evtchn_fast() to use them.

No functional change intended.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Reviewed-by: David Woodhouse <dwmw@amazon.co.uk>
---
Cc: Sean Christopherson <seanjc@google.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: x86@kernel.org
arch/x86/kvm/xen.c