diff --git a/src/runtime/Makefile b/src/runtime/Makefile index 836f979dc6..ad5aa14651 100644 --- a/src/runtime/Makefile +++ b/src/runtime/Makefile @@ -132,7 +132,9 @@ ROOTMEASURECONFIGTDX ?= "" AGENT_AA_KBC_PARAMS ?= "" AGENT_AA_KBC_PARAMS_TDX ?= "" AGENT_AA_KBC_PARAMS_SEV ?= "" -TDXKERNELPARAMS := tdx_disable_filter $(ROOTMEASURECONFIGTDX) agent.enable_signature_verification=false $(AGENT_AA_KBC_PARAMS_TDX) +TDXKERNELPARAMS := tdx_disable_filter agent.enable_signature_verification=false $(AGENT_AA_KBC_PARAMS_TDX) +TDXKERNELPARAMS_QEMU += $(TDXKERNELPARAMS) $(ROOTMEASURECONFIGTDX) +TDXKERNELPARAMS_CLH += $(TDXKERNELPARAMS) $(ROOTMEASURECONFIG) SEVKERNELPARAMS := $(AGENTCONFIGFILEKERNELPARAM) agent.enable_signature_verification=false $(AGENT_AA_KBC_PARAMS_SEV) KERNELPARAMS += $(ROOTMEASURECONFIG) agent.enable_signature_verification=false $(AGENT_AA_KBC_PARAMS) @@ -519,6 +521,8 @@ USER_VARS += TDXCPUFEATURES USER_VARS += DEFMACHINETYPE_CLH USER_VARS += KERNELPARAMS USER_VARS += TDXKERNELPARAMS +USER_VARS += TDXKERNELPARAMS_QEMU +USER_VARS += TDXKERNELPARAMS_CLH USER_VARS += SEVKERNELPARAMS USER_VARS += LIBEXECDIR USER_VARS += LOCALSTATEDIR diff --git a/src/runtime/config/configuration-clh-tdx.toml.in b/src/runtime/config/configuration-clh-tdx.toml.in index 798098afb1..a6a2ea713b 100644 --- a/src/runtime/config/configuration-clh-tdx.toml.in +++ b/src/runtime/config/configuration-clh-tdx.toml.in @@ -70,7 +70,7 @@ valid_hypervisor_paths = @CLHVALIDHYPERVISORPATHS@ # may stop the virtual machine from booting. # To see the list of default parameters, enable hypervisor debug, create a # container and look for 'default-kernel-parameters' log entries. -kernel_params = "@TDXKERNELPARAMS@" +kernel_params = "@TDXKERNELPARAMS_CLH@" # Default number of vCPUs per SB/VM: # unspecified or 0 --> will be set to @DEFVCPUS@ diff --git a/src/runtime/config/configuration-qemu-tdx.toml.in b/src/runtime/config/configuration-qemu-tdx.toml.in index 79907f16be..f21f611b8f 100644 --- a/src/runtime/config/configuration-qemu-tdx.toml.in +++ b/src/runtime/config/configuration-qemu-tdx.toml.in @@ -59,7 +59,7 @@ valid_hypervisor_paths = @QEMUTDXVALIDHYPERVISORPATHS@ # may stop the virtual machine from booting. # To see the list of default parameters, enable hypervisor debug, create a # container and look for 'default-kernel-parameters' log entries. -kernel_params = "@TDXKERNELPARAMS@" +kernel_params = "@TDXKERNELPARAMS_QEMU@" # Path to the firmware. # If you want that qemu uses the default firmware leave this option empty