Re: [edk2-devel] [PATCH v9 09/10] OvmfPkg/CpuHotplugSmm: do actual CPU hot-eject

2021-03-16 Thread Laszlo Ersek
On 03/12/21 07:26, Ankur Arora wrote: > @@ -214,6 +243,83 @@ EjectCpu ( > { >UINT64 QemuSelector; > > + if (CheckIfBsp ()) { > +UINT32 Idx; > + > +for (Idx = 0; Idx < mCpuHotEjectData->ArrayLength; Idx++) { > + UINT64 QemuSelector; Visual Studio warns that the inner QemuSelec

Re: [edk2-devel] [PATCH v9 09/10] OvmfPkg/CpuHotplugSmm: do actual CPU hot-eject

2021-03-16 Thread Laszlo Ersek
On 03/12/21 07:26, Ankur Arora wrote: > Add logic in EjectCpu() to do the actual the CPU ejection. > > On the BSP, ejection happens by first selecting the CPU via > its QemuSelector and then sending the QEMU "eject" command. > QEMU in-turn signals the remote VCPU thread which context-switches > th

[edk2-devel] [PATCH v9 09/10] OvmfPkg/CpuHotplugSmm: do actual CPU hot-eject

2021-03-11 Thread Ankur Arora
Add logic in EjectCpu() to do the actual the CPU ejection. On the BSP, ejection happens by first selecting the CPU via its QemuSelector and then sending the QEMU "eject" command. QEMU in-turn signals the remote VCPU thread which context-switches the CPU out of the SMI handler. Meanwhile the CPU b