From: Michael Tokarev <mjt@tls.msk.ru>
To: Jan Kiszka <jan.kiszka@web.de>
Cc: "Kevin Wolf" <kwolf@redhat.com>,
qemu-devel <qemu-devel@nongnu.org>,
"Alexander Graf" <agraf@suse.de>,
"Andreas Färber" <andreas.faerber@web.de>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Aurelien Jarno" <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] [STABLE][PATCH] isa-bus: Remove bogus IRQ sharing check
Date: Sun, 20 Feb 2011 01:45:02 +0300 [thread overview]
Message-ID: <4D6047EE.50707@msgid.tls.msk.ru> (raw)
In-Reply-To: <4D600446.3070008@web.de>
19.02.2011 20:56, Jan Kiszka wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
>
> Nothing prevented IRQ sharing on the ISA bus in principle. Not all
> boards supported this, neither each and every card nor driver and OS.
> Still, there existed valid IRQ sharing scenarios, (at least) two of them
> can also be found in QEMU: >2 PC UARTs and the PREP IDE buses.
>
> So remove this artificial restriction from our ISA model and reenable
> both PREP IDE buses.
In qemu-kvm at least (I don't remember how different the relevant code
has been between qemu and qemu-kvm at that time) this restriction exists
since 0.12 version. Before that it was at least possible to have >2 UARTS.
Do you aware of this? I don't know this code at all, so.. just asking :)
I'd love to get this fixed for real instead of a hackish way we did this
in the debian package, and it does not look like the change is problematic,
but are you sure it should go to stable?
FWIW, I applied this patch to qemu-kvm 0.14 branch (had to hand-apply
it to hw/pc.c, obvious s/isa_reserve_irq/isa_get_irq) and run some quick
tests, it appears to work correctly here with multiple serial ports
and e.g. serial console on ttyS4.
(Without the patch (and this is a separate bug), qemu-kvm prints:
qemu: hardware error: isa irq 4 already assigned
CPU #0:
_
when asked to create 3 serial ports, and stays there till killed).
Thanks!
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>
> hw/hpet.c | 1 -
> hw/ide/piix.c | 2 +-
> hw/ide/via.c | 2 +-
> hw/isa-bus.c | 16 +++-------------
> hw/isa.h | 2 +-
> hw/mips_fulong2e.c | 2 +-
> hw/mips_malta.c | 4 ++--
> hw/pc.c | 2 +-
> hw/pc_piix.c | 4 ++--
> hw/ppc_prep.c | 2 +-
> 10 files changed, 13 insertions(+), 24 deletions(-)
>
> diff --git a/hw/hpet.c b/hw/hpet.c
> index 82a9a21..91ebb75 100644
[...]
/mjt
next prev parent reply other threads:[~2011-02-19 22:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-19 17:56 [Qemu-devel] [STABLE][PATCH] isa-bus: Remove bogus IRQ sharing check Jan Kiszka
2011-02-19 22:45 ` Michael Tokarev [this message]
2011-02-20 9:01 ` Jan Kiszka
2011-02-19 23:25 ` [Qemu-devel] " Aurelien Jarno
2011-02-20 9:00 ` Jan Kiszka
2011-02-21 16:43 ` [Qemu-devel] " 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=4D6047EE.50707@msgid.tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=agraf@suse.de \
--cc=andreas.faerber@web.de \
--cc=aurelien@aurel32.net \
--cc=jan.kiszka@web.de \
--cc=kraxel@redhat.com \
--cc=kwolf@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.