Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/dev



Module Name:    src
Committed By:   riastradh
Date:           Tue Jan 14 16:46:38 UTC 2025

Modified Files:
        src/sys/dev/acpi: virtio_acpi.c
        src/sys/dev/fdt: virtio_mmio_fdt.c

Log Message:
virtio@acpi, virtio@fdt: Nix DVF_DETACH_SHUTDOWN.

There is no reason to force _all_ devices attached at the virtio bus
to detach at shutdown.  This only makes sense for devices that
require detach in order to force buffered writes to persistant
storage so we don't lose them (or, in principle, require detach in
order to release hardware resources).

And the only virtio devices I found that require detach-on-shutdown,
namely scsi@virtio, already set DVF_DETACH_SHUTDOWN, so there's no
need for the bus to do it.  (The only other obvious case, ld@virtio,
uses a pmf shutdown handler instead of detach, so it doesn't need
DVF_DETACH_SHUTDOWN.)


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/acpi/virtio_acpi.c
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/fdt/virtio_mmio_fdt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index