diff options
| author | Paolo Bonzini <[email protected]> | 2025-06-11 00:10:18 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2025-06-12 04:43:39 +0000 |
| commit | aa2024c01a9afba6728b362626f868811ca872ee (patch) | |
| tree | b6f667cde3395a97721995715e73f8226e873b86 /lib/crypto/mpi/mpi-mul.c | |
| parent | KVM: SEV: Disable SEV-SNP support on initialization failure (diff) | |
| download | kernel-aa2024c01a9afba6728b362626f868811ca872ee.tar.gz kernel-aa2024c01a9afba6728b362626f868811ca872ee.zip | |
KVM: x86/mmu: Embed direct bits into gpa for KVM_PRE_FAULT_MEMORY
Bug[*] reported for TDX case when enabling KVM_PRE_FAULT_MEMORY in QEMU.
It turns out that @gpa passed to kvm_mmu_do_page_fault() doesn't have
shared bit set when the memory attribute of it is shared, and it leads
to wrong root in tdp_mmu_get_root_for_fault().
Fix it by embedding the direct bits in the gpa that is passed to
kvm_tdp_map_page(), when the memory of the gpa is not private.
[*] https://lore.kernel.org/qemu-devel/[email protected]/
Reported-by: Xiaoyao Li <[email protected]>
Closes: https://lore.kernel.org/qemu-devel/[email protected]/
Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Xiaoyao Li <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions
