Commit b14cce85 authored by Stefan Lankes's avatar Stefan Lankes
Browse files

prevent VM exits due to HLT/MWAIT instructions

parent a8c035ee
Pipeline #392183 passed with stages
in 14 minutes and 41 seconds
......@@ -238,7 +238,9 @@ impl Uhyve {
flags: 0,
..Default::default()
};
cap.args[0] = KVM_X86_DISABLE_EXITS_PAUSE.into();
cap.args[0] =
(KVM_X86_DISABLE_EXITS_PAUSE | KVM_X86_DISABLE_EXITS_MWAIT | KVM_X86_DISABLE_EXITS_HLT)
.into();
vm.enable_cap(&cap)
.expect("Unable to disable exists due pause instructions");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment