mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-18 10:35:23 +00:00
vmm: cpu: tdx: Don't use fd suffix for something not an FD
The hypervisor::Vcpu is the abstraction over the fd. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
2caf5e3b2b
commit
16a9882153
@ -989,8 +989,8 @@ impl CpuManager {
|
|||||||
}
|
}
|
||||||
#[cfg(feature = "tdx")]
|
#[cfg(feature = "tdx")]
|
||||||
VmExit::Tdx => {
|
VmExit::Tdx => {
|
||||||
if let Some(vcpu_fd) = Arc::get_mut(&mut vcpu.vcpu) {
|
if let Some(vcpu) = Arc::get_mut(&mut vcpu.vcpu) {
|
||||||
match vcpu_fd.get_tdx_exit_details() {
|
match vcpu.get_tdx_exit_details() {
|
||||||
Ok(details) => match details {
|
Ok(details) => match details {
|
||||||
TdxExitDetails::GetQuote => warn!("TDG_VP_VMCALL_GET_QUOTE not supported"),
|
TdxExitDetails::GetQuote => warn!("TDG_VP_VMCALL_GET_QUOTE not supported"),
|
||||||
TdxExitDetails::SetupEventNotifyInterrupt => {
|
TdxExitDetails::SetupEventNotifyInterrupt => {
|
||||||
@ -999,7 +999,7 @@ impl CpuManager {
|
|||||||
},
|
},
|
||||||
Err(e) => error!("Unexpected TDX VMCALL: {}", e),
|
Err(e) => error!("Unexpected TDX VMCALL: {}", e),
|
||||||
}
|
}
|
||||||
vcpu_fd.set_tdx_status(TdxExitStatus::InvalidOperand);
|
vcpu.set_tdx_status(TdxExitStatus::InvalidOperand);
|
||||||
} else {
|
} else {
|
||||||
// We should never reach this code as
|
// We should never reach this code as
|
||||||
// this means the design from the code
|
// this means the design from the code
|
||||||
|
Loading…
x
Reference in New Issue
Block a user