From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQ2Mc-0008Da-QB for qemu-devel@nongnu.org; Sun, 21 Oct 2012 16:43:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQ2Mb-0000nW-Lp for qemu-devel@nongnu.org; Sun, 21 Oct 2012 16:43:14 -0400 Received: from mail-da0-f45.google.com ([209.85.210.45]:42383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQ2Mb-0000nS-Fa for qemu-devel@nongnu.org; Sun, 21 Oct 2012 16:43:13 -0400 Received: by mail-da0-f45.google.com with SMTP id n15so998378dad.4 for ; Sun, 21 Oct 2012 13:43:12 -0700 (PDT) Sender: Richard Henderson Message-ID: <50845E5E.2080208@twiddle.net> Date: Mon, 22 Oct 2012 06:43:10 +1000 From: Richard Henderson MIME-Version: 1.0 References: <1350530900-28991-1-git-send-email-rth@twiddle.net> <1350531365-29257-1-git-send-email-rth@twiddle.net> <20121021042602.GA15193@ohm.aurel32.net> In-Reply-To: <20121021042602.GA15193@ohm.aurel32.net> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] tcg-i386: Use %gs prefixes for x86_64 GUEST_BASE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: qemu-devel@nongnu.org On 2012-10-21 14:26, Aurelien Jarno wrote: >> > +static inline void setup_guest_base_seg(void) >> > +{ >> > + if (syscall(__NR_arch_prctl, ARCH_SET_GS, GUEST_BASE) == 0) { >> > + guest_base_flags = P_GS; >> > + } > Why calling the syscall directly instead of using arch_prctl(2)? > Err... there is no such function in libc. Ah, I see there is a prctl declaration and a now. I can definitely update that. r~