fix(xenclient): use a single transaction for device setup (#130)

This commit is contained in:
alex authored and GitHub committed 2024-05-05 20:39:53 +00:00
1 parent 3187830ff5
commit 51dff0361d
5 files changed
+74 -40

No files matched your search

+7 -1
View File
@@ -791,7 +791,13 @@ impl XenCall {
index,
pirq,
);
let mut physdev = PhysdevMapPirq::default();
let mut physdev = PhysdevMapPirq {
domid: domid as u16,
typ: 0x1,
index: index as c_int,
pirq: pirq.map(|x| x as c_int).unwrap_or(index as c_int),
..Default::default()
};
physdev.domid = domid as u16;
physdev.typ = 0x1;
physdev.index = index as c_int;