]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: x86/xen: setup pvclock updates
authorJoao Martins <joao.m.martins@oracle.com>
Fri, 1 Feb 2019 18:01:45 +0000 (13:01 -0500)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Sun, 6 Dec 2020 10:52:10 +0000 (10:52 +0000)
commit3e6f73ba9d1518eac34712caef35bb7bd7fb0472
tree3527e60e53da4f342de29a12a7b52de8a904ed85
parent93a0ed4a6589c15719b690033cc51d591fb613fc
KVM: x86/xen: setup pvclock updates

This means when we set shared_info page GPA, and request a master
clock update. This will trigger all vcpus to update their respective
shared pvclock data with guests. We follow a similar approach
as Hyper-V and KVM and adjust it accordingly.

Note however that Xen differs a little on how pvclock pages are set up.
Specifically KVM assumes 4KiB page alignment and pvclock data starts in
the beginning of the page. Whereas Xen you can place that information
anywhere in the page.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
arch/x86/kvm/x86.c
arch/x86/kvm/xen.c
arch/x86/kvm/xen.h