From 77b0903c8bcee45004aecfde2b87d85aed001270 Mon Sep 17 00:00:00 2001 From: Jerone Young Date: Mon, 19 Nov 2007 17:06:31 -0600 Subject: [PATCH] --- yaml --- r: 80751 b: refs/heads/master c: f6a40e3bdf5fe0a7d7d7f2dbc5b10158fbdad968 h: refs/heads/master i: 80749: c8e4aa82c24d02bd6401a56a87aa1200861eff5e 80747: a62a5514d3e352e569fe36c8ff1d72a375215429 80743: 0aaba165568585efc59a97ddfefefad9343a6f7b 80735: 0769b936a52e33ed5b9e406218fc2087e6ab20f1 v: v3 --- [refs] | 2 +- trunk/include/asm-x86/kvm.h | 20 ++++++++++++++++++++ trunk/include/linux/kvm.h | 8 +------- 3 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 trunk/include/asm-x86/kvm.h diff --git a/[refs] b/[refs] index e6e417da4a1d..36d63cc4cc06 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7faa8f6fcc119ce680a90a5f011841b466b1e161 +refs/heads/master: f6a40e3bdf5fe0a7d7d7f2dbc5b10158fbdad968 diff --git a/trunk/include/asm-x86/kvm.h b/trunk/include/asm-x86/kvm.h new file mode 100644 index 000000000000..37cf8e995c83 --- /dev/null +++ b/trunk/include/asm-x86/kvm.h @@ -0,0 +1,20 @@ +#ifndef __LINUX_KVM_X86_H +#define __LINUX_KVM_X86_H + +/* + * KVM x86 specific structures and definitions + * + */ + +#include +#include + +struct kvm_memory_alias { + __u32 slot; /* this has a different namespace than memory slots */ + __u32 flags; + __u64 guest_phys_addr; + __u64 memory_size; + __u64 target_phys_addr; +}; + +#endif diff --git a/trunk/include/linux/kvm.h b/trunk/include/linux/kvm.h index 71d33d62944f..d09dd5dd5493 100644 --- a/trunk/include/linux/kvm.h +++ b/trunk/include/linux/kvm.h @@ -9,6 +9,7 @@ #include #include +#include #define KVM_API_VERSION 12 @@ -35,13 +36,6 @@ struct kvm_userspace_memory_region { /* for kvm_memory_region::flags */ #define KVM_MEM_LOG_DIRTY_PAGES 1UL -struct kvm_memory_alias { - __u32 slot; /* this has a different namespace than memory slots */ - __u32 flags; - __u64 guest_phys_addr; - __u64 memory_size; - __u64 target_phys_addr; -}; /* for KVM_IRQ_LINE */ struct kvm_irq_level {