Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for bus lock detection (KVM_CAP_X86_BUS_LOCK_EXIT). #245

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Dec 15, 2023

  1. Introduce KvmRunWrapper::as_ref()

    Introduce a new method to get an immutable reference to the kvm_run
    struct. Replace uses of `as_mut_ref()` with `as_ref()` where possible.
    
    Signed-off-by: Carlos López <[email protected]>
    00xc committed Dec 15, 2023
    Configuration menu
    Copy the full SHA
    a1d0ef4 View commit details
    Browse the repository at this point in the history
  2. Add support for bus lock detection

    Add support for bus lock detection. The feature can be enabled via
    KVM_CAP_X86_BUS_LOCK_EXIT, which enables a new exit
    (KVM_EXIT_X86_BUS_LOCK) and a new flag (KVM_RUN_X86_BUS_LOCK) in the
    kvm_run->flags field.
    
    Add two tests as well to verify that enabling the feature works.
    
    Signed-off-by: Carlos López <[email protected]>
    00xc committed Dec 15, 2023
    Configuration menu
    Copy the full SHA
    d28565a View commit details
    Browse the repository at this point in the history