On Tue, Nov 17, 2026 at 10:24:26AM +0000, Peter Maydell wrote: > On Tue, 17 Nov 2026 at 10:10, Daniel P. Berrangé <[email protected]> wrote: > > > > With the latest pull request of mine that is merged, we now have > > the mechanism for enforcement of the QEMU security boundary policy > > with annotations completed across QOM classes for machine types, > > devices and accelerators. > > > > For a bug disclosure affecting a system emulator to be accepted > > as a security flaw the reproducer scenario must now pass without > > warnings when adding the '-compat insecure-input' flag. > > How does the marking work? I'm confused about what's going > on with the pl011 UART (which is on the security boundary > because the arm virt board uses it). Unlike hw/char/serial.c > and some others, there's no ".secure = true" in hw/char/pl011.c. > But it isn't being rejected by > ./build/kvmonly/qemu-system-aarch64 -accel kvm -M virt -display none > -compat insecure-input=reject -serial stdio > > so presumably we have figured out it's secure somehow. What's > the mechanism here?
Currently we've only marked things which are explicitly user creatable. ie they appear in '-machine help', '-accel help' or '-device help' lists. If a machine type is marked as secure, then implicitly devices which are built-in for that machine are also considered secure. Similarly if a device is marked as secure, then implicitly any QOM parents of that device are also secure. In the next release cycle, I want to explicitly mark the built-in devices to make this clear to developers, and also explicitly mark parent types. Then code can explicitly validate the built-in devices & parents, so that we can detect if someone adds something inappropriate in our security boundary without realizing implications. > Speaking of pl011, there's also a rust implementation (which > I am not using in this test). Do we mark both the C and Rust > implementations as 'secure' ? We still have Rust disabled by default. Did we ever declare it to be production ready yet ? If we still consider it experimental then the rust pl011 would be out of scope. With regards, Daniel -- |: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
