From 19fd2c711e11e632bb75ef7346fb3a46ff1348d9 Mon Sep 17 00:00:00 2001 From: tamnd <1218621+tamnd@users.noreply.github.com> Date: Wed, 14 Oct 2026 22:12:54 +0700 Subject: [PATCH] vfio-pci: report from realize with the -device location, as QEMU does --- crates/system/src/vfio.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/system/src/vfio.rs b/crates/system/src/vfio.rs index 365b838..9664ced 100644 --- a/crates/system/src/vfio.rs +++ b/crates/system/src/vfio.rs @@ -154,8 +154,12 @@ pub(crate) fn realize_x86( ) -> Result<(), Located> { use std::sync::Arc; + use ruvm_base::report::push_location; use ruvm_hw_pci::regs::PCI_ROM_SLOT; + // qdev_device_add() runs realize with the option's location current, so what realize + // reports itself, such as the dma-buf warning, starts with "-device vfio-pci,...: ". + let _loc = plug.loc.clone().map(push_location); let X86Board::Q35(m, _) = board else { return Err(Located::new( &plug.loc,