]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/e500.c
machine: query kernel-irqchip property
authorMarcel Apfelbaum <marcel@redhat.com>
Tue, 10 Mar 2015 16:59:54 +0000 (18:59 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 11 Mar 2015 17:14:23 +0000 (18:14 +0100)
commit446f16a6906e9d05aa9ce0dde727d4f731a89298
tree872eba40ba77b857f33b1fb339cba11dfd82d87f
parentd8870d0217216478888c2d3dd6bf62e155d978c8
machine: query kernel-irqchip property

Running
    x86_64-softmmu/qemu-system-x86_64 -machine pc,kernel_irqchip=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 the 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>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/ppc/e500.c
hw/ppc/spapr.c
kvm-all.c