On Tue, Apr 01, 2025 at 09:01:34AM -0400, Xiaoyao Li wrote: > Date: Tue, 1 Apr 2025 09:01:34 -0400 > From: Xiaoyao Li <xiaoyao...@intel.com> > Subject: [PATCH v8 24/55] i386/tdx: Add TDVF memory via > KVM_TDX_INIT_MEM_REGION > X-Mailer: git-send-email 2.34.1 > > From: Isaku Yamahata <isaku.yamah...@intel.com> > > TDVF firmware (CODE and VARS) needs to be copied to TD's private > memory via KVM_TDX_INIT_MEM_REGION, as well as TD HOB and TEMP memory. > > If the TDVF section has TDVF_SECTION_ATTRIBUTES_MR_EXTEND set in the > flag, calling KVM_TDX_EXTEND_MEMORY to extend the measurement. > > After populating the TDVF memory, the original image located in shared > ramblock can be discarded. > > Signed-off-by: Isaku Yamahata <isaku.yamah...@intel.com> > Signed-off-by: Xiaoyao Li <xiaoyao...@intel.com> > Acked-by: Gerd Hoffmann <kra...@redhat.com> > --- > Changes in v6: > - switch back to use KVM_TDX_INIT_MEM_REGION according to KVM's change; > --- > target/i386/kvm/tdx.c | 42 ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 42 insertions(+)
Reviewed-by: Zhao Liu <zhao1....@intel.com>