]> asedeno.scripts.mit.edu Git - linux.git/commit
KVM: x86: hide KVM_HC_CLOCK_PAIRING on 32 bit
authorArnd Bergmann <arnd@arndb.de>
Thu, 9 Feb 2017 15:10:42 +0000 (16:10 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Feb 2017 15:23:39 +0000 (16:23 +0100)
commit8ef81a9a453f9048c1683e40b540a4221986a2d1
tree2537c10ac7632cd3c18a32729bfb981541ba6269
parent2e751dfb5ffd20d1a31837dbc9718741df69bffe
KVM: x86: hide KVM_HC_CLOCK_PAIRING on 32 bit

The newly added hypercall doesn't work on x86-32:

arch/x86/kvm/x86.c: In function 'kvm_pv_clock_pairing':
arch/x86/kvm/x86.c:6163:6: error: implicit declaration of function 'kvm_get_walltime_and_clockread';did you mean 'kvm_get_time_scale'? [-Werror=implicit-function-declaration]

This adds an #ifdef around it, matching the one around the related
functions that are also only implemented on 64-bit systems.

Fixes: 55dd00a73a51 ("KVM: x86: add KVM_HC_CLOCK_PAIRING hypercall")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c