aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2009-07-27 10:30:48 -0400
committerAvi Kivity <avi@redhat.com>2009-09-10 01:33:19 -0400
commit344f414fa0f16254dd07195d4cd11b2f92931d3d (patch)
tree53ddc04108934f945898ac16160353c3bf04af9c /arch/x86/include/asm/kvm_host.h
parent04326caacff2b162d359c15a2edf634448897d1a (diff)
KVM: report 1GB page support to userspace
If userspace knows that the kernel part supports 1GB pages it can enable the corresponding cpuid bit so that guests actually use GB pages. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r--arch/x86/include/asm/kvm_host.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index 3315efaacf9e..b17d845897b7 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -528,6 +528,8 @@ struct kvm_x86_ops {
528 int (*set_tss_addr)(struct kvm *kvm, unsigned int addr); 528 int (*set_tss_addr)(struct kvm *kvm, unsigned int addr);
529 int (*get_tdp_level)(void); 529 int (*get_tdp_level)(void);
530 u64 (*get_mt_mask)(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio); 530 u64 (*get_mt_mask)(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio);
531 bool (*gb_page_enable)(void);
532
531 const struct trace_print_flags *exit_reasons_str; 533 const struct trace_print_flags *exit_reasons_str;
532}; 534};
533 535