cloud-hypervisor/devices/src
Philipp Schuster 93b599e59e misc: devices: streamline #[source] and Error
This streamlines the code base to follow best practices for
error handling in Rust: Each error struct implements
std::error::Error (most due via thiserror::Error derive macro)
and sets its source accordingly.

This allows future work that nicely prints the error chains,
for example.

So far, the convention is that each error prints its
sub error as part of its Display::fmt() impl.

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP philipp.schuster@sap.com
2025-05-21 09:09:30 +00:00
..
legacy misc: devices: streamline #[source] and Error 2025-05-21 09:09:30 +00:00
acpi.rs misc: Adapt consistent import style formatting 2024-09-29 13:08:12 +01:00
aia.rs devices: Introduce RISC-V AIA interrupt device 2024-12-06 16:24:41 +00:00
debug_console.rs misc: Adapt consistent import style formatting 2024-09-29 13:08:12 +01:00
gic.rs hypervisor: Avoid leaking KVM GIC state into common GIC state 2025-03-30 06:18:58 +00:00
interrupt_controller.rs misc: devices: streamline #[source] and Error 2025-05-21 09:09:30 +00:00
ioapic.rs devices: silence IRQ debug!() spam 2025-05-16 08:07:32 +00:00
lib.rs devices: Disable tpm module for riscv64 2024-12-06 16:24:41 +00:00
pvmemcontrol.rs pci: Reprogram device BAR when its MSE bit is set 2025-05-15 17:35:44 +00:00
pvpanic.rs pci: Reprogram device BAR when its MSE bit is set 2025-05-15 17:35:44 +00:00
tpm.rs misc: Adapt consistent import style formatting 2024-09-29 13:08:12 +01:00