You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
virtio device reset without multiqueue kills vnic instead #1045
@leftwo spotted this on a minibar. I'd tested #1033against Debian 13 because it's what I happened to reproduce the issue on, but that "fix" also made Ubuntu unable to drive the NIC at all (with or without a reboot).
It's worth checking this against c-bhyve to see whether it fails in a similar way.
if you have a moment from other fires, I'd be curious to check, but with #1047 I think that's a pretty clear "Propolis was wrong, don't do that"
It's hard to imagine how the reset logic would prevent the driver from, er, driving the NIC initially, though.
this is where I'm a bit frustrated, because my 24.04 goes exactly like this. and all my test images are either:
multiqueue aware, set up 11 queue pairs, reboot resets the whole device which gets all queues, shrinks PAIRS/USEPAIRS back down to 1 until multiqueue is negotiated again after reboot, everything's great
not multiqueue aware, set up 1 queue pair, reboot resets the whole device which EINVAL's for the last 10 queue pairs but we're resetting the device so none of that actually matters
what happens in Alan's image, it looks like, is something before MQ negotiation pokes the reset bit in the virtio status register. it occurs to me it'd be nice to have DTrace probes around virtio device lifecycle like this, because I'm speculating from ioctls/returns and the fact that the guest does this early in boot. regardless we (incorrectly) try resetting all the rings, get everything after the first pair to VRingState::Fatal, and later multiqueue negotiation fails. it's not as bad as "all Linux X.Y is busted", probably, but.. jeez.
I've figured out what was different and more specifically what's happening: #1047 (comment)
without a boot order OVMF does Something with the nic, then Linux tries to reset it when it starts operating the nic. that reset is what tickled the issue, and doesn't depend on Ubuntu anything. in Octoberish I'd added boot_order for all my test image configs for unrelated reasons.
without a boot order OVMF does Something with the nic, then Linux tries to reset it when it starts operating the nic. that reset is what tickled the issue, and doesn't depend on Ubuntu anything. in Octoberish I'd added boot_order for all my test image configs for unrelated reasons.
this kinda makes me wonder whether it is worthwhile to go through our OVMF fork and just remove all the PXE stuff, since we don't expect anyone to attempt to PXE boot guests on Oxide (I think?)...
fwiw i'd think about it differently on a few axes: the docs there are around using https://ipxe.org/ specifically, which given #1019 i think uses its own driver to operate devices (rather than calling into UEFI services which might work enough for PXE here actually..?? i wonder if this is because iPXE predates UEFI or what..)
i also do not think anyone is relying on whatever OVMF does to touch the vnic, but also i really prefer having it here than not, especially without really good tests (PHD and otherwise) around vnic functionality. i'm pretty sure that if we didn't find this when we did, a customer would have found it at a really confusing and unfortunate time, 'cause the series of operations here are entirely legal guest actions that we tripped over ourselves in handling.
Activity
dancrossnyc commentedon Feb 7, 2026
It's worth checking this against c-bhyve to see whether it fails in a similar way.
It's hard to imagine how the reset logic would prevent the driver from, er, driving the NIC initially, though.
[-]ubuntu 22.04 no longer likes the virtio nic[/-][+]ubuntu 24.04 no longer likes the virtio nic[/+]iximeow commentedon Feb 7, 2026
if you have a moment from other fires, I'd be curious to check, but with #1047 I think that's a pretty clear "Propolis was wrong, don't do that"
this is where I'm a bit frustrated, because my 24.04 goes exactly like this. and all my test images are either:
what happens in Alan's image, it looks like, is something before MQ negotiation pokes the reset bit in the virtio status register. it occurs to me it'd be nice to have DTrace probes around virtio device lifecycle like this, because I'm speculating from ioctls/returns and the fact that the guest does this early in boot. regardless we (incorrectly) try resetting all the rings, get everything after the first pair to
VRingState::Fatal, and later multiqueue negotiation fails. it's not as bad as "all Linux X.Y is busted", probably, but.. jeez.iximeow commentedon Feb 7, 2026
I've figured out what was different and more specifically what's happening: #1047 (comment)
without a boot order OVMF does Something with the nic, then Linux tries to reset it when it starts operating the nic. that reset is what tickled the issue, and doesn't depend on Ubuntu anything. in Octoberish I'd added
boot_orderfor all my test image configs for unrelated reasons.[-]ubuntu 24.04 no longer likes the virtio nic[/-][+]virtio device reset without multiqueue kills vnic instead[/+]Bump propolis
Bump Propolis (#9828)
hawkw commentedon Feb 8, 2026
this kinda makes me wonder whether it is worthwhile to go through our OVMF fork and just remove all the PXE stuff, since we don't expect anyone to attempt to PXE boot guests on Oxide (I think?)...UPDATE: wait no i am wrong: https://docs.oxide.computer/guides/use-cases/pxe-boot
iximeow commentedon Feb 25, 2026
fwiw i'd think about it differently on a few axes: the docs there are around using https://ipxe.org/ specifically, which given #1019 i think uses its own driver to operate devices (rather than calling into UEFI services which might work enough for PXE here actually..?? i wonder if this is because iPXE predates UEFI or what..)
i also do not think anyone is relying on whatever OVMF does to touch the vnic, but also i really prefer having it here than not, especially without really good tests (PHD and otherwise) around vnic functionality. i'm pretty sure that if we didn't find this when we did, a customer would have found it at a really confusing and unfortunate time, 'cause the series of operations here are entirely legal guest actions that we tripped over ourselves in handling.