On Tue, 2024-09-10 at 18:42 +0200, Paolo Bonzini wrote: > Yes, I meant this is the code and it just has to be moved to arch/x86. > The only other function that is needed is a wrapper for ida_is_empty(), > which is used in tdx_offline_cpu(): > > /* No TD is running. Allow any cpu to be offline. */ > if (ida_is_empty(&tdx_guest_keyid_pool)) > return 0; Oh, good point.