kvm: make KVM_COALESCED_MMIO_PAGE_OFFSET public
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 31 Mar 2017 11:53:23 +0000 (13:53 +0200)
committerRadim Krčmář <rkrcmar@redhat.com>
Fri, 7 Apr 2017 14:49:01 +0000 (16:49 +0200)
commit4b4357e02523ec63ad853f927f5d93a25101a1d2
tree5ab91a3f3609ed9e94b4b2f1ef06280514e450d8
parent3042255899540d4985a616017af9e2b80a84a8cf
kvm: make KVM_COALESCED_MMIO_PAGE_OFFSET public

Its value has never changed; we might as well make it part of the ABI instead
of using the return value of KVM_CHECK_EXTENSION(KVM_CAP_COALESCED_MMIO).

Because PPC does not always make MMIO available, the code has to be made
dependent on CONFIG_KVM_MMIO rather than KVM_COALESCED_MMIO_PAGE_OFFSET.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
12 files changed:
arch/arm/include/asm/kvm_host.h
arch/arm/include/uapi/asm/kvm.h
arch/arm64/include/asm/kvm_host.h
arch/arm64/include/uapi/asm/kvm.h
arch/mips/include/asm/kvm_host.h
arch/mips/include/uapi/asm/kvm.h
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/include/uapi/asm/kvm.h
arch/x86/include/asm/kvm_host.h
arch/x86/include/uapi/asm/kvm.h
include/linux/kvm_host.h
virt/kvm/kvm_main.c