From: Ian Campbell Subject: Re: Linux'es SLUB incompatible with Xen? Date: Thu, 25 Sep 2014 11:57:18 +0100 Message-ID: <1411642638.16473.19.camel@kazak.uk.xensource.com> References: <5423ED170200007800038C47@mail.emea.novell.com> <1411639699.16473.2.camel@kazak.uk.xensource.com> <542410310200007800038E38@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XX6jj-0002YD-Ca for xen-devel@lists.xenproject.org; Thu, 25 Sep 2014 10:57:23 +0000 In-Reply-To: <542410310200007800038E38@mail.emea.novell.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: Jan Beulich Cc: Juergen Gross , xen-devel , Boris Ostrovsky , David Vrabel List-Id: xen-devel@lists.xenproject.org On Thu, 2014-09-25 at 11:53 +0100, Jan Beulich wrote: > >>> 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. Sorry, I somehow missed the parenthetical bit in middle of the paragraph! Ian.