]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/virt/tdx: Use ida_is_empty() to detect if any TDs may be running
authorSean Christopherson <seanjc@google.com>
Sat, 14 Feb 2026 01:27:00 +0000 (17:27 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 4 Mar 2026 16:53:08 +0000 (08:53 -0800)
commitafe31de159bf218d6e92db6a4495f715f0a4e38c
treef8ad2a72d04c6e773089dcf55be8a701c156c3d7
parenteac90a5ba0aa40f6d81def241bd78d2a5cc5e08b
x86/virt/tdx: Use ida_is_empty() to detect if any TDs may be running

Drop nr_configured_hkid and instead use ida_is_empty() to detect if any
HKIDs have been allocated/configured.

Suggested-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Chao Gao <chao.gao@intel.com>
Tested-by: Chao Gao <chao.gao@intel.com>
Tested-by: Sagi Shahar <sagis@google.com>
Link: https://patch.msgid.link/20260214012702.2368778-15-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/virt/vmx/tdx/tdx.c