3
0
Fork 0
forked from mirrors/linux
kernel/arch/loongarch
Bibo Mao 6bdbb73dc8 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>
2025-03-08 13:52:04 +08:00
..
boot LoongArch: Migrate to the generic rule for built-in DTB 2025-01-25 18:51:33 +08:00
configs The various patchsets are summarized below. Plus of course many 2025-01-26 18:36:23 -08:00
crypto loongarch/crc32: expose CRC32 functions through lib 2024-12-01 17:23:01 -08:00
include mm: hugetlb: Add huge page size param to huge_ptep_get_and_clear() 2025-02-27 17:40:57 +00:00
kernel LoongArch: Set max_pfn with the PFN of the last page 2025-03-08 13:51:32 +08:00
kvm LoongArch: KVM: Fix GPA size issue about VM 2025-03-08 13:52:04 +08:00
lib LoongArch: csum: Fix OoB access in IP checksum code for negative lengths 2025-02-13 12:02:40 +08:00
mm LoongArch: Set hugetlb mmap base address aligned with pmd size 2025-03-08 13:51:32 +08:00
net LoongArch: BPF: Adjust the parameter of emit_jirl() 2024-12-02 16:42:08 +08:00
pci LoongArch: Fix memleak in pci_acpi_scan_root() 2024-09-24 15:32:20 +08:00
power LoongArch: Fix warnings during S3 suspend 2025-01-26 21:49:59 +08:00
vdso LoongArch changes for v6.13 2024-11-27 11:15:27 -08:00
Kbuild LoongArch: Migrate to the generic rule for built-in DTB 2025-01-25 18:51:33 +08:00
Kconfig LoongArch changes for v6.14 2025-01-28 08:52:01 -08:00
Kconfig.debug LoongArch: Only allow OBJTOOL & ORC unwinder if toolchain supports -mthin-add-sub 2024-06-21 10:18:40 +08:00
Makefile LoongArch: Explicitly specify code model in Makefile 2024-11-26 18:06:03 +08:00