xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: "Liu, Jinsong" <jinsong.liu@intel.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Kernel development list <linux-kernel@vger.kernel.org>,
	"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	"keir.xen@gmail.com" <keir.xen@gmail.com>,
	Jan Beulich <JBeulich@suse.com>,
	"Li, Shaohua" <shaohua.li@intel.com>,
	"lenb@kernel.org" <lenb@kernel.org>
Subject: Re: [Xen-devel] [PATCH 1/3] PAD helper for native and paravirt platform
Date: Sun, 19 Feb 2012 13:23:39 -0500	[thread overview]
Message-ID: <20120219182339.GA11882@phenom.dumpdata.com> (raw)
In-Reply-To: <DE8DF0795D48FD4CA783C40EC82923350A097D@SHSMSX101.ccr.corp.intel.com>

> >>> +struct pv_pad_ops {
> >>> +	int (*acpi_pad_init)(void);
> >>> +	void (*acpi_pad_exit)(void);
> >>> +};
> >>> +
> > 
> > Looking at this a bit closer I am not sure why you choose the paravirt
> > interface for this? There is another one - the x86 that could have
> > been 
> > choosen. Or introduce a new one that is specific to ACPI.
> > 
> > I am curious - what was the reason for using the paravirt interface?
> > I understand it does get the job done, but it seems a bit overkill
> > when something simple could have been used?
> > 
> 
> It uses paravirt interface to avoid some code like 'xen_...' in native code path (acpi_pad.c).
> I'm not quite sure what does 'x86' here mean? Adding 2 fields (acpi_pad_init/exit) in arch/x86/xen/enlighten.c --> xen_cpu_ops? seems it's much simpler.

arch/x86/include/asm/x86_init.h

But before you go that way let me ask you another question - can ACPI PAD
be used on ARM or IA64? If so, wouldn't this fail compilation as this pvops
structure is not defined on IA64?

The other thing I am not comfortable about is that the pvops structure
are used for low-level code. Not for higher up, like ACPI. For that another
structure seems more prudent. Perhaps something like the x86 one, but specific
to ACPI?

  reply	other threads:[~2012-02-19 18:23 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-17  8:56 [PATCH 1/3] PAD helper for native and paravirt platform Liu, Jinsong
2012-02-17 10:04 ` Jan Beulich
2012-02-17 14:29 ` Konrad Rzeszutek Wilk
2012-02-17 14:47   ` [Xen-devel] " Konrad Rzeszutek Wilk
2012-02-19 12:14     ` Liu, Jinsong
2012-02-19 18:23       ` Konrad Rzeszutek Wilk [this message]
2012-02-21  5:49         ` Liu, Jinsong
2012-02-21 14:27           ` Konrad Rzeszutek Wilk
2012-02-22 17:02             ` Liu, Jinsong
2012-02-22 18:23               ` Konrad Rzeszutek Wilk
2012-02-23 13:26                 ` Liu, Jinsong
     [not found] ` <4F3E345802000078000739B2@nat28.tlf.novell.com>
2012-02-17 17:59   ` Liu, Jinsong
     [not found]   ` <DE8DF0795D48FD4CA783C40EC829233509F044@SHSMSX101.ccr.corp.intel.com>
2012-02-17 19:06     ` Konrad Rzeszutek Wilk
2012-03-24  0:31 ` Konrad Rzeszutek Wilk
2012-03-26  2:50   ` [Xen-devel] " Liu, Jinsong
2012-03-26 16:35     ` Konrad Rzeszutek Wilk
2012-03-28 10:48       ` Liu, Jinsong
2012-03-28 12:42         ` Jan Beulich
2012-03-28 14:27           ` Konrad Rzeszutek Wilk
2012-03-28 14:52             ` Jan Beulich
2012-03-28 14:29         ` Konrad Rzeszutek Wilk
2012-03-29  5:28           ` Liu, Jinsong

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=20120219182339.GA11882@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=JBeulich@suse.com \
    --cc=jinsong.liu@intel.com \
    --cc=keir.xen@gmail.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shaohua.li@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).