From 896a651b5c530cb8514e81bb357fefe8569508b2 Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Wed, 24 Nov 2021 05:10:00 +0000 Subject: [PATCH] vmm: Update some comments and error message info in config.rs Update some comments and error message info related with TDX. Signed-off-by: Ziye Yang --- vmm/src/config.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vmm/src/config.rs b/vmm/src/config.rs index 2e9bf87a3..8f7e756cd 100644 --- a/vmm/src/config.rs +++ b/vmm/src/config.rs @@ -142,10 +142,10 @@ pub enum ValidationError { HugePageSizeWithoutHugePages, /// Huge page size is not power of 2 InvalidHugePageSize(u64), - /// CPU Hotplug not permitted with TDX + /// CPU Hotplug is not permitted with TDX #[cfg(feature = "tdx")] TdxNoCpuHotplug, - /// Specifying kernel not permitted with TDX + /// Specifying kernel is not permitted with TDX #[cfg(feature = "tdx")] TdxKernelSpecified, /// Insuffient vCPUs for queues @@ -196,11 +196,11 @@ impl fmt::Display for ValidationError { } #[cfg(feature = "tdx")] TdxNoCpuHotplug => { - write!(f, "CPU hotplug not possible with TDX") + write!(f, "CPU hotplug is not permitted with TDX") } #[cfg(feature = "tdx")] TdxKernelSpecified => { - write!(f, "Direct kernel boot not possible with TDX") + write!(f, "Direct kernel boot is not permitted with TDX") } TooManyQueues => { write!(f, "Number of vCPUs is insufficient for number of queues")