Re: [Xen-devel] [PATCH] tools/libxc: Improve efficiency of xc_cpuid_apply_policy()

2015-10-07 Thread Andrew Cooper
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

Re: [Xen-devel] [PATCH] tools/libxc: Improve efficiency of xc_cpuid_apply_policy()

2015-10-07 Thread Ian Campbell
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

Re: [Xen-devel] [PATCH] tools/libxc: Improve efficiency of xc_cpuid_apply_policy()

2015-10-06 Thread Wei Liu
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

[Xen-devel] [PATCH] tools/libxc: Improve efficiency of xc_cpuid_apply_policy()

2015-10-05 Thread Andrew Cooper
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 remo