History log of /netbsd/sys/dev/pci/viornd.c (Results 1 – 21 of 21)
Revision Date Author Comments
# bccfb1d6 25-Mar-2023 mlelstv <mlelstv@NetBSD.org>

Mark as MPSAFE.


# d3bf2333 23-Mar-2023 yamaguchi <yamaguchi@NetBSD.org>

Added functions to set interrupt handler and index into virtqueue


# cd64efe2 23-Mar-2023 yamaguchi <yamaguchi@NetBSD.org>

Set virtqueues in virtio_child_attach_finish

The number of virtqueue maybe change in a part of VirtIO devices
(e.g. vioif(4)). And it is fixed after negotiation of features.
So the configuration is

Set virtqueues in virtio_child_attach_finish

The number of virtqueue maybe change in a part of VirtIO devices
(e.g. vioif(4)). And it is fixed after negotiation of features.
So the configuration is moved into the function.

show more ...


# a0b6104c 14-Apr-2022 riastradh <riastradh@NetBSD.org>

Revert "viornd(4): Process host entropy in softint context."

Apparently this has the effect of sometimes making the network hang
on Google Compute Engine as used by syzbot, which has held up all the

Revert "viornd(4): Process host entropy in softint context."

Apparently this has the effect of sometimes making the network hang
on Google Compute Engine as used by syzbot, which has held up all the
syzkaller testing for weeks now. Let's revert this for now, and
separately try to figure out what's wrong with it.

show more ...


# 183940b1 23-Mar-2022 riastradh <riastradh@NetBSD.org>

viornd(4): Process host entropy in softint context.

Samples added to the entropy pool in hard interrupt context are only
buffered, never processed directly, and if they fill the buffer, the
sample i

viornd(4): Process host entropy in softint context.

Samples added to the entropy pool in hard interrupt context are only
buffered, never processed directly, and if they fill the buffer, the
sample is dropped -- this serves to encourage taking timing samples
in hard interrupt context because it's cheap, and we have no idea how
many samples we really need for full entropy so it's safer to err on
the side of `as many as we can get'.

But for viornd(4), we assume the host has full entropy so we only
need a single 32-byte sample, and we want to avoid dropping it so we
get full entropy ASAP. Entering the sample in a soft interrupt
rather than hard interrupt achieves this.

show more ...


# a071bdcf 19-Mar-2022 riastradh <riastradh@NetBSD.org>

viornd(4): Revert IPL change for lock.

This lock is taken in hard interrupt context, so it needs to remain
at IPL_VM.


# 47575044 19-Mar-2022 riastradh <riastradh@NetBSD.org>

rnd(9): Adjust IPL of locks used by rndsource callbacks.

These no longer ever run from hard interrupt context or with a spin
lock held, so there is no longer any need to have them at IPL_VM to
block

rnd(9): Adjust IPL of locks used by rndsource callbacks.

These no longer ever run from hard interrupt context or with a spin
lock held, so there is no longer any need to have them at IPL_VM to
block hard interrupts. Instead, lower them to IPL_SOFTSERIAL.

show more ...


# 3dd9cebd 20-Jan-2021 reinoud <reinoud@NetBSD.org>

Add VirtIO PCI v1.0 attachments and fix the drivers affected.

The vioif, ld, scsi, viornd and viomb devices were adjusted when needed and
tested both in legacy 0.9 and v1.0 attachments trough PCI on

Add VirtIO PCI v1.0 attachments and fix the drivers affected.

The vioif, ld, scsi, viornd and viomb devices were adjusted when needed and
tested both in legacy 0.9 and v1.0 attachments trough PCI on amd64, sparc64,
aarch64 and aarch64-eb. ACPI/FDT attachments also tested on
aarch64/aarch64-eb.

Known issues

* viomb on aarch64 works only with ACPI/FDT attachment but not with PCI
attachment. PCI and ACPI/FDT attachment works on aarch64-eb.

* virtio on sparc64 attaches but is it not functioning though not a
regression.

show more ...


# 6c4e96ff 30-Apr-2020 riastradh <riastradh@NetBSD.org>

rnd_attach_source calls the callback itself now.

No need for every driver to explicitly call it to prime the pool.

Eliminate now-unused <sys/rndpool.h>.


# 8962e85d 10-Jun-2018 jakllsch <jakllsch@NetBSD.org>

remove irrelevant pci(9) #includes from virtio child drivers


# 53aa08f0 25-Mar-2017 jdolecek <jdolecek@NetBSD.org>

reorganize the attachment process for virtio child devices, so that
more common code is shared among the drivers, and it's possible for
the drivers to be correctly dynamically loaded; forbid direct a

reorganize the attachment process for virtio child devices, so that
more common code is shared among the drivers, and it's possible for
the drivers to be correctly dynamically loaded; forbid direct access
to struct virtio_softc from the child driver code

show more ...


# e5c95b63 30-Nov-2016 christos <christos@NetBSD.org>

Don't call virtio_enqueue_abort when virtio_enqueue_reserve fails.
Pointed out by uwe@


# db46a773 27-Oct-2015 christos <christos@NetBSD.org>

Print the negotiated feature bits


# ca7f33f4 05-May-2015 ozaki-r <ozaki-r@NetBSD.org>

Use NULL for initialization of sc_config_change


# 7c77bcc9 13-Apr-2015 riastradh <riastradh@NetBSD.org>

Convert sys/dev to use <sys/rndsource.h>.


# 8a617890 08-Apr-2015 riastradh <riastradh@NetBSD.org>

Don't forget to bus_dmamap_unload.


# f729a554 06-Nov-2014 pooka <pooka@NetBSD.org>

put the "asked for" print also behind VIORNG_DEBUG


# 24c4ab86 06-Nov-2014 pooka <pooka@NetBSD.org>

Abort only actually initialized slots.


# b68a7bdf 06-Nov-2014 pooka <pooka@NetBSD.org>

disable debug print by default


# 71010b95 06-Nov-2014 pooka <pooka@NetBSD.org>

Print attachment \n's so that we don't get junky lines
(this driver now matches ld)


# 4ae5d150 26-Oct-2014 tls <tls@NetBSD.org>

Add viornd(4), a driver for the VirtIO entropy source available on
QEMU, KVM, and Google Compute Engine. From OpenBSD.