Re: [PATCH v14 14/22] KVM: selftests: Expose function to allocate vCPU stack
Xiaoyao Li <[email protected]>
| Newsgroups | org.kernel.vger.linux-kselftest,dev.linux.lists.linux-coco,org.kernel.vger.kvm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On 7/23/2026 7:13 AM, Lisa Wang wrote: > From: Sagi Shahar <[email protected]> > > Introduce kvm_allocate_vcpu_stack() to allocate a vCPU's stack > in preparation for TDX to allocate a vCPU's stack and initialize > its stack pointer. > > TDX VMs' registers are protected state and cannot be initialized > using the KVM_SET_REGS ioctl() that is used for normal VMs. A TDX > vCPU's stack address will be a property of the TDX specific boot code > that initializes the vCPUs' stack pointers at boot. > > Reviewed-by: Binbin Wu <[email protected]> > Signed-off-by: Sagi Shahar <[email protected]> > Reviewed-by: Ira Weiny <[email protected]> > Signed-off-by: Lisa Wang <[email protected]> Reviewed-by: Xiaoyao Li <[email protected]>