From: Ian Campbell Subject: Re: [PATCH] tools/libxc: Avoid hypercalls for cacheflush on x86 Date: Tue, 4 Mar 2014 01:18:35 +0000 Message-ID: <1393895915.10902.9.camel@hastur.hellion.org.uk> References: <1393857478-14993-1-git-send-email-andrew.cooper3@citrix.com> <21268.44109.423294.653166@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21268.44109.423294.653166@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Andrew Cooper , Xen-devel List-Id: xen-devel@lists.xenproject.org On Mon, 2014-03-03 at 16:22 +0000, Ian Jackson wrote: > Andrew Cooper writes ("[PATCH] tools/libxc: Avoid hypercalls for cacheflush on x86"): > > XEN_DOMCTL_cacheflush hypercalls are -ENOSYS on x86. As domain > > creation/migration is already very hypercall-heavy, avoid making extra > > redundant hypercalls > > Surely this should be done by moving the relevant code to an > arm-specific file, not by #ifdeffery. I think it is very debatable that sort-circuiting a single ENOSYS hypercall in the tools is even worth it at all. "very hypercall heavy" doesn't cut it as a rationale IMHO. Unless an actual demonstrable improvement is seen, perhaps over a larger series removing a large number of so called redundant calls, it's just an additional source of confusion (due to gating at multiple levels) as far as I'm concerned. Ian.