diff options
| author | Lai Jiangshan <[email protected]> | 2021-11-08 20:44:02 +0800 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2021-12-08 04:25:02 -0500 |
| commit | 3883bc9d28ed348d419d2e405d11f0924783f721 (patch) | |
| tree | 4e0a33f5253d8d2888131cf012d4b328cf3497c4 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | aec9c2402f74b898ad637a97360bfc001fb711e6 (diff) | |
KVM: X86: Mark CR3 dirty when vcpu->arch.cr3 is changed
When vcpu->arch.cr3 is changed, it should be marked dirty unless it
is being updated to the value of the architecture guest CR3 (i.e.
VMX.GUEST_CR3 or vmcb->save.cr3 when tdp is enabled).
This patch has no functionality changed because
kvm_register_mark_dirty(vcpu, VCPU_EXREG_CR3) is superset of
kvm_register_mark_available(vcpu, VCPU_EXREG_CR3) with additional
change to vcpu->arch.regs_dirty, but no code uses regs_dirty for
VCPU_EXREG_CR3. (vmx_load_mmu_pgd() uses vcpu->arch.regs_avail instead
to test if VCPU_EXREG_CR3 dirty which means current code (ab)uses
regs_avail for VCPU_EXREG_CR3 dirty information.)
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/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions