KVM: x86/xen: Add kvm_xen_enabled static key
authorDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 2 Feb 2021 15:48:05 +0000 (15:48 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 4 Feb 2021 14:19:38 +0000 (14:19 +0000)
commit7d6bbebb7bb0294ede7bda04847272854e34f87c
treef406d06318ceeb0e6dffa26c415f0100b69eb9c5
parent78e9878cb376969d184a4b7fff392528fe17a3ce
KVM: x86/xen: Add kvm_xen_enabled static key

The code paths for Xen support are all fairly lightweight but if we hide
them behind this, they're even *more* lightweight for any system which
isn't actually hosting Xen guests.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
arch/x86/kvm/x86.c
arch/x86/kvm/xen.c
arch/x86/kvm/xen.h