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

Fix CA-140252 flag #4839

Merged
merged 1 commit into from
Nov 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions ocaml/xenopsd/xc/domain.ml
Original file line number Diff line number Diff line change
Expand Up @@ -786,11 +786,12 @@ let get_action_request ~xs domid =
try Some (xs.Xs.read path) with Xs_protocol.Enoent _ -> None

let maybe_ca_140252_workaround ~xc ~vcpus domid =
if !Xenopsd.ca_140252_workaround then
if !Xenopsd.ca_140252_workaround then (
debug "Allocating %d I/O req evtchns in advance for device model" vcpus ;
for _ = 1 to vcpus do
ignore_int (Xenctrl.evtchn_alloc_unbound xc domid 0)
done
for _ = 1 to vcpus do
ignore_int (Xenctrl.evtchn_alloc_unbound xc domid 0)
done
)

(** create store and console channels *)
let create_channels ~xc uuid domid =
Expand Down