diff options
-rw-r--r-- | include/asm-x86/kvm.h | 20 | ||||
-rw-r--r-- | include/linux/kvm.h | 8 |
2 files changed, 21 insertions, 7 deletions
diff --git a/include/asm-x86/kvm.h b/include/asm-x86/kvm.h new file mode 100644 index 000000000000..37cf8e995c83 --- /dev/null +++ b/include/asm-x86/kvm.h | |||
@@ -0,0 +1,20 @@ | |||
1 | #ifndef __LINUX_KVM_X86_H | ||
2 | #define __LINUX_KVM_X86_H | ||
3 | |||
4 | /* | ||
5 | * KVM x86 specific structures and definitions | ||
6 | * | ||
7 | */ | ||
8 | |||
9 | #include <asm/types.h> | ||
10 | #include <linux/ioctl.h> | ||
11 | |||
12 | struct kvm_memory_alias { | ||
13 | __u32 slot; /* this has a different namespace than memory slots */ | ||
14 | __u32 flags; | ||
15 | __u64 guest_phys_addr; | ||
16 | __u64 memory_size; | ||
17 | __u64 target_phys_addr; | ||
18 | }; | ||
19 | |||
20 | #endif | ||
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index 71d33d62944f..d09dd5dd5493 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h | |||
@@ -9,6 +9,7 @@ | |||
9 | 9 | ||
10 | #include <asm/types.h> | 10 | #include <asm/types.h> |
11 | #include <linux/ioctl.h> | 11 | #include <linux/ioctl.h> |
12 | #include <asm/kvm.h> | ||
12 | 13 | ||
13 | #define KVM_API_VERSION 12 | 14 | #define KVM_API_VERSION 12 |
14 | 15 | ||
@@ -35,13 +36,6 @@ struct kvm_userspace_memory_region { | |||
35 | /* for kvm_memory_region::flags */ | 36 | /* for kvm_memory_region::flags */ |
36 | #define KVM_MEM_LOG_DIRTY_PAGES 1UL | 37 | #define KVM_MEM_LOG_DIRTY_PAGES 1UL |
37 | 38 | ||
38 | struct kvm_memory_alias { | ||
39 | __u32 slot; /* this has a different namespace than memory slots */ | ||
40 | __u32 flags; | ||
41 | __u64 guest_phys_addr; | ||
42 | __u64 memory_size; | ||
43 | __u64 target_phys_addr; | ||
44 | }; | ||
45 | 39 | ||
46 | /* for KVM_IRQ_LINE */ | 40 | /* for KVM_IRQ_LINE */ |
47 | struct kvm_irq_level { | 41 | struct kvm_irq_level { |