]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: TDX: Add a method to ignore hypercall patching
authorIsaku Yamahata <isaku.yamahata@intel.com>
Thu, 27 Feb 2025 01:20:18 +0000 (09:20 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Mar 2025 18:20:58 +0000 (14:20 -0400)
commit0b75889b0cca92a5692d4266921f9604fcf9ae28
treea0ba0574275747b4c0659d5499c8df01319779b3
parent79264ff080c7902c6f23e0245641bc06b4f9e4d1
KVM: TDX: Add a method to ignore hypercall patching

Because guest TD memory is protected, VMM patching guest binary for
hypercall instruction isn't possible.  Add a method to ignore hypercall
patching.  Note: guest TD kernel needs to be modified to use
TDG.VP.VMCALL for hypercall.

Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
Signed-off-by: Binbin Wu <binbin.wu@linux.intel.com>
Message-ID: <20250227012021.1778144-18-binbin.wu@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/main.c