From: Markus Armbruster <armbru@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] fdc: fix drive property handling.
Date: Wed, 16 Dec 2009 11:03:43 +0100 [thread overview]
Message-ID: <m3pr6f9qww.fsf@crossbow.pond.sub.org> (raw)
In-Reply-To: <1260889756-26864-1-git-send-email-kraxel@redhat.com> (Gerd Hoffmann's message of "Tue, 15 Dec 2009 16:09:16 +0100")
Gerd Hoffmann <kraxel@redhat.com> writes:
> Fix the floppy controller init wrappers to set the drive properties
> only in case the DriveInfo pointers passed in are non NULL. This allows
> to set the properties using -global.
>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This fixes "-global isa-fdc,driveB=DRIVE-ID" for me, but problems
remain:
* Default:
dev: isa-fdc, id ""
dev-prop: driveA = floppy0
dev-prop: driveB = <null>
isa irq 6
* -drive if=none,id=fd,file=fd.img -global isa-fdc.driveA=fd
dev: isa-fdc, id ""
dev-prop: driveA = floppy0
dev-prop: driveB = <null>
isa irq 6
No effect. It works with -nodefaults:
dev: isa-fdc, id ""
dev-prop: driveA = fd
dev-prop: driveB = <null>
isa irq 6
* -drive if=none,id=fd,file=fd.img -global isa-fdc.driveB=fd
dev: isa-fdc, id ""
dev-prop: driveA = floppy0
dev-prop: driveB = fd
isa irq 6
Works. -nodefaults works as well:
dev: isa-fdc, id ""
dev-prop: driveA = <null>
dev-prop: driveB = fd
isa irq 6
* -drive if=none,id=fd,file=fd.img -global isa-fdc.driveA=fd,driveB=fd
Dies, relevant part of stack backtrace:
#2 0x006a9092 in abort () from /lib/libc.so.6
#3 0x08128e79 in qdev_prop_set_globals (dev=0x84a6e88)
at /home/armbru/work/qemu/hw/qdev-properties.c:622
#4 0x08126632 in qdev_create (bus=0x849a8d0, name=0x81d4354 "isa-fdc")
at /home/armbru/work/qemu/hw/qdev.c:106
#5 0x081bf3d9 in isa_create (name=0x81d4354 "isa-fdc")
at /home/armbru/work/qemu/hw/isa-bus.c:120
#6 0x08092d83 in fdctrl_init_isa (fds=0xbfffefa0)
at /home/armbru/work/qemu/hw/fdc.c:1887
Same with -nodefaults.
next prev parent reply other threads:[~2009-12-16 10:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-15 15:09 [Qemu-devel] [PATCH] fdc: fix drive property handling Gerd Hoffmann
2009-12-16 10:03 ` Markus Armbruster [this message]
2009-12-16 13:29 ` Gerd Hoffmann
2009-12-16 14:45 ` Markus Armbruster
-- strict thread matches above, loose matches on Subject: below --
2010-03-10 16:30 Gerd Hoffmann
2010-03-13 11:16 ` Aurelien Jarno
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=m3pr6f9qww.fsf@crossbow.pond.sub.org \
--to=armbru@redhat.com \
--cc=kraxel@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.