summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorVincent Donnefort <vdonnefort@google.com>2026-10-28 15:31:50 +0000
committerMarc Zyngier <maz@kernel.org>2026-11-03 11:31:37 +0000
commit9e29ea628848d29eea948200c4357f530b0e1768 (patch)
treef16c4cc6dfcd2cd10df51f97203ed757f22c3fa9 /tools/perf/scripts/python
parent5fe9e7dbc78e3ade118a8f64952b7ed84e502afa (diff)
KVM: arm64: Synchronise kvm_host_data before host deprivileging
When protected mode is enabled, the host is populating and reading the hypervisor copy of kvm_host_data until it is deprivileged. This is an issue for nr_event_counters which is only used by the host to populate mdcr_el2. After deprivileging, it is reading an uninitialised value and sets HPMN to 0, preventing programmable event counters from counting a non-protected guest. Before the host is entirely deprivileged, copy the entire kvm_host_data content from the hypervisor copy to the host-accessible one. Fixes: 2417218f2f23 ("KVM: arm64: Get rid of __kvm_get_mdcr_el2() and related warts") Signed-off-by: Vincent Donnefort <vdonnefort@google.com> Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev> Link: https://patch.msgid.link/20261028153152.1740044-2-fuad.tabba@linux.dev Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions