Thread (4 messages) flat view 4 messages, 3 authors, 2025-01-11

Re: [PATCH] KVM: allow NULL writable argument to __kvm_faultin_pfn

From: Sean Christopherson <seanjc@google.com>
Date: 2025-01-08 14:41:36
Also in: kvm, lkml, regressions

On Mon, Jan 06, 2025, Sean Christopherson wrote:
On Wed, Jan 01, 2025, Paolo Bonzini wrote:
quoted
kvm_follow_pfn() is able to work with NULL in the .map_writable field
of the homonymous struct.  But __kvm_faultin_pfn() rejects the combo
despite KVM for e500 trying to use it.  Indeed .map_writable is not
particularly useful if the flags include FOLL_WRITE and readonly
guest memory is not supported, so add support to __kvm_faultin_pfn()
for this case.
I would prefer to keep the sanity check to minimize the risk of a page fault
handler not supporting opportunistic write mappings.  e500 is definitely the
odd one out here.
Per a quick chat at PUCK, Paolo is going to try and fix the e500 code to actually
use the @writable param as it's intended.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help