mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 19:32:20 +00:00
In case of TDX, if a kernel and/or a command line are provided by the user, they can't be treated the same way as for the non-TDX case. That is why this patch ensures the function load_kernel() is only invoked for the non-TDX case. For the TDX case, whenever TDVF contains a Payload and/or PayloadParam sections, the file provided through --kernel and the parameters provided through --cmdline are copied at the locations specified by each TDVF section. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>