From: Jeremy Fitzhardinge <jeremy@goop.org>
To: "Zhang, Xiantao" <xiantao.zhang@intel.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Ian Campbell <Ian.Campbell@citrix.com>
Subject: Re: CONFIG_SPARSE_IRQ breaks single VCPU domain 0 between xen/master and xen/next
Date: Wed, 03 Mar 2010 14:35:25 -0800 [thread overview]
Message-ID: <4B8EE42D.2090702@goop.org> (raw)
In-Reply-To: <EB8593BCECAB3D40A8248BE0B6400A3846255829@shzsmsx502.ccr.corp.intel.com>
On 03/01/2010 04:34 AM, Zhang, Xiantao wrote:
> Currenlty, ioapic access only exists at kernel's boot time to probe some info related to ioapic(e.g. ioapic version, ioapic's rte number), and no any access to ioapic at runtime, and this is why we still need the dump page there.
> To remove the hack, we can use your third method with existing interface PHYSDEVOP_apic_read to read the redirect entry number of ioapic. Attached the patch. What's your opinion ? :)
> From e5a75b3f2f40e56de714818b51932e6f36491f56 Mon Sep 17 00:00:00 2001
> From: Xiantao Zhang<xiantao.zhang@intel.com>
> Date: Mon, 1 Mar 2010 19:06:43 -0500
> Subject: [PATCH] x86: ioapic: Remove the hack for calculating nr_irq_gsi for Xen.
>
> Read the entry number through the hypercall PHYSDEVOP_apic_read, but
> the default vaule is also set to 255 if PHYSDEVOP_apic_read doesn't
> exist.
>
This doesn't look too bad, but I wonder if there's a cleaner way of
integrating it into the ioapic code path. Hm, nothing obvious. I'd
almost be tempted to just add something like:
nr_irqs_gsi = xen_probe_gsi(nr_irqs_gsi);
to the end of probe_nr_irqs_gsi(). It does have the downside of adding
Xen-specific code here, but it has the upside of being fairly clear and
to the point, and doesn't add a somewhat arbitrary interface like
set_nr_irqs_gsi().
At the very least, I think we can get rid of get_nr_irqs_gsi() as we add
set_nr_irqs_gsi()...
And should set_nr_irqs_gsi() refuse to decrease nr_irqs_gsi? Perhaps it
should be add_nr_irqs_gsi()?
J
next prev parent reply other threads:[~2010-03-03 22:35 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-26 11:42 CONFIG_SPARSE_IRQ breaks single VCPU domain 0 between xen/master and xen/next Ian Campbell
2010-02-26 12:05 ` Ian Campbell
2010-02-26 16:17 ` Ian Campbell
2010-02-26 17:28 ` Jeremy Fitzhardinge
2010-03-01 9:41 ` Ian Campbell
2010-03-01 11:27 ` Ian Campbell
2010-03-19 18:11 ` Thomas Schwinge
2010-03-01 12:34 ` Zhang, Xiantao
2010-03-03 22:35 ` Jeremy Fitzhardinge [this message]
2010-03-05 2:41 ` Zhang, Xiantao
2010-03-19 15:07 ` Ian Campbell
2010-03-19 23:45 ` Jeremy Fitzhardinge
2010-02-28 12:01 ` Erik Brakkee
2010-02-28 20:12 ` Erik Brakkee
2010-03-01 10:33 ` Ian Campbell
2010-03-01 17:44 ` Erik Brakkee
2010-03-01 17:47 ` Konrad Rzeszutek Wilk
2010-03-01 19:36 ` Ian Campbell
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=4B8EE42D.2090702@goop.org \
--to=jeremy@goop.org \
--cc=Ian.Campbell@citrix.com \
--cc=xen-devel@lists.xensource.com \
--cc=xiantao.zhang@intel.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.