diff options
| author | Bibo Mao <maobibo@loongson.cn> | 2026-10-13 16:48:42 +0800 |
|---|---|---|
| committer | Huacai Chen <chenhuacai@loongson.cn> | 2026-10-13 16:48:42 +0800 |
| commit | 5b5d40bff4206c15c7f9251cfb27acac557771f7 (patch) | |
| tree | 737724c8e9c1ab3d6eac77068d5b68b0d951db20 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 297ce48f3d1d8ecbc57abe780508af781819011d (diff) | |
LoongArch: KVM: Add vmid support for stage2 MMU
LoongArch KVM hypervisor supports two-level MMU, vpid index (GSTAT.GID
in HW) is used for stage1 MMU and vmid index (GTLBC.TGID in HW) is used
for stage2 MMU.
On Loongson-3A5000, vmid must be the same with vpid. On Loongson-3A6000
platform, vmid may separate from vpid. If a vCPU migrates to different
physical CPUs, vpid need change however vmid can keep unchanged, so that
TLB entries for stage2 MMU is valid still. Also vmid index of the whole
VM machine is the same on one physical CPU, all vCPUs on the same VM can
share the same vmid index on one physical CPU.
Similar to ASID management, there are different ID management to support
multiple VMs and vCPUs, the corresponding ID management functions are
__kvm_check_vpid() and __kvm_check_vmid().
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
