From: Jeremy Fitzhardinge <jeremy@goop.org>
To: "Nakajima, Jun" <jun.nakajima@intel.com>
Cc: "bderzhavets@yahoo.com" <bderzhavets@yahoo.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: Xen/pv_ops features/patches for 2.6.29? (updating wiki)
Date: Fri, 13 Feb 2009 11:30:35 -0800 [thread overview]
Message-ID: <4995CA5B.1070006@goop.org> (raw)
In-Reply-To: <0B53E02A2965CE4F9ADB38B34501A3A16D974A73@orsmsx505.amr.corp.intel.com>
Nakajima, Jun wrote:
> I noticed that the changes like
> if (xen_initial_domain())
> ...
>
> For example,
> static inline unsigned int io_apic_read(unsigned int apic, unsigned int reg)
> {
> struct io_apic __iomem *io_apic;
>
> if (xen_initial_domain())
> return xen_io_apic_read(apic, reg);
>
> io_apic = io_apic_base(apic);
> writel(reg, &io_apic->index);
> return readl(&io_apic->data);
> }
>
>
> Do you think those need to be wrapped by pv_ops? Probably it's better to replace such functions (e.g. io_apic_read/write) with Xen-specific ones, rather than adding hooks.
>
That's been a point of contention. Originally I had some io_apic_ops to
do that, but I got pushback. The current patch is more to make a point
than something I'd expect to be upstreamed (but who knows?). It isn't
actually too bad this way, because xen_initial_domain() compiles down to
a constant 0 if CONFIG_XEN_DOM0 is disabled, and its just a test of a
variable if its enabled.
J
prev parent reply other threads:[~2009-02-13 19:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-24 13:21 Xen/pv_ops features/patches for 2.6.29? (updating wiki) Pasi Kärkkäinen
2009-02-13 14:40 ` Pasi Kärkkäinen
2009-02-13 16:44 ` Boris Derzhavets
2009-02-13 18:28 ` Jeremy Fitzhardinge
2009-02-13 18:53 ` Boris Derzhavets
2009-02-13 19:15 ` Jeremy Fitzhardinge
2009-02-13 18:58 ` Nakajima, Jun
2009-02-13 19:30 ` Jeremy Fitzhardinge [this message]
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=4995CA5B.1070006@goop.org \
--to=jeremy@goop.org \
--cc=bderzhavets@yahoo.com \
--cc=jun.nakajima@intel.com \
--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.