Marcel Apfelbaum <mar...@redhat.com> writes: > Fixes a QEMU crash when passing iommu parameter in command line. > > Signed-off-by: Marcel Apfelbaum <mar...@redhat.com> > --- > hw/core/machine.c | 5 +++++ > hw/pci-host/q35.c | 2 +- > include/hw/boards.h | 1 + > 3 files changed, 7 insertions(+), 1 deletion(-) > > diff --git a/hw/core/machine.c b/hw/core/machine.c > index fbd91be..096eb10 100644 > --- a/hw/core/machine.c > +++ b/hw/core/machine.c > @@ -403,6 +403,11 @@ bool machine_usb(MachineState *machine) > return machine->usb; > } > > +bool machine_iommu(MachineState *machine) > +{ > + return machine->iommu; > +} > + > static const TypeInfo machine_info = { > .name = TYPE_MACHINE, > .parent = TYPE_OBJECT,
What does this buy us over a straight current_machine->iommu? Same for the other wrapper functions. [...]