]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: x86/xen: Add KVM_XEN_VCPU_ATTR_TYPE_VCPU_ID
authorDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 8 Feb 2022 20:04:39 +0000 (20:04 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 9 Feb 2022 22:20:44 +0000 (22:20 +0000)
commit459bd0d52bb2a563fc53a3ab709d6acb51f97033
treecbab62d7afea821073b376740cef3cade2298ad9
parent013d77482366dc4157ae6c3dd2bdc299604fedb0
KVM: x86/xen: Add KVM_XEN_VCPU_ATTR_TYPE_VCPU_ID

In order to intercept hypercalls such as VCPUOP_set_singleshot_timer, we
need to be aware of the Xen CPU numbering.

This looks a lot like the Hyper-V handling of vpidx, for obvious reasons.

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