Skip to content

virtio device reset without multiqueue kills vnic instead #1045

Closed
oxidecomputer/omicron
#9828

Description

@iximeow

@leftwo spotted this on a minibar. I'd tested #1033 against 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).

(slightly more subtle than this, see below)

Activity

  1. added
    bug
    networking
    on Feb 7, 2026
  2. added this to the 18 milestone on Feb 7, 2026
  3. self-assigned this
    on Feb 7, 2026
  4. dancrossnyc commented on Feb 7, 2026

    @dancrossnyc
    Contributor

    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.

  5. changed the title [-]ubuntu 22.04 no longer likes the virtio nic[/-] [+]ubuntu 24.04 no longer likes the virtio nic[/+] on Feb 7, 2026
  6. linked a pull request that will close this issueviona: only reset in-range queues #1047on Feb 7, 2026
  7. iximeow commented on Feb 7, 2026

    @iximeow
    MemberAuthor

    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.

  8. iximeow commented on Feb 7, 2026

    @iximeow
    MemberAuthor

    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.

  9. changed the title [-]ubuntu 24.04 no longer likes the virtio nic[/-] [+]virtio device reset without multiqueue kills vnic instead[/+] on Feb 7, 2026
  10. added 2 commits that reference this issue on Feb 7, 2026
  11. hawkw commented on Feb 8, 2026

    @hawkw
    Member

    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?)...

    UPDATE: wait no i am wrong: https://docs.oxide.computer/guides/use-cases/pxe-boot

  12. iximeow commented on Feb 25, 2026

    @iximeow
    MemberAuthor

    and just remove all the PXE stuff,

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugnetworking

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions