vmm: fix tdx check
The field has been moved in 3793ffe888.
Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
cd24f470f4
commit
d274fe9cb8
1 changed files with 6 additions and 4 deletions
|
|
@ -2932,10 +2932,12 @@ impl GuestDebuggable for Vm {
|
|||
|
||||
#[cfg(feature = "tdx")]
|
||||
{
|
||||
if self.config.lock().unwrap().tdx.is_some() {
|
||||
return Err(GuestDebuggableError::Coredump(anyhow!(
|
||||
"Coredump not possible with TDX VM"
|
||||
)));
|
||||
if let Some(ref platform) = self.config.lock().unwrap().platform {
|
||||
if platform.tdx {
|
||||
return Err(GuestDebuggableError::Coredump(anyhow!(
|
||||
"Coredump not possible with TDX VM"
|
||||
)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue