mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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: #7516 Signed-off-by: Songqian Li <sionli@tencent.com>
This commit is contained in:
committed by
Rob Bradford
parent
e7cda177cc
commit
41382879d3
@@ -550,6 +550,8 @@ fn vmm_thread_rules(
|
||||
(libc::SYS_accept4, vec![]),
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
(libc::SYS_access, vec![]),
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
(libc::SYS_arch_prctl, vec![]),
|
||||
(libc::SYS_bind, vec![]),
|
||||
(libc::SYS_brk, vec![]),
|
||||
(libc::SYS_clock_gettime, vec![]),
|
||||
|
||||
Reference in New Issue
Block a user