From: David Gibson <david@gibson.dropbear.id.au>
To: Markus Armbruster <armbru@redhat.com>
Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, agraf@suse.de
Subject: Re: [Qemu-devel] -device spapr-dr-connector crashes
Date: Fri, 4 Dec 2015 10:42:34 +1100 [thread overview]
Message-ID: <20151203234234.GA9559@voom.redhat.com> (raw)
In-Reply-To: <878u5bzk6m.fsf@blackfin.pond.sub.org>
[-- Attachment #1: Type: text/plain, Size: 1401 bytes --]
On Thu, Dec 03, 2015 at 03:22:09PM +0100, Markus Armbruster wrote:
> Watch this:
>
> $ qemu-system-ppc64 -nodefaults -S -display none -device spapr-dr-connector
> **
> ERROR:/home/armbru/work/qemu/hw/ppc/spapr_drc.c:45:get_type_shift: assertion failed: (is_power_of_2(type))
> Aborted (core dumped)
>
> It may not make sense, but it shouldn't crash. Should this device be
> available with -device / device_add?
No, it shouldn't.
In fact, I'm not sure it makes sense for these to be standalone QOM
objects at all - I haven't looked into the details enough, but I
suspect this would make more sense as a QOM interface on existing
devices.
>
> For what it's worth, help works:
>
> $ qemu-system-ppc64 -nodefaults -S -display none -device spapr-dr-connector,help
> spapr-dr-connector.indicator-state=uint32
> spapr-dr-connector.name=string
> spapr-dr-connector.id=uint32
> spapr-dr-connector.entity-sense=uint32
> spapr-dr-connector.isolation-state=uint32
> spapr-dr-connector.allocation-state=uint32
> spapr-dr-connector.index=uint32
> spapr-dr-connector.connector_type=uint32
> spapr-dr-connector.fdt=struct
>
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2015-12-04 0:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-03 14:22 [Qemu-devel] -device spapr-dr-connector crashes Markus Armbruster
2015-12-03 23:42 ` David Gibson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151203234234.GA9559@voom.redhat.com \
--to=david@gibson.dropbear.id.au \
--cc=agraf@suse.de \
--cc=armbru@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.