diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2020-06-03 06:44:51 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-06-03 06:44:51 +0300 |
commit | 1395375c592770fe5158a592944aaeed67fa94ff (patch) | |
tree | 82cd6ab7956f36733269a6f2a3041683b2db04f4 /arch/powerpc/include/asm/kvm_book3s_64.h | |
parent | 4336b9337824a60a0b10013c622caeee99460db5 (diff) | |
parent | bf8036a4098d1548cdccf9ed5c523ef4e83e3c68 (diff) | |
download | linux-1395375c592770fe5158a592944aaeed67fa94ff.tar.xz |
Merge branch 'topic/ppc-kvm' into next
Merge one more commit from the topic branch we shared with the kvm-ppc
tree.
This brings in a fix to the code that scans for dirty pages during
migration of a VM, which was incorrectly triggering a warning.
Diffstat (limited to 'arch/powerpc/include/asm/kvm_book3s_64.h')
-rw-r--r-- | arch/powerpc/include/asm/kvm_book3s_64.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/kvm_book3s_64.h b/arch/powerpc/include/asm/kvm_book3s_64.h index c58e64a0a74f..9bb9bb370b53 100644 --- a/arch/powerpc/include/asm/kvm_book3s_64.h +++ b/arch/powerpc/include/asm/kvm_book3s_64.h @@ -635,6 +635,16 @@ extern void kvmhv_remove_nest_rmap_range(struct kvm *kvm, unsigned long gpa, unsigned long hpa, unsigned long nbytes); +static inline pte_t * +find_kvm_secondary_pte_unlocked(struct kvm *kvm, unsigned long ea, + unsigned *hshift) +{ + pte_t *pte; + + pte = __find_linux_pte(kvm->arch.pgtable, ea, NULL, hshift); + return pte; +} + static inline pte_t *find_kvm_secondary_pte(struct kvm *kvm, unsigned long ea, unsigned *hshift) { |