Re: [PATCH 2/5] KVM: x86/xen: Add an #ifdef'd helper to detect writes to Xen MSR

From: Paul Durrant
Date: Mon Feb 03 2025 - 04:10:30 EST


On 01/02/2025 01:13, Sean Christopherson wrote:
Add a helper to detect writes to the Xen hypercall page MSR, and provide a
stub for CONFIG_KVM_XEN=n to optimize out the check for kernels built
without Xen support.

Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
---
arch/x86/kvm/x86.c | 2 +-
arch/x86/kvm/xen.h | 10 ++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)


Reviewed-by: Paul Durrant <paul@xxxxxxx>