virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* virtio_pci: Question about virtio_pci kernel module refcnt
@ 2025-10-22 11:21 Zhang Tianci
  2025-10-22 11:31 ` Michael S. Tsirkin
  0 siblings, 1 reply; 6+ messages in thread
From: Zhang Tianci @ 2025-10-22 11:21 UTC (permalink / raw)
  To: mst, jasowang, xuanzhuo, eperezma, virtualization
  Cc: xieyongji, 天赐张

Hi,
I noticed that the reference count of the virtio_pci kernel module
in the VM is always 0, even though there are at least two
virtio block devices and one virtiofs device in the VM.

Using rmmod virtio_pci can unload the virtio_pci module,
but this renders the virtio block devices unusable.

I wonder if this result is expected? Why don't the virtio block devices
and virtiofs device hold a reference count to the virtio_pci kernel module?

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-10-24  4:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-22 11:21 virtio_pci: Question about virtio_pci kernel module refcnt Zhang Tianci
2025-10-22 11:31 ` Michael S. Tsirkin
2025-10-23  2:34   ` [External] " Zhang Tianci
2025-10-24  1:53     ` Jason Wang
2025-10-24  2:34       ` Zhang Tianci
2025-10-24  4:00         ` Jason Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).