pub fn run(&mut self, seccomp_filter: BpfProgramRef) {
        // Load seccomp filters for this vCPU thread.
        // Execution panics if filters cannot be loaded, use --no-seccomp if skipping filters
        // altogether is the desired behaviour.
        if let Err(e) = seccompiler::apply_filter(seccomp_filter) {
            panic!(
                "Failed to set the requested seccomp filters on vCPU {}: Error: {}",
                self.kvm_vcpu.index, e
            );
        }

        // Start running the machine state in the `Paused` state.
        StateMachine::run(self, Self::paused);
    }
/// Main loop of the vCPU thread.
///
/// Runs the vCPU in KVM context in a loop. Handles KVM_EXITs then goes back in.
/// Note that the state of the VCPU and associated VM must be setup first for this to do
/// anything useful.
Main loop of the vCPU thread.
Runs the vCPU in KVM context in a loop. Handles KVM_EXITs then goes back in.
Note that the state of the VCPU and associated VM must be setup first for this to do
anything useful.
Main loop of the vCPU thread . Runs the vCPU in KVM context in a loop . Handles KVM_EXITs then goes back in . Note that the state of the VCPU and associated VM must be setup first for this to do anything useful .
pub fn run(&mut self, seccomp_filter: BpfProgramRef) {
        // Load seccomp filters for this vCPU thread.
        // Execution panics if filters cannot be loaded, use --no-seccomp if skipping filters
        // altogether is the desired behaviour.
        if let Err(e) = seccompiler::apply_filter(seccomp_filter) {
            panic!(
                "Failed to set the requested seccomp filters on vCPU {}: Error: {}",
                self.kvm_vcpu.index, e
            );
        }
        // Start running the machine state in the `Paused` state.
        StateMachine::run(self, Self::paused);
    }
pub fn run ( & mut self , seccomp_filter : BpfProgramRef ) { // Load seccomp filters for this vCPU thread. // Execution panics if filters cannot be loaded, use --no-seccomp if skipping filters // altogether is the desired behaviour. if let Err ( e ) = seccompiler :: apply_filter ( seccomp_filter ) { panic ! ( " " self kvm_vcpu index e ) ; } // Start running the machine state in the `Paused` state. StateMachine :: run ( self , Self :: paused ) ; }
Main loop of the vCPU thread.
Main loop of the vCPU thread .
&mut self
seccomp_filter
BpfProgramRef
&mut self
seccomp_filter
BpfProgramRef