mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-22 04:25:21 +00:00
vmm: fix tdx check
The field has been moved in 3793ffe888db. Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
cd24f470f4
commit
d274fe9cb8
@ -2932,10 +2932,12 @@ impl GuestDebuggable for Vm {
|
|||||||
|
|
||||||
#[cfg(feature = "tdx")]
|
#[cfg(feature = "tdx")]
|
||||||
{
|
{
|
||||||
if self.config.lock().unwrap().tdx.is_some() {
|
if let Some(ref platform) = self.config.lock().unwrap().platform {
|
||||||
return Err(GuestDebuggableError::Coredump(anyhow!(
|
if platform.tdx {
|
||||||
"Coredump not possible with TDX VM"
|
return Err(GuestDebuggableError::Coredump(anyhow!(
|
||||||
)));
|
"Coredump not possible with TDX VM"
|
||||||
|
)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user