From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: [PATCHv5] x86/xen: allow privcmd hypercalls to be preempted Date: Thu, 5 Feb 2015 16:14:01 +0000 Message-ID: <54D396C9.7070404@citrix.com> References: <1423140077-32356-1-git-send-email-david.vrabel@citrix.com> <54D39628.4020508@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YJP4A-0005eX-D5 for xen-devel@lists.xenproject.org; Thu, 05 Feb 2015 16:14:06 +0000 In-Reply-To: <54D39628.4020508@oracle.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: Boris Ostrovsky , xen-devel@lists.xenproject.org Cc: "Luis R. Rodriguez" List-Id: xen-devel@lists.xenproject.org On 05/02/15 16:11, Boris Ostrovsky wrote: > On 02/05/2015 07:41 AM, David Vrabel wrote: >> + >> +void xen_maybe_preempt_hcall(void) >> +{ >> + if (__this_cpu_read(xen_in_preemptible_hcall)) { > > Can you check should_resched() here? _cond_resched() already does this. David