]> 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>
Mon, 28 Feb 2022 19:42:44 +0000 (19:42 +0000)
commite7aabd192e98bd0ffc133bbd7d376abfc28157e8
treecdab5b9abd53968c5ab2ff6c07a90b8ce22fb397
parent42b6fa6efc2c9a955e79549e2325d522ba7a6b78
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