From: Ian Campbell Subject: Re: [PATCH 1/3] x86/xen: allow for privcmd hypercalls to be preempted Date: Wed, 12 Feb 2014 09:38:50 +0000 Message-ID: <1392197930.13563.7.camel@kazak.uk.xensource.com> References: <1392146352-16381-1-git-send-email-david.vrabel@citrix.com> <1392146352-16381-2-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1392146352-16381-2-git-send-email-david.vrabel@citrix.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: David Vrabel Cc: Andrew Cooper , Boris Ostrovsky , Stefano Stabellini , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-02-11 at 19:19 +0000, David Vrabel wrote: > Implement is_premptible_hypercall() by adding a second hypercall page > (preemptible_hypercall_page, copied from hypercall_page). Calls made > via the new page may be preempted. Wouldn't a per-cpu flag variable set for the duration of privcmd_call do the job just as well without requiring per-arch knowledge? Ian.