|
@@ -1232,9 +1232,9 @@ void kvm_arch_mmu_enable_log_dirty_pt_masked(struct kvm *kvm,
|
|
|
}
|
|
|
|
|
|
static void coherent_cache_guest_page(struct kvm_vcpu *vcpu, kvm_pfn_t pfn,
|
|
|
- unsigned long size, bool uncached)
|
|
|
+ unsigned long size)
|
|
|
{
|
|
|
- __coherent_cache_guest_page(vcpu, pfn, size, uncached);
|
|
|
+ __coherent_cache_guest_page(vcpu, pfn, size);
|
|
|
}
|
|
|
|
|
|
static int user_mem_abort(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa,
|
|
@@ -1250,7 +1250,6 @@ static int user_mem_abort(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa,
|
|
|
struct vm_area_struct *vma;
|
|
|
kvm_pfn_t pfn;
|
|
|
pgprot_t mem_type = PAGE_S2;
|
|
|
- bool fault_ipa_uncached;
|
|
|
bool logging_active = memslot_is_logging(memslot);
|
|
|
unsigned long flags = 0;
|
|
|
|
|
@@ -1337,8 +1336,6 @@ static int user_mem_abort(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa,
|
|
|
if (!hugetlb && !force_pte)
|
|
|
hugetlb = transparent_hugepage_adjust(&pfn, &fault_ipa);
|
|
|
|
|
|
- fault_ipa_uncached = memslot->flags & KVM_MEMSLOT_INCOHERENT;
|
|
|
-
|
|
|
if (hugetlb) {
|
|
|
pmd_t new_pmd = pfn_pmd(pfn, mem_type);
|
|
|
new_pmd = pmd_mkhuge(new_pmd);
|
|
@@ -1346,7 +1343,7 @@ static int user_mem_abort(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa,
|
|
|
new_pmd = kvm_s2pmd_mkwrite(new_pmd);
|
|
|
kvm_set_pfn_dirty(pfn);
|
|
|
}
|
|
|
- coherent_cache_guest_page(vcpu, pfn, PMD_SIZE, fault_ipa_uncached);
|
|
|
+ coherent_cache_guest_page(vcpu, pfn, PMD_SIZE);
|
|
|
ret = stage2_set_pmd_huge(kvm, memcache, fault_ipa, &new_pmd);
|
|
|
} else {
|
|
|
pte_t new_pte = pfn_pte(pfn, mem_type);
|
|
@@ -1356,7 +1353,7 @@ static int user_mem_abort(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa,
|
|
|
kvm_set_pfn_dirty(pfn);
|
|
|
mark_page_dirty(kvm, gfn);
|
|
|
}
|
|
|
- coherent_cache_guest_page(vcpu, pfn, PAGE_SIZE, fault_ipa_uncached);
|
|
|
+ coherent_cache_guest_page(vcpu, pfn, PAGE_SIZE);
|
|
|
ret = stage2_set_pte(kvm, memcache, fault_ipa, &new_pte, flags);
|
|
|
}
|
|
|
|