[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] tcg-i386: Use %gs prefixes for x86_64 GUEST_
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH v2] tcg-i386: Use %gs prefixes for x86_64 GUEST_BASE |
Date: |
Mon, 22 Oct 2012 06:43:10 +1000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 |
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 <sys/prctl.h> now. I can definitely update that.
r~