mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-05-19 06:05:45 +00:00
This commit implements the conversion logic for the newly introduced CoCo/Initdata configurations, ensuring that `ProtectionDevConfig` data, particularly the `mrconfigid`, is correctly passed. And the main Changes are as below: - Importing `ProtectionDevConfig` for use in conversion logic. - Extracting `protection_device` from `NamedHypervisorConfig` and passing it during the conversion to `VmConfig`. - Updating the `TryFrom` implementation for `PayloadConfig` to accept the `ProtectionDevConfig` and use its `mrconfigid` to populate the `PayloadConfig`'s `mrconfigid` field. - Adjusting unit tests to reflect the updated `PayloadConfig` conversion signature and `mrconfigid` handling. Signed-off-by: alex.lyn <alex.lyn@antgroup.com>