Re: [PATCH v2] KVM: x86: Don't read guest CR3 when doing async pf while the MMU is direct
From: Sean Christopherson
Date: Mon Jan 12 2026 - 12:40:46 EST
On Fri, 12 Dec 2025 21:50:51 +0800, Xiaoyao Li wrote:
> Don't read guest CR3 in kvm_arch_setup_async_pf() if the MMU is direct
> and use INVALID_GPA instead.
>
> When KVM tries to perform the host-only async page fault for the shared
> memory of TDX guests, the following WARNING is triggered:
>
> WARNING: CPU: 1 PID: 90922 at arch/x86/kvm/vmx/main.c:483 vt_cache_reg+0x16/0x20
> Call Trace:
> __kvm_mmu_faultin_pfn
> kvm_mmu_faultin_pfn
> kvm_tdp_page_fault
> kvm_mmu_do_page_fault
> kvm_mmu_page_fault
> tdx_handle_ept_violation
>
> [...]
Applied to kvm-x86 misc, with the explicit cast to make 32-bit builds happy.
Thanks!
[1/1] KVM: x86: Don't read guest CR3 when doing async pf while the MMU is direct
https://github.com/kvm-x86/linux/commit/57a7b47ab30f
--
https://github.com/kvm-x86/linux/tree/next