Skip to content

Commit

Permalink
make virtio devices multifunction
Browse files Browse the repository at this point in the history
QEMU 6.0.0 otherwise fails to create with an error like:
`PCI: 5.0 indicates single function, but 5.4 is already populated`
  • Loading branch information
arcnmx committed May 26, 2021
1 parent 514a74b commit 95166c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/route.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ impl UInputCommands for RouteUInputVirtio {
};
let command = qmp::device_add::new(name, Some(self.id.clone()), self.bus.clone(), vec![
("evdev".into(), Any::String(path.display().to_string())),
("multifunction".into(), Any::Bool(true)),
]);
let deadline = Instant::now() + Duration::from_millis(512); // HACK: wait for udev to see device and change permissions
let qemu = qemu.clone();
Expand Down

0 comments on commit 95166c8

Please sign in to comment.