diff options
author | Lai Jiangshan <[email protected]> | 2022-04-20 21:12:03 +0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2022-04-29 12:50:00 -0400 |
commit | 767d8d8d503f946c7a67735e77dea7e1c9cb6b51 (patch) | |
tree | b2114c64a31d58808569378567fbe382b8b559e4 /tools/perf/scripts/python/sched-migration.py | |
parent | 9f084f7c2ed7e6b8cc3176b9ece2f6cb0641c385 (diff) |
KVM: X86/MMU: Add sp_has_gptes()
Add sp_has_gptes() which equals to !sp->role.direct currently.
Shadow page having gptes needs to be write-protected, accounted and
responded to kvm_mmu_pte_write().
Use it in these places to replace !sp->role.direct and rename
for_each_gfn_indirect_valid_sp.
Signed-off-by: Lai Jiangshan <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions