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 <ziye.yang@intel.com>
This commit is contained in:
Ziye Yang 2021-11-24 05:10:00 +00:00 committed by Sebastien Boeuf
parent 9075809494
commit 896a651b5c

View File

@ -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")