summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLaurent Vivier2008-05-30 16:05:55 +0200
committerAvi Kivity2008-07-20 11:42:31 +0200
commit542472b53ea9e0add0ba23976018210191d84754 (patch)
tree8de46a03065f2fdf33485138f954a246e974070c /include
parentKVM: Add coalesced MMIO support (common part) (diff)
downloadkernel-qcow2-linux-542472b53ea9e0add0ba23976018210191d84754.tar.gz
kernel-qcow2-linux-542472b53ea9e0add0ba23976018210191d84754.tar.xz
kernel-qcow2-linux-542472b53ea9e0add0ba23976018210191d84754.zip
KVM: Add coalesced MMIO support (x86 part)
This patch enables coalesced MMIO for x86 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 'include')
-rw-r--r--include/asm-x86/kvm_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-x86/kvm_host.h b/include/asm-x86/kvm_host.h
index cd6a4bb8c8e8..c64d1242762b 100644
--- a/include/asm-x86/kvm_host.h
+++ b/include/asm-x86/kvm_host.h
@@ -27,6 +27,7 @@
#define KVM_PRIVATE_MEM_SLOTS 4
#define KVM_PIO_PAGE_OFFSET 1
+#define KVM_COALESCED_MMIO_PAGE_OFFSET 2
#define CR3_PAE_RESERVED_BITS ((X86_CR3_PWT | X86_CR3_PCD) - 1)
#define CR3_NONPAE_RESERVED_BITS ((PAGE_SIZE-1) & ~(X86_CR3_PWT | X86_CR3_PCD))