Re: [PATCH v12 07/22] x86/virt/tdx: Add skeleton to enable TDX on demand

From: kirill . shutemov
Date: Tue Jun 27 2023 - 05:50:29 EST


On Tue, Jun 27, 2023 at 02:12:37AM +1200, Kai Huang wrote:
> + /*
> + * The TDX module global initialization only needs to be done
> + * once on any cpu.
> + */
> + raw_spin_lock_irqsave(&tdx_global_init_lock, flags);

I don't understand how the comment justifies using raw spin lock.

--
Kiryl Shutsemau / Kirill A. Shutemov