]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: x86/xen: register vcpu time info region
authorJoao Martins <joao.m.martins@oracle.com>
Mon, 23 Jul 2018 15:20:57 +0000 (11:20 -0400)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 11 Jan 2021 16:25:34 +0000 (16:25 +0000)
commit7320281a53fbf42f8c7c615279db9c2f279c5f95
tree310d5d4e2825c3ee9918133fab94169455ef8ca7
parent61fbb551fdf30f25599ea5a9a70460162dd1c691
KVM: x86/xen: register vcpu time info region

Allow the Xen emulated guest the ability to register secondary
vcpu time information. On Xen guests this is used in order to be
mapped to userspace and hence allow vdso gettimeofday to work.

In doing so, move kvm_xen_set_pvclock_page() logic to
kvm_xen_update_vcpu_time() and have the former a top-level
function which updates primary vcpu time info (in struct vcpu_info)
and secondary one.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
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
include/uapi/linux/kvm.h