Skip to content

Commit 9537189

Browse files
Serban Iorgaacatangiu
authored andcommitted
fix test_attach_legacy_devices
A KVM patch added a new validation when using the KVM_IRQFD ioctl. This breaks our test_attach_legacy_devices unit test. We can fix it by calling setup_interrupt_controller() before attaching the legacy devices. Signed-off-by: Serban Iorga <[email protected]>
1 parent effaab0 commit 9537189

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vmm/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3178,6 +3178,8 @@ mod tests {
31783178
#[test]
31793179
fn test_attach_legacy_devices() {
31803180
let mut vmm = create_vmm_object(InstanceState::Uninitialized);
3181+
vmm.setup_interrupt_controller()
3182+
.expect("Failed to setup interrupt controller");
31813183

31823184
assert!(vmm.attach_legacy_devices().is_ok());
31833185
assert!(vmm.pio_device_manager.io_bus.get_device(0x3f8).is_some());

0 commit comments

Comments
 (0)