From: "Jan Beulich" <jbeulich@novell.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH, resend] replacement for noirqdebug hack
Date: Fri, 02 Jun 2006 13:01:12 +0200 [thread overview]
Message-ID: <44803698.76E4.0078.0@novell.com> (raw)
In-Reply-To: <860931eb12a7d349e35120e3c70349a3@cl.cam.ac.uk>
>>> Keir Fraser <Keir.Fraser@cl.cam.ac.uk> 02.06.06 12:32 >>>
>
>On 2 Jun 2006, at 11:02, Jan Beulich wrote:
>
>> Instead of re-establishing the noirqdebug hack earlier present in the
>> i386 Linux code, communicate the information about
>> whether a particular IRQ is shared across domains from hypervisor to
>> kernel.
>>
>> Signed-off-by: Jan Beulich <jbeulich@novell.com>
>
>This is gross for a few reasons. Firstly it adds Xen cruft to a file we
>don't currently modify, and the changes would never be mergable
>upstream. Plus I'd prefer a lighter weight solution for handling this
>x86 crufty corner case -- adding extra bitmaps to shared_info and
>updating bits on every IRQ delivery is overkill imo.
I don't think this has less chances of merging than other changes to pre-existing files. Besides that, I don't think
sharing of IRQs across domains is an x86-only issue. And where do you see overkill in updating a single bit?
>What I would suggest is change note_interrupt() to only increment
>irqs_unhandled if some new function spurious_irqs_ok(irq) returns
>false. We can then define that function as Xen-specific and extend
>physdev_irq_status_query to be able to determine if an irq is shared
>across guests. We can avoid frequent hypercalls by caching the shared
>status the first time it evaluates true (so sharedness is sticky; I'd
>assume we would rarely take the path that executes the hypercall if the
>irq is really not shared).
That stickiness is clearly undesirable to me - if you bring up a domU for testing or other temporary purposes that
makes use of an interrupt already in use elsewhere, all other users of the interrupt will from there on not do proper
accounting anymore. Further, how would you want to prevent doing the hypercall if by default interrupts are non-shared
(I hope you didn't have other intentions) and hence the (sticky) flag wasn't set, yet.
Jan
next prev parent reply other threads:[~2006-06-02 11:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-02 10:02 [PATCH, resend] replacement for noirqdebug hack Jan Beulich
2006-06-02 10:32 ` Keir Fraser
2006-06-02 11:01 ` Jan Beulich [this message]
2006-06-02 11:09 ` Keir Fraser
2006-06-07 15:57 ` Keir Fraser
2006-06-08 7:00 ` Jan Beulich
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=44803698.76E4.0078.0@novell.com \
--to=jbeulich@novell.com \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=xen-devel@lists.xensource.com \
/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.