diff options
| author | 2026-04-09 18:56:36 +0800 | |
|---|---|---|
| committer | 2026-04-09 18:56:36 +0800 | |
| commit | aac656857e9f008a014ac9d58aab66e8fc803604 (patch) | |
| tree | 8f3dd6e5a90ba7dcdbc822c6fb142f6d52e34e26 /tools/perf/scripts/python | |
| parent | LoongArch: KVM: Move host CSR_EENTRY save and restore in context switch (diff) | |
LoongArch: KVM: Move host CSR_GSTAT save and restore in context switch
CSR register LOONGARCH_CSR_GSTAT stores guest VMID information. With
existing implementation method, VMID is per vCPU, similar with ASID in
kernel. LOONGARCH_CSR_GSTAT is written at VM entry even if VMID is not
changed.
Here move LOONGARCH_CSR_GSTAT save/restore in vCPU context switch, and
update LOONGARCH_CSR_GSTAT only when VMID is updated at VM entry. At
most time VM enter/exit is much more frequent than vCPU thread context
switch.
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
