From: Alexander Graf <agraf@suse.de>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>,
Anthony Liguori <aliguori@us.ibm.com>,
av1474@comtv.ru, qemu-devel@nongnu.org,
Dominik Dingel <dingel@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PATCH 7/8] audio: look for the ISA and PCI buses
Date: Tue, 30 Apr 2013 14:52:13 +0200 [thread overview]
Message-ID: <517FBE7D.5060905@suse.de> (raw)
In-Reply-To: <1366303444-24620-8-git-send-email-pbonzini@redhat.com>
On 04/18/2013 06:44 PM, Paolo Bonzini wrote:
> Signed-off-by: Paolo Bonzini<pbonzini@redhat.com>
> ---
> arch_init.c | 16 +++++++++++-----
> hw/i386/pc_piix.c | 2 +-
> hw/i386/pc_q35.c | 2 +-
> hw/mips/mips_jazz.c | 2 +-
> hw/mips/mips_malta.c | 2 +-
> hw/ppc/prep.c | 2 +-
> include/sysemu/arch_init.h | 2 +-
> 7 files changed, 17 insertions(+), 11 deletions(-)
>
> diff --git a/arch_init.c b/arch_init.c
> index 88b74c0..cbcb3ed 100644
> --- a/arch_init.c
> +++ b/arch_init.c
> @@ -992,20 +992,26 @@ void select_soundhw(const char *optarg)
> }
> }
>
> -void audio_init(ISABus *isa_bus, PCIBus *pci_bus)
> +void audio_init(void)
> {
> struct soundhw *c;
> + ISABus *isa_bus = (ISABus *) object_resolve_path_type("", TYPE_ISA_BUS, NULL);
> + PCIBus *pci_bus = (PCIBus *) object_resolve_path_type("", TYPE_PCI_BUS, NULL);
We don't have PCI or ISA on s390. So with this patch applied,
qemu-system-s390x breaks on init.
qemu-system-s390x: qom/object.c:190: type_is_ancestor: Assertion
`target_type' failed.
Program received signal SIGABRT, Aborted.
0x000003fffd94287e in raise () from /lib64/libc.so.6
(gdb) bt
#0 0x000003fffd94287e in raise () from /lib64/libc.so.6
#1 0x000003fffd943ec8 in abort () from /lib64/libc.so.6
#2 0x000003fffd939aa0 in __assert_fail () from /lib64/libc.so.6
#3 0x00000000800cfdb2 in type_is_ancestor (type=<optimized out>,
target_type=0x0) at qom/object.c:190
#4 0x00000000800cfeae in object_class_dynamic_cast (class=0x80b617d0,
typename=<optimized out>) at qom/object.c:474
#5 0x00000000800cff90 in object_dynamic_cast (obj=0x80b91d40,
typename=<optimized out>) at qom/object.c:427
#6 0x00000000800d0aea in object_resolve_partial_path (parent=<optimized
out>, parts=<optimized out>,
typename=<optimized out>, ambiguous=0x0) at qom/object.c:1084
#7 0x00000000800d1fca in object_resolve_path_type (path=<optimized
out>, typename=0x801fa1a8 "PCI", ambiguous=0x0)
at qom/object.c:1126
#8 0x0000000080110b28 in audio_init () at
/temporaer/agraf/qemu/arch_init.c:994
#9 0x000000008010a6e0 in main (argc=<optimized out>, argv=<optimized
out>, envp=<optimized out>) at vl.c:4297
(gdb) l /temporaer/agraf/qemu/arch_init.c:994
989
990 void audio_init(void)
991 {
992 struct soundhw *c;
993 ISABus *isa_bus = (ISABus *) object_resolve_path_type("",
TYPE_ISA_BUS, NULL);
994 PCIBus *pci_bus = (PCIBus *) object_resolve_path_type("",
TYPE_PCI_BUS, NULL);
995
996 for (c = soundhw; c->name; ++c) {
997 if (c->enabled) {
998 if (c->isa) {
Alex
next prev parent reply other threads:[~2013-04-30 12:52 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-18 16:43 [Qemu-devel] [PATCH 1.5 0/8] make audio card configuration uniform Paolo Bonzini
2013-04-18 16:43 ` [Qemu-devel] [PATCH 1/8] adlib: qdev-ify Paolo Bonzini
2013-04-29 17:26 ` Andreas Färber
2013-04-18 16:43 ` [Qemu-devel] [PATCH 2/8] audio: remove the need for audio card CONFIG_* symbols Paolo Bonzini
2013-04-18 16:43 ` [Qemu-devel] [PATCH 3/8] audio: remove HAS_AUDIO Paolo Bonzini
2013-04-18 16:44 ` [Qemu-devel] [PATCH 4/8] audio: remove CONFIG_* symbols Paolo Bonzini
2013-04-18 16:44 ` [Qemu-devel] [PATCH 5/8] audio: replace audio card configuration with default-configs Paolo Bonzini
2013-04-18 16:44 ` [Qemu-devel] [PATCH 6/8] qom: do not return root for empty path Paolo Bonzini
2013-04-29 17:30 ` Andreas Färber
2013-04-18 16:44 ` [Qemu-devel] [PATCH 7/8] audio: look for the ISA and PCI buses Paolo Bonzini
2013-04-30 12:16 ` Andreas Färber
2013-04-30 14:00 ` Paolo Bonzini
2013-04-30 14:39 ` Anthony Liguori
2013-04-30 12:52 ` Alexander Graf [this message]
2013-04-18 16:44 ` [Qemu-devel] [PATCH 8/8] audio: enable PCI audio cards for all PCI-enabled targets Paolo Bonzini
2013-04-29 15:51 ` [Qemu-devel] [PATCH 1.5 0/8] make audio card configuration uniform Paolo Bonzini
2013-04-30 18:58 ` Anthony Liguori
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=517FBE7D.5060905@suse.de \
--to=agraf@suse.de \
--cc=aliguori@us.ibm.com \
--cc=av1474@comtv.ru \
--cc=borntraeger@de.ibm.com \
--cc=dingel@linux.vnet.ibm.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@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.