rust-vmm / kvm-ioctls

Apache License 2.0
255 stars 103 forks source link

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

Open 00xc opened 7 months ago

00xc commented 7 months ago

Summary of the PR

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

Requirements

JonathanWoollett-Light commented 6 months ago

@00xc Can you please resolve the merge conflicts, after this LGTM.

00xc commented 6 months ago

Rebased on main and fixed conflicts.