diff options
| author | Sean Christopherson <seanjc@google.com> | 2024-08-30 17:15:27 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2024-09-09 20:16:27 -0700 |
| commit | b7e948898e772ac900950c0dac4ca90e905cd0c0 (patch) | |
| tree | 1315855354876cb2a77c1f128b9aabcc21032a23 /net/unix/unix_bpf.c | |
| parent | 2df354e37c1398a85bb43cbbf1f913eb3f91d035 (diff) | |
KVM: x86/mmu: Don't try to unprotect an INVALID_GPA
If getting the gpa for a gva fails, e.g. because the gva isn't mapped in
the guest page tables, don't try to unprotect the invalid gfn. This is
mostly a performance fix (avoids unnecessarily taking mmu_lock), as
for_each_gfn_valid_sp_with_gptes() won't explode on garbage input, it's
simply pointless.
Link: https://lore.kernel.org/r/20240831001538.336683-13-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions
