summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2025-03-08 08:52:04 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2025-03-08 08:52:04 +0300
commit6bdbb73dc8d99fbb77f5db79dbb6f108708090b4 (patch)
tree07a647eca7e45a5a83bf602c502173eadde450a9 /tools/perf/scripts/python/libxed.py
parent78d7bc5a02e1468df53896df354fa80727f35b7d (diff)
downloadlinux-6bdbb73dc8d99fbb77f5db79dbb6f108708090b4.tar.xz
LoongArch: KVM: Fix GPA size issue about VM
Physical address space is 48 bit on Loongson-3A5000 physical machine, however it is 47 bit for VM on Loongson-3A5000 system. Size of physical address space of VM is the same with the size of virtual user space (a half) of physical machine. Variable cpu_vabits represents user address space, kernel address space is not included (user space and kernel space are both a half of total). Here cpu_vabits, rather than cpu_vabits - 1, is to represent the size of guest physical address space. Also there is strict checking about page fault GPA address, inject error if it is larger than maximum GPA address of VM. Cc: stable@vger.kernel.org Signed-off-by: Bibo Mao <maobibo@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions