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

This commit is contained in:
Alex Zenla
2024-05-05 13:39:53 -07:00
committed by GitHub
parent 3187830ff5
commit 51dff0361d
5 changed files with 74 additions and 40 deletions

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;