[Bug 253175] virtio_random(4): Hangs after shutdown, reboot, halt commands on Vultr / Hetzner / ARP Networks (Qemu)

2022-03-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253175

Kubilay Kocak  changed:

   What|Removed |Added

   Assignee|b...@freebsd.org|virtualization@FreeBSD.org
   Keywords||needs-patch, performance,
   ||regression
 Status|New |Open
  Flags||maintainer-feedback?(cem@fr
   ||eebsd.org),
   ||maintainer-feedback?(jrtc27
   ||@freebsd.org),
   ||maintainer-feedback?(bryanv
   ||@FreeBSD.org),
   ||mfc-stable13?,
   ||mfc-stable12-
Version|Unspecified |13.0-RELEASE
 CC||c...@freebsd.org
Summary|virtio_random on Vultr/qemu |virtio_random(4): Hangs
   |- FreeBSD 13.0 hangs after  |after shutdown, reboot,
   |shutdown / reboot / halt|halt commands on Vultr /
   |commands|Hetzner / ARP Networks
   ||(Qemu)

--- Comment #27 from Kubilay Kocak  ---
Thanks for that Eugene.

Your info is:

vtrnd0 pnpinfo vendor=0x1af4 device=0x1005 subvendor=0x1af4
device_type=0x0004
virtio_pci3 pnpinfo vendor=0x1af4 device=0x1005 subvendor=0x1af4
subdevice=0x0004 class=0x00ff00

The device information in bug 254513 is

vtrnd0 pnpinfo vendor=0x1af4 device=0x1044 subvendor=0x1af4
device_type=0x0004
 virtio_pci4 pnpinfo vendor=0x1af4 device=0x1044 subvendor=0x1af4
subdevice=0x1100 class=0x00ff00

Difference is a Device  ID 1005 vs 1044 (source of delta unknown as yet)

^Triage: Closing bug 254513 (later created issue) as duplicate. Loop in
committers mentioned in comment 22. 13.1 is on its way.

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 254513] virtio_random: random_harvestq spinning on a CPU with Q35 virtio random device

2022-03-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254513

Kubilay Kocak  changed:

   What|Removed |Added

   Assignee|virtualization@FreeBSD.org  |ko...@freebsd.org
 Resolution|--- |DUPLICATE
 Status|New |Closed

--- Comment #38 from Kubilay Kocak  ---
^Triage: Closing duplicate of earlier bug 253175 (see bug 253175 comment 27).

*** This bug has been marked as a duplicate of bug 253175 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.


[Bug 253175] virtio_random(4): Hangs after shutdown, reboot, halt commands on Vultr / Hetzner / ARP Networks (Qemu)

2022-03-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253175

Kubilay Kocak  changed:

   What|Removed |Added

 CC||m...@igalic.co

--- Comment #28 from Kubilay Kocak  ---
*** Bug 254513 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 253175] virtio_random(4): Hangs after shutdown, reboot, halt commands on Vultr / Hetzner / ARP Networks (Qemu)

2022-03-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253175

Conrad Meyer  changed:

   What|Removed |Added

  Flags|maintainer-feedback?(cem@fr |
   |eebsd.org)  |
 CC|c...@freebsd.org |

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 253175] virtio_random(4): Hangs after shutdown, reboot, halt commands on Vultr / Hetzner / ARP Networks (Qemu)

2022-03-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253175

--- Comment #29 from Eugene Grosbein  ---
Created attachment 232378
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=232378&action=edit
hackish-aplha-preliminary-proof-of-concept patch

This patch for virtio_random solves the problem for my Vultr.com 13.1/amd64
guest.

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 253175] virtio_random(4): Hangs after shutdown, reboot, halt commands on Vultr / Hetzner / ARP Networks (Qemu)

2022-03-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253175

Kyle Evans  changed:

   What|Removed |Added

 CC||kev...@freebsd.org

--- Comment #30 from Kyle Evans  ---
When I looked at this on Hetzner, it seemed that we were completely blocked in
virtqueue_poll(), as if the host had just completely dropped it on the floor.

-- 
You are receiving this mail because:
You are the assignee for the bug.


[Bug 253175] virtio_random(4): Hangs after shutdown, reboot, halt commands on Vultr / Hetzner / ARP Networks (Qemu)

2022-03-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253175

--- Comment #31 from Eugene Grosbein  ---
Created attachment 232380
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=232380&action=edit
patch-virtio_random.c

Less hackish version of patch doing same thing: it deactivates virtio_random at
shutdown time preventing CPU spinning and hang.

-- 
You are receiving this mail because:
You are the assignee for the bug.