Skip to content

Commit de55d40

Browse files
lisongqianphip1611
authored andcommitted
seccomp: add arch_prctl syscall for amx
When enabling amx feature, we should call arch_prctl to request permission to use tile data for guest. The permission should be requested before the first vcpu is created, so we need to call arch_prctl in vmm thread. This patch adds the arch_prctl syscall for vmm_thread_rules. Fixes: cloud-hypervisor#7516 Signed-off-by: Songqian Li <[email protected]>
1 parent 6d651fd commit de55d40

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vmm/src/seccomp_filters.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,8 @@ fn vmm_thread_rules(
550550
(libc::SYS_accept4, vec![]),
551551
#[cfg(target_arch = "x86_64")]
552552
(libc::SYS_access, vec![]),
553+
#[cfg(target_arch = "x86_64")]
554+
(libc::SYS_arch_prctl, vec![]),
553555
(libc::SYS_bind, vec![]),
554556
(libc::SYS_brk, vec![]),
555557
(libc::SYS_clock_gettime, vec![]),

0 commit comments

Comments
 (0)