mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: simplify seccomp code
Only Thread::Vmm and Thread::Vcpu need to know the hypervisor type. Make the type optional, and then simplify the users. Assisted-by: Pi-agent:Claude-Opus-4.7 Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
@@ -1172,7 +1172,7 @@ impl CpuManager {
|
||||
let vcpu_seccomp_filter = get_seccomp_filter(
|
||||
&self.seccomp_action,
|
||||
Thread::Vcpu,
|
||||
self.hypervisor.hypervisor_type(),
|
||||
Some(self.hypervisor.hypervisor_type()),
|
||||
)
|
||||
.map_err(Error::CreateSeccompFilter)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user