From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Ian Campbell <ian.campbell@citrix.com>, Wei Liu <wei.liu2@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH] tools/libxc: Improve efficiency of xc_cpuid_apply_policy()
Date: Wed, 7 Oct 2015 12:54:50 +0100 [thread overview]
Message-ID: <5615080A.8060200@citrix.com> (raw)
In-Reply-To: <1444218749.1410.21.camel@citrix.com>
On 07/10/15 12:52, Ian Campbell wrote:
> On Tue, 2015-10-06 at 10:14 +0100, Wei Liu wrote:
>> On Mon, Oct 05, 2015 at 02:12:17PM +0100, Andrew Cooper wrote:
>>> Having the internals of xc_cpuid_policy() make hypercalls to collect
>>> domain
>>> information causes xc_cpuid_apply_policy() to be very inefficient.
>>>
>>> Re-order operations to collect all information at once at the outermost
>>> layer,
>>> and pass a structure in to all cpuid policy generation functions.
>>>
>>> This removes several hypercalls (4 from HVM, 3 from PV) for each of the
>>> up-to 108 leaves processed.
>>>
>>> No change in the eventual policy provided, although all the information
>>> gathering how has (or has correct) error checking.
>>>
>>> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
>>> ---
>>> CC: Ian Campbell <Ian.Campbell@citrix.com>
>>> CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
>>> CC: Wei Liu <wei.liu2@citrix.com>
>> Acked-by: Wei Liu <wei.liu2@citrix.com>
> Applied.
>
>>> + /* PV-only information. */
>>> + bool pv64;
>>> +
>>> + /* HVM-only infomation. */
> Typo fixed
Oops - thanks.
>
>
>>> + bool pae;
>>> + bool nestedhvm;
>> I would have used union for these fields. But I don't want to bikeshed
>> too much on this. Definitely not a blocker for this patch. :-)
> Indeed.
It appears that I forgot to reply. I have further work which removes
these, but they are not in a suitable state for the list yet.
~Andrew
prev parent reply other threads:[~2015-10-07 11:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-05 13:12 [PATCH] tools/libxc: Improve efficiency of xc_cpuid_apply_policy() Andrew Cooper
2015-10-06 9:14 ` Wei Liu
2015-10-07 11:52 ` Ian Campbell
2015-10-07 11:54 ` Andrew Cooper [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=5615080A.8060200@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=ian.campbell@citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.org \
/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).