mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 05:35:20 +00:00
vmm: Fix seccomp violation while injecting NMI
... in case of guest running on Microsoft Hypervisor. Signed-off-by: Jinank Jain <jinankjain@microsoft.com>
This commit is contained in:
parent
68468b8519
commit
60aed1bd81
@ -226,6 +226,7 @@ fn create_vmm_ioctl_seccomp_rule_common_mshv() -> Result<Vec<SeccompRule>, Backe
|
||||
MSHV_ISSUE_PSP_GUEST_REQUEST()
|
||||
)?],
|
||||
and![Cond::new(1, ArgLen::Dword, Eq, MSHV_ROOT_HVCALL())?],
|
||||
and![Cond::new(1, ArgLen::Dword, Eq, MSHV_ASSERT_INTERRUPT())?],
|
||||
])
|
||||
}
|
||||
|
||||
@ -719,6 +720,7 @@ fn create_vcpu_ioctl_seccomp_rule_mshv() -> Result<Vec<SeccompRule>, BackendErro
|
||||
MSHV_ISSUE_PSP_GUEST_REQUEST()
|
||||
)?],
|
||||
and![Cond::new(1, ArgLen::Dword, Eq, MSHV_ROOT_HVCALL())?],
|
||||
and![Cond::new(1, ArgLen::Dword, Eq, MSHV_ASSERT_INTERRUPT())?],
|
||||
])
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user