Skip to content

Question about VMM process lifecycle #373

Open
@nohajc

Description

@nohajc

It is documented that calling krun_start_enter effectively transfers control over the process to libkrun which calls exit when the virtual machine is stopped (and therefore krun_start_enter does not return).

My question is twofold.

  1. Why do you call _exit instead of the more "friendly" exit which among other things runs callbacks registered by atexit?
  2. Would it be possible to modify libkrun so that it can be used in a context where process termination cannot be controlled by the hypervisor? I'm thinking macOS (user-space) system extension for example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions