From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Weimer Subject: Re: [RFC PATCH] getcpu_cache system call: caching current CPU number (x86) Date: Mon, 20 Jul 2015 10:35:40 +0200 Message-ID: <55ACB2DC.5010503@redhat.com> References: <1436724386-30909-1-git-send-email-mathieu.desnoyers@efficios.com> <5CDDBDF2D36D9F43B9F5E99003F6A0D48D5F39C6@PRN-MBX02-1.TheFacebook.com> <587954201.31.1436808992876.JavaMail.zimbra@efficios.com> <5CDDBDF2D36D9F43B9F5E99003F6A0D48D5F5DA0@PRN-MBX02-1.TheFacebook.com> <549319255.383.1437070088597.JavaMail.zimbra@efficios.com> <20150717232836.GA13604@domone> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Andy Lutomirski , =?UTF-8?B?T25kxZllaiBCw61sa2E=?= Cc: Linus Torvalds , Mathieu Desnoyers , Ben Maurer , Paul Turner , Andrew Hunter , Peter Zijlstra , Ingo Molnar , rostedt , "Paul E. McKenney" , Josh Triplett , Lai Jiangshan , Andrew Morton , linux-api , libc-alpha List-Id: linux-api@vger.kernel.org On 07/18/2015 01:33 AM, Andy Lutomirski wrote: > I think the API should be "set gsbase to x + y*(cpu number)". On > x86_64, userspace just allocates a big swath of virtual space and > populates it as needed. This will break WINE and similar applications which use %gs today. -- Florian Weimer / Red Hat Product Security