aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index 8323f400936..abe40dd34ee 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -123,6 +123,8 @@ struct kvm_mmu {
123 hpa_t root_hpa; 123 hpa_t root_hpa;
124 int root_level; 124 int root_level;
125 int shadow_root_level; 125 int shadow_root_level;
126
127 u64 *pae_root;
126}; 128};
127 129
128struct kvm_guest_debug { 130struct kvm_guest_debug {
@@ -548,19 +550,4 @@ static inline u32 get_rdx_init_val(void)
548#define TSS_REDIRECTION_SIZE (256 / 8) 550#define TSS_REDIRECTION_SIZE (256 / 8)
549#define RMODE_TSS_SIZE (TSS_BASE_SIZE + TSS_REDIRECTION_SIZE + TSS_IOPB_SIZE + 1) 551#define RMODE_TSS_SIZE (TSS_BASE_SIZE + TSS_REDIRECTION_SIZE + TSS_IOPB_SIZE + 1)
550 552
551#ifdef CONFIG_X86_64
552
553/*
554 * When emulating 32-bit mode, cr3 is only 32 bits even on x86_64. Therefore
555 * we need to allocate shadow page tables in the first 4GB of memory, which
556 * happens to fit the DMA32 zone.
557 */
558#define GFP_KVM_MMU (GFP_KERNEL | __GFP_DMA32)
559
560#else
561
562#define GFP_KVM_MMU GFP_KERNEL
563
564#endif
565
566#endif 553#endif