diff options
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r-- | arch/x86/kvm/mmu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 4ea0dcb0b21b..10fbed126b11 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -629,7 +629,7 @@ static int mmu_spte_clear_track_bits(u64 *sptep) | |||
629 | * kvm mmu, before reclaiming the page, we should | 629 | * kvm mmu, before reclaiming the page, we should |
630 | * unmap it from mmu first. | 630 | * unmap it from mmu first. |
631 | */ | 631 | */ |
632 | WARN_ON(!kvm_is_mmio_pfn(pfn) && !page_count(pfn_to_page(pfn))); | 632 | WARN_ON(!kvm_is_reserved_pfn(pfn) && !page_count(pfn_to_page(pfn))); |
633 | 633 | ||
634 | if (!shadow_accessed_mask || old_spte & shadow_accessed_mask) | 634 | if (!shadow_accessed_mask || old_spte & shadow_accessed_mask) |
635 | kvm_set_pfn_accessed(pfn); | 635 | kvm_set_pfn_accessed(pfn); |
@@ -2460,7 +2460,7 @@ static int set_spte(struct kvm_vcpu *vcpu, u64 *sptep, | |||
2460 | spte |= PT_PAGE_SIZE_MASK; | 2460 | spte |= PT_PAGE_SIZE_MASK; |
2461 | if (tdp_enabled) | 2461 | if (tdp_enabled) |
2462 | spte |= kvm_x86_ops->get_mt_mask(vcpu, gfn, | 2462 | spte |= kvm_x86_ops->get_mt_mask(vcpu, gfn, |
2463 | kvm_is_mmio_pfn(pfn)); | 2463 | kvm_is_reserved_pfn(pfn)); |
2464 | 2464 | ||
2465 | if (host_writable) | 2465 | if (host_writable) |
2466 | spte |= SPTE_HOST_WRITEABLE; | 2466 | spte |= SPTE_HOST_WRITEABLE; |
@@ -2736,7 +2736,7 @@ static void transparent_hugepage_adjust(struct kvm_vcpu *vcpu, | |||
2736 | * PT_PAGE_TABLE_LEVEL and there would be no adjustment done | 2736 | * PT_PAGE_TABLE_LEVEL and there would be no adjustment done |
2737 | * here. | 2737 | * here. |
2738 | */ | 2738 | */ |
2739 | if (!is_error_noslot_pfn(pfn) && !kvm_is_mmio_pfn(pfn) && | 2739 | if (!is_error_noslot_pfn(pfn) && !kvm_is_reserved_pfn(pfn) && |
2740 | level == PT_PAGE_TABLE_LEVEL && | 2740 | level == PT_PAGE_TABLE_LEVEL && |
2741 | PageTransCompound(pfn_to_page(pfn)) && | 2741 | PageTransCompound(pfn_to_page(pfn)) && |
2742 | !has_wrprotected_page(vcpu->kvm, gfn, PT_DIRECTORY_LEVEL)) { | 2742 | !has_wrprotected_page(vcpu->kvm, gfn, PT_DIRECTORY_LEVEL)) { |