Re: [PATCH v14 10/22] KVM: selftests: Set up TDX boot code region
Xiaoyao Li <[email protected]> Thu, 23 Jul 2026 18:24:26 +0800
| Newsgroups | dev.linux.lists.linux-coco,org.kernel.vger.kvm,org.kernel.vger.linux-kernel,org.kernel.vger.linux-kselftest |
|---|---|
| Message-ID | <[email protected]> |
On 7/23/2026 7:13 AM, Lisa Wang wrote: > From: Sagi Shahar <[email protected]> > > Add memory for TDX boot code in a separate memslot. > > Use virt_map() to get identity map in this memory region to allow for > seamless transition from paging disabled to paging enabled code. > > Copy the boot code into the memory region and set up the reset vector > at this point. While it's possible to separate the memory allocation and > boot code initialization into separate functions, having all the > calculations for memory size and offsets in one place simplifies the > code and avoids duplications. > > Handcode the reset vector as suggested by Sean Christopherson. > > Reviewed-by: Binbin Wu <[email protected]> > Suggested-by: Sean Christopherson <[email protected]> > Co-developed-by: Erdem Aktas <[email protected]> > Signed-off-by: Erdem Aktas <[email protected]> > Signed-off-by: Sagi Shahar <[email protected]> > Signed-off-by: Lisa Wang <[email protected]> Reviewed-by: Xiaoyao Li <[email protected]>