From: "Jan Beulich" Subject: Re: Linux'es SLUB incompatible with Xen? Date: Thu, 25 Sep 2014 11:53:05 +0100 Message-ID: <542410310200007800038E38@mail.emea.novell.com> References: <5423ED170200007800038C47@mail.emea.novell.com> <1411639699.16473.2.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XX6ff-0001yP-Ab for xen-devel@lists.xenproject.org; Thu, 25 Sep 2014 10:53:11 +0000 In-Reply-To: <1411639699.16473.2.camel@kazak.uk.xensource.com> Content-Disposition: inline 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 Campbell Cc: Juergen Gross , xen-devel , Boris Ostrovsky , David Vrabel List-Id: xen-devel@lists.xenproject.org >>> On 25.09.14 at 12:08, wrote: > On Thu, 2014-09-25 at 09:23 +0100, Jan Beulich wrote: >> Linux-Xen maintainers, >> >> are you aware that SLUB's use of percpu_cmpxchg16b_double() is >> currently incompatible with Xen when run on old, not cmpxchg16b >> capable x86-64 CPUs (the problem being this_cpu_cmpxchg16b_emu's >> non-paravirtualized use of CLI)? Or is that a simple "we don't care - >> don't run Xen on such old systems" (despite everything else, including >> the hypervisor, working fine there)? > > Out of curiosity what is it about Xen that triggers this, as opposed to > failing on native? Not sure I understand the question: The emulation code that's being used here is fine for native as CLI does what is expected. But for a PV Xen guest CLI gets emulated as a privileged NOP, i.e. the needed pseudo-atomicity isn't guaranteed. Jan