]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30b973bc8151dba97e2989e4f63fddc4e64e99c7
treef406d06318ceeb0e6dffa26c415f0100b69eb9c5
parenta51ce50da33532ce2c619e8032c83d74ade746c1
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