diff options
| author | Avi Kivity <avi@qumranet.com> | 2008-03-21 06:38:23 -0400 |
|---|---|---|
| committer | Avi Kivity <avi@qumranet.com> | 2008-04-27 05:00:34 -0400 |
| commit | 69a9f69bb24d6d3dbf3d2ba542ddceeda40536d5 (patch) | |
| tree | f91803eb5a185cfd2f545098ac5da2a31cbf5bee /include | |
| parent | 947da53830690cbd77d7f2b625d0df1f161ffd54 (diff) | |
KVM: Move some x86 specific constants and structures to include/asm-x86
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-x86/kvm_host.h | 13 | ||||
| -rw-r--r-- | include/linux/kvm_host.h | 13 |
2 files changed, 13 insertions, 13 deletions
diff --git a/include/asm-x86/kvm_host.h b/include/asm-x86/kvm_host.h index 772ba95f0a0e..2c85d01d0764 100644 --- a/include/asm-x86/kvm_host.h +++ b/include/asm-x86/kvm_host.h | |||
| @@ -20,6 +20,13 @@ | |||
| 20 | 20 | ||
| 21 | #include <asm/desc.h> | 21 | #include <asm/desc.h> |
| 22 | 22 | ||
| 23 | #define KVM_MAX_VCPUS 16 | ||
| 24 | #define KVM_MEMORY_SLOTS 32 | ||
| 25 | /* memory slots that does not exposed to userspace */ | ||
| 26 | #define KVM_PRIVATE_MEM_SLOTS 4 | ||
| 27 | |||
| 28 | #define KVM_PIO_PAGE_OFFSET 1 | ||
| 29 | |||
| 23 | #define CR3_PAE_RESERVED_BITS ((X86_CR3_PWT | X86_CR3_PCD) - 1) | 30 | #define CR3_PAE_RESERVED_BITS ((X86_CR3_PWT | X86_CR3_PCD) - 1) |
| 24 | #define CR3_NONPAE_RESERVED_BITS ((PAGE_SIZE-1) & ~(X86_CR3_PWT | X86_CR3_PCD)) | 31 | #define CR3_NONPAE_RESERVED_BITS ((PAGE_SIZE-1) & ~(X86_CR3_PWT | X86_CR3_PCD)) |
| 25 | #define CR3_L_MODE_RESERVED_BITS (CR3_NONPAE_RESERVED_BITS | \ | 32 | #define CR3_L_MODE_RESERVED_BITS (CR3_NONPAE_RESERVED_BITS | \ |
| @@ -114,6 +121,12 @@ enum { | |||
| 114 | 121 | ||
| 115 | #define KVM_NR_MEM_OBJS 40 | 122 | #define KVM_NR_MEM_OBJS 40 |
| 116 | 123 | ||
| 124 | struct kvm_guest_debug { | ||
| 125 | int enabled; | ||
| 126 | unsigned long bp[4]; | ||
| 127 | int singlestep; | ||
| 128 | }; | ||
| 129 | |||
| 117 | /* | 130 | /* |
| 118 | * We don't want allocation failures within the mmu code, so we preallocate | 131 | * We don't want allocation failures within the mmu code, so we preallocate |
| 119 | * enough memory for a single page fault in a cache. | 132 | * enough memory for a single page fault in a cache. |
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 958e00371516..f4e143621e35 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
| @@ -24,13 +24,6 @@ | |||
| 24 | 24 | ||
| 25 | #include <asm/kvm_host.h> | 25 | #include <asm/kvm_host.h> |
| 26 | 26 | ||
| 27 | #define KVM_MAX_VCPUS 16 | ||
| 28 | #define KVM_MEMORY_SLOTS 32 | ||
| 29 | /* memory slots that does not exposed to userspace */ | ||
| 30 | #define KVM_PRIVATE_MEM_SLOTS 4 | ||
| 31 | |||
| 32 | #define KVM_PIO_PAGE_OFFSET 1 | ||
| 33 | |||
| 34 | /* | 27 | /* |
| 35 | * vcpu->requests bit members | 28 | * vcpu->requests bit members |
| 36 | */ | 29 | */ |
| @@ -43,12 +36,6 @@ | |||
| 43 | struct kvm_vcpu; | 36 | struct kvm_vcpu; |
| 44 | extern struct kmem_cache *kvm_vcpu_cache; | 37 | extern struct kmem_cache *kvm_vcpu_cache; |
| 45 | 38 | ||
| 46 | struct kvm_guest_debug { | ||
| 47 | int enabled; | ||
| 48 | unsigned long bp[4]; | ||
| 49 | int singlestep; | ||
| 50 | }; | ||
| 51 | |||
| 52 | /* | 39 | /* |
| 53 | * It would be nice to use something smarter than a linear search, TBD... | 40 | * It would be nice to use something smarter than a linear search, TBD... |
| 54 | * Thankfully we dont expect many devices to register (famous last words :), | 41 | * Thankfully we dont expect many devices to register (famous last words :), |
