diff options
| author | David Matlack <[email protected]> | 2022-06-22 15:26:56 -0400 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2022-06-24 04:51:55 -0400 |
| commit | be911771330a2ae0938d452fd89a8df085533134 (patch) | |
| tree | 119c02cf8fd75866c4b16883d845c4dcba44f3f5 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 876546436db9775caee4cadf78edd2b5bf72ac84 (diff) | |
KVM: x86/mmu: Move guest PT write-protection to account_shadowed()
Move the code that write-protects newly-shadowed guest page tables into
account_shadowed(). This avoids a extra gfn-to-memslot lookup and is a
more logical place for this code to live. But most importantly, this
reduces kvm_mmu_alloc_shadow_page()'s reliance on having a struct
kvm_vcpu pointer, which will be necessary when creating new shadow pages
during VM ioctls for eager page splitting.
Note, it is safe to drop the role.level == PG_LEVEL_4K check since
account_shadowed() returns early if role.level > PG_LEVEL_4K.
No functional change intended.
Reviewed-by: Sean Christopherson <[email protected]>
Signed-off-by: David Matlack <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions