mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-18 10:35:23 +00:00
hypervisor: mshv: Restrict NMI injection to x86
NMI injection is only supported on x86 architecture. Signed-off-by: Jinank Jain <jinankjain@microsoft.com>
This commit is contained in:
parent
97a1a70275
commit
dad1ab1227
@ -1361,6 +1361,7 @@ impl cpu::Vcpu for MshvVcpu {
|
|||||||
.set_sev_control_register(sev_control_reg)
|
.set_sev_control_register(sev_control_reg)
|
||||||
.map_err(|e| cpu::HypervisorCpuError::SetSevControlRegister(e.into()))
|
.map_err(|e| cpu::HypervisorCpuError::SetSevControlRegister(e.into()))
|
||||||
}
|
}
|
||||||
|
#[cfg(target_arch = "x86_64")]
|
||||||
///
|
///
|
||||||
/// Trigger NMI interrupt
|
/// Trigger NMI interrupt
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user