]> www.infradead.org Git - users/willy/linux.git/commit
KVM: e500: map readonly host pages for read
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jan 2025 15:14:55 +0000 (16:14 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 12 Jan 2025 09:35:45 +0000 (10:35 +0100)
commit03b755b2aa48d242440cbfbd365e153b4b20fe54
treeea54ce1223a3251fb74021846d8be99eb6b42108
parentf2104bf22f0475a08a0feeee40d8e45ce38ed5a1
KVM: e500: map readonly host pages for read

The new __kvm_faultin_pfn() function is upset by the fact that e500 KVM
ignores host page permissions - __kvm_faultin requires a "writable"
outgoing argument, but e500 KVM is nonchalantly passing NULL.

If the host page permissions do not include writability, the shadow
TLB entry is forcibly mapped read-only.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/powerpc/kvm/e500_mmu_host.c