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:
Jinank Jain 2024-03-21 09:29:25 +05:30 committed by Rob Bradford
parent 97a1a70275
commit dad1ab1227

View File

@ -1361,6 +1361,7 @@ impl cpu::Vcpu for MshvVcpu {
.set_sev_control_register(sev_control_reg)
.map_err(|e| cpu::HypervisorCpuError::SetSevControlRegister(e.into()))
}
#[cfg(target_arch = "x86_64")]
///
/// Trigger NMI interrupt
///