Change seccomp_filters to be passed by value, rather than by reference. #4647
Labels
Priority: Low
Indicates that an issue or pull request should be resolved behind issues or pull requests labelled `
Status: Parked
Indicates that an issues or pull request will be revisited later
In PR #4638 (vCPU hotplugging)
seccomp_filters
are added as a field of the VMM. This was required in order to apply correct the same seccomp filters to the new vCPU threads as the existing threads. Currently, they are passed around as a reference until thecreate_vmm_and_vcpus
, which then clones them, and the VMM takes ownership of the clone. It should be possible to slightly refactor the code to allow the VMM to take ownership of the originalseccomp_filters
, then whenseccomp_filters
is required afterwards, they can be accessed via theVmm
instance, thus keeping the same functionality and removing the need to clone.The text was updated successfully, but these errors were encountered: