9da1572c42
* Introduce HsaKFDContext structure and infrastructure for multiple KFD contexts, enabling independent contexts within a single process. * Refactor core components (queue, event, FMM, topology) to be context-aware, using explicit HsaKFDContext parameters instead of global state. * Replace global hsakmt_kfd_fd with context-specific file descriptors, ensuring full context isolation. * Maintain backward compatibility by redirecting legacy APIs to use the primary context. This refactoring establishes a foundation for multi-context support while preserving existing functionality. Signed-off-by: Junhua Shen <Junhua.Shen@amd.com>