diff options
author | Sheng Yang <sheng@linux.intel.com> | 2009-04-27 08:35:42 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-06-10 04:48:49 -0400 |
commit | 4b12f0de33a64dfc624b2480f55b674f7fa23ef2 (patch) | |
tree | ed12e1230b777add7aae2b7d24fa82f8e4efbb34 /arch/x86/include/asm/kvm_host.h | |
parent | 9b62e5b10ff0f98346bcbe4a4fe3a0ca8fa7be30 (diff) |
KVM: Replace get_mt_mask_shift with get_mt_mask
Shadow_mt_mask is out of date, now it have only been used as a flag to indicate
if TDP enabled. Get rid of it and use tdp_enabled instead.
Also put memory type logical in kvm_x86_ops->get_mt_mask().
Signed-off-by: Sheng Yang <sheng@linux.intel.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.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 3e94d0513208..8a6f6b643dfe 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -522,7 +522,7 @@ struct kvm_x86_ops { | |||
522 | void (*drop_interrupt_shadow)(struct kvm_vcpu *vcpu); | 522 | void (*drop_interrupt_shadow)(struct kvm_vcpu *vcpu); |
523 | int (*set_tss_addr)(struct kvm *kvm, unsigned int addr); | 523 | int (*set_tss_addr)(struct kvm *kvm, unsigned int addr); |
524 | int (*get_tdp_level)(void); | 524 | int (*get_tdp_level)(void); |
525 | int (*get_mt_mask_shift)(void); | 525 | u64 (*get_mt_mask)(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio); |
526 | }; | 526 | }; |
527 | 527 | ||
528 | extern struct kvm_x86_ops *kvm_x86_ops; | 528 | extern struct kvm_x86_ops *kvm_x86_ops; |
@@ -536,7 +536,7 @@ int kvm_mmu_setup(struct kvm_vcpu *vcpu); | |||
536 | void kvm_mmu_set_nonpresent_ptes(u64 trap_pte, u64 notrap_pte); | 536 | void kvm_mmu_set_nonpresent_ptes(u64 trap_pte, u64 notrap_pte); |
537 | void kvm_mmu_set_base_ptes(u64 base_pte); | 537 | void kvm_mmu_set_base_ptes(u64 base_pte); |
538 | void kvm_mmu_set_mask_ptes(u64 user_mask, u64 accessed_mask, | 538 | void kvm_mmu_set_mask_ptes(u64 user_mask, u64 accessed_mask, |
539 | u64 dirty_mask, u64 nx_mask, u64 x_mask, u64 mt_mask); | 539 | u64 dirty_mask, u64 nx_mask, u64 x_mask); |
540 | 540 | ||
541 | int kvm_mmu_reset_context(struct kvm_vcpu *vcpu); | 541 | int kvm_mmu_reset_context(struct kvm_vcpu *vcpu); |
542 | void kvm_mmu_slot_remove_write_access(struct kvm *kvm, int slot); | 542 | void kvm_mmu_slot_remove_write_access(struct kvm *kvm, int slot); |
@@ -550,6 +550,7 @@ int emulator_write_phys(struct kvm_vcpu *vcpu, gpa_t gpa, | |||
550 | const void *val, int bytes); | 550 | const void *val, int bytes); |
551 | int kvm_pv_mmu_op(struct kvm_vcpu *vcpu, unsigned long bytes, | 551 | int kvm_pv_mmu_op(struct kvm_vcpu *vcpu, unsigned long bytes, |
552 | gpa_t addr, unsigned long *ret); | 552 | gpa_t addr, unsigned long *ret); |
553 | u8 kvm_get_guest_memory_type(struct kvm_vcpu *vcpu, gfn_t gfn); | ||
553 | 554 | ||
554 | extern bool tdp_enabled; | 555 | extern bool tdp_enabled; |
555 | 556 | ||