From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: "Liu, Jinsong" <jinsong.liu@intel.com>
Cc: Konrad Rzeszutek Wilk <konrad@darnok.org>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Kernel development list <linux-kernel@vger.kernel.org>,
"Li, Shaohua" <shaohua.li@intel.com>,
"keir.xen@gmail.com" <keir.xen@gmail.com>,
Jan Beulich <JBeulich@suse.com>
Subject: Re: [Xen-devel] [PATCH 1/3] PAD helper for native and paravirt platform
Date: Mon, 26 Mar 2012 12:35:58 -0400 [thread overview]
Message-ID: <20120326163558.GC10236@phenom.dumpdata.com> (raw)
In-Reply-To: <DE8DF0795D48FD4CA783C40EC8292335105AAF@SHSMSX101.ccr.corp.intel.com>
On Mon, Mar 26, 2012 at 02:50:50AM +0000, Liu, Jinsong wrote:
> Konrad Rzeszutek Wilk wrote:
> > On Fri, Feb 17, 2012 at 08:56:43AM +0000, Liu, Jinsong wrote:
> >>> From f66a2df1392bbe69426387657a220177be50d58a Mon Sep 17 00:00:00
> >>> 2001
> >> From: Liu, Jinsong <jinsong.liu@intel.com>
> >> Date: Fri, 10 Feb 2012 20:32:50 +0800
> >> Subject: [PATCH 1/3] PAD helper for native and paravirt platform
> >>
> >> This patch is PAD (Processor Aggregator Device) helper.
> >> It provides a native interface for natvie platform, and a template
> >> for paravirt platform, so that os can implicitly hook to proper ops
> >> accordingly. The paravirt template will further redirect to Xen pv
> >> ops in later patch for Xen core parking.
> >
> > Liu,
> >
> > With this patch: " xen/enlighten: Expose MWAIT and MWAIT_LEAF if
> > hypervisor OKs it." which is now in 3.4-rc0:
> > (http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blobdiff;f=arch/x86/xen/enlighten.c;h=b132ade26f778f2cfec7c2d5c7b6db48afe424d5;hp=4172af8ceeb363d06912af15bf89e8508752b794;hb=d4c6fa73fe984e504d52f3d6bba291fd76fe49f7;hpb=aab008db8063364dc3c8ccf4981c21124866b395)
> > it means that now that the drivers/acpi/acpi_pad.c can run
> > as is under Xen (as the MWAIT_LEAF is exposed) What is the impact
> > of that? Is the monitor call causing a trap to the hypervisor which
> > will ignore the call? Or will it have some more worrysome
> > consequences?
> >
>
> IMO this patch doesn't affect acpi_pad logic (both native and xen acpi_pad).
You are sure? The acpi_pad logic will now be activated so the native driver
will run under Xen. My question is - what is the impact of that?
My assumption is that the __monitor call will trap and we end up in the hypervisor -
so that is not so bad, but not sure.
But what I wonder is if what is the impact of the _OST call by the native driver?
Say the firmware tells us - please offline 4 CPUS (we have eight). We enter
'acpi_pad_handle_notify' - create four threads, and each thread calls __monitor
(which ends up in the hypervisor - and the hypervisor might not persue the
__monitor call).
During this time, the Linux kernel calls the _OST with 4 CPUs and ..
what then? What happens if the _OST values are actually ignored (as it seems
it would be in this case?) Is that OK? Or is that going to lead to the
firmware turning off some of the cores anyhow?
> For native acpi_pad, it need mwait to enter deep Cx (but irrelative to this patch);
The patch I pointed you to will expose the MWAIT_LEAF in the initial domain.
Meaning that the native acpi_pad code will run.
> For xen acpi_pad, it doesn't depend on whether hypervisor expose mwait or not. It simply parse 'pur' obj and then hypercall to hypervisor to do rest core_parking things (BTW, hypervisor core parking patches have checkin in as c/s 25095/25096).
I get that, but for right now lets just focus on the native driver. I would like
to understand not only how it should function in baremetal but also in the native case.
>
> Thanks,
> Jinsong--
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2012-03-26 16:35 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
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 [this message]
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=20120326163558.GC10236@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=JBeulich@suse.com \
--cc=jinsong.liu@intel.com \
--cc=keir.xen@gmail.com \
--cc=konrad@darnok.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).