diff options
author | Joao Martins <joao.m.martins@oracle.com> | 2017-11-08 20:19:54 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-31 10:13:47 +0300 |
commit | 45c40a96b98568f4b0fc79b24d9595ae01ccad68 (patch) | |
tree | 2a68a022cb156806ae2835f3ad07fdb907749d5b /arch/x86 | |
parent | 219dcadc75d794587ceb98d86785dac0dc4761b0 (diff) | |
download | linux-45c40a96b98568f4b0fc79b24d9595ae01ccad68.tar.xz |
ptp_kvm: probe for kvm guest availability
commit 001f60e1f662a6dee1630a2915401aaf5959d479 upstream.
In the event of moving pvclock_pvti_cpu0_va() definition to common
pvclock code, this function would return a value on non KVM guests.
Later on this would fail with a GPF on ptp_kvm_init when running on a
Xen guest. Therefore, ptp_kvm_init() should check whether it is running
in a KVM guest.
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Acked-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions