summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/powerpc.c
diff options
context:
space:
mode:
authorLaurent Vivier <Laurent.Vivier@bull.net>2008-05-30 16:05:56 +0200
committerAvi Kivity <avi@qumranet.com>2008-07-20 12:42:31 +0300
commit588968b6b7d34e6a88f538d1db9aca47b203623e (patch)
tree0ffb6f15b2b6cab5b758f62d71f9e264ddc0a4fb /arch/powerpc/kvm/powerpc.c
parent542472b53ea9e0add0ba23976018210191d84754 (diff)
downloadop-kernel-dev-588968b6b7d34e6a88f538d1db9aca47b203623e.zip
op-kernel-dev-588968b6b7d34e6a88f538d1db9aca47b203623e.tar.gz
KVM: Add coalesced MMIO support (powerpc part)
This patch enables coalesced MMIO for powerpc architecture. It defines KVM_MMIO_PAGE_OFFSET and KVM_CAP_COALESCED_MMIO. It enables the compilation of coalesced_mmio.c. Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/powerpc/kvm/powerpc.c')
-rw-r--r--arch/powerpc/kvm/powerpc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c
index 0513b35..b850d24 100644
--- a/arch/powerpc/kvm/powerpc.c
+++ b/arch/powerpc/kvm/powerpc.c
@@ -145,6 +145,9 @@ int kvm_dev_ioctl_check_extension(long ext)
case KVM_CAP_USER_MEMORY:
r = 1;
break;
+ case KVM_CAP_COALESCED_MMIO:
+ r = KVM_COALESCED_MMIO_PAGE_OFFSET;
+ break;
default:
r = 0;
break;
OpenPOWER on IntegriCloud