qemu/hw/pci-host
Marcel Apfelbaum 8caff63699 machine: replace qemu opts with iommu property
Fixes a QEMU crash when passing iommu parameter in command line.
Running
    x86_64-softmmu/qemu-system-x86_64 -machine pc,iommu=on -enable-kvm
leads to crash:
    qemu-system-x86_64: qemu/util/qemu-option.c:387: qemu_opt_get_bool_helper:
    Assertion `opt->desc && opt->desc->type == QEMU_OPT_BOOL' failed.
    Aborted (core dumped)

This happens because commit e79d5a6 ("machine: remove qemu_machine_opts global
list") removed the global option descriptions and moved them to MachineState's
QOM properties.

Fix this by querying machine properties through designated wrappers.

Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
2015-03-11 18:10:43 +01:00
..
apb.c pci: Trivial device model conversions to realize 2015-02-26 12:42:16 +01:00
bonito.c pci: Trivial device model conversions to realize 2015-02-26 12:42:16 +01:00
gpex.c pci: Add generic PCIe host bridge 2015-02-13 05:46:07 +00:00
grackle.c pci: Trivial device model conversions to realize 2015-02-26 12:42:16 +01:00
Makefile.objs pci: Add generic PCIe host bridge 2015-02-13 05:46:07 +00:00
pam.c pci-host: update uncorresponding description 2014-08-15 18:54:06 +04:00
piix.c pci: Trivial device model conversions to realize 2015-02-26 12:42:16 +01:00
ppce500.c pci: Trivial device model conversions to realize 2015-02-26 12:42:16 +01:00
prep.c pci: Trivial device model conversions to realize 2015-02-26 12:42:16 +01:00
q35.c machine: replace qemu opts with iommu property 2015-03-11 18:10:43 +01:00
uninorth.c pci: Trivial device model conversions to realize 2015-02-26 12:42:16 +01:00
versatile.c pci: Trivial device model conversions to realize 2015-02-26 12:42:16 +01:00