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:
Jinank Jain 2024-09-06 21:24:25 +05:30 committed by Rob Bradford
parent 68468b8519
commit 60aed1bd81

View File

@ -226,6 +226,7 @@ fn create_vmm_ioctl_seccomp_rule_common_mshv() -> Result<Vec<SeccompRule>, Backe
MSHV_ISSUE_PSP_GUEST_REQUEST() MSHV_ISSUE_PSP_GUEST_REQUEST()
)?], )?],
and![Cond::new(1, ArgLen::Dword, Eq, MSHV_ROOT_HVCALL())?], 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() MSHV_ISSUE_PSP_GUEST_REQUEST()
)?], )?],
and![Cond::new(1, ArgLen::Dword, Eq, MSHV_ROOT_HVCALL())?], and![Cond::new(1, ArgLen::Dword, Eq, MSHV_ROOT_HVCALL())?],
and![Cond::new(1, ArgLen::Dword, Eq, MSHV_ASSERT_INTERRUPT())?],
]) ])
} }