mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: migration seccomp: add for migration worker (coordinator thread)
On-behalf-of: SAP philipp.schuster@sap.com Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
committed by
Bo Chen
parent
b5c028c286
commit
fd88e23ecb
@@ -3152,6 +3152,13 @@ impl RequestHandler for Vmm {
|
||||
// - this simplifies the code (especially error propagation)
|
||||
// - the overhead is negligible
|
||||
let seccomp_filters = {
|
||||
let worker = get_seccomp_filter(&self.seccomp_action, Thread::MigrationWorker, None)
|
||||
.map_err(|e| {
|
||||
MigratableError::MigrateSend(anyhow!(
|
||||
"Error creating migration seccomp filter: {e}"
|
||||
))
|
||||
})?;
|
||||
|
||||
let postcopy_server =
|
||||
get_seccomp_filter(&self.seccomp_action, Thread::MigrateSendPostcopy, None)
|
||||
.map_err(|e| {
|
||||
@@ -3160,7 +3167,10 @@ impl RequestHandler for Vmm {
|
||||
))
|
||||
})?;
|
||||
|
||||
MigrationSeccompFilters { postcopy_server }
|
||||
MigrationSeccompFilters {
|
||||
worker,
|
||||
postcopy_server,
|
||||
}
|
||||
};
|
||||
|
||||
// Take VM ownership. This also means that API events can no longer
|
||||
|
||||
Reference in New Issue
Block a user