summaryrefslogtreecommitdiff
path: root/fs/d_path.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2024-10-10 11:23:35 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2024-10-25 12:59:07 -0400
commit365e319208442a0807a96e9ea4d0b1fa338f1929 (patch)
tree66d199380b28fe0ea3236f4197b8f61f6890222f /fs/d_path.c
parent7afe79f5734aebb55895424074bb944ac4717b7d (diff)
KVM: Pass in write/dirty to kvm_vcpu_map(), not kvm_vcpu_unmap()
Now that all kvm_vcpu_{,un}map() users pass "true" for @dirty, have them pass "true" as a @writable param to kvm_vcpu_map(), and thus create a read-only mapping when possible. Note, creating read-only mappings can be theoretically slower, as they don't play nice with fast GUP due to the need to break CoW before mapping the underlying PFN. But practically speaking, creating a mapping isn't a super hot path, and getting a writable mapping for reading is weird and confusing. Tested-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Sean Christopherson <seanjc@google.com> Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-ID: <20241010182427.1434605-34-seanjc@google.com>
Diffstat (limited to 'fs/d_path.c')
0 files changed, 0 insertions, 0 deletions