Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzQ0x-0002LN-Py for qemu-devel@nongnu.org; Sun, 18 Oct 2009 03:17:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzQ0t-0002DZ-3x for qemu-devel@nongnu.org; Sun, 18 Oct 2009 03:17:15 -0400 Received: from [199.232.76.173] (port=50308 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzQ0s-0002DQ-QA for qemu-devel@nongnu.org; Sun, 18 Oct 2009 03:17:10 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:62177) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MzQ0s-0002a0-HL for qemu-devel@nongnu.org; Sun, 18 Oct 2009 03:17:10 -0400 Received: by ewy7 with SMTP id 7so2635803ewy.34 for ; Sun, 18 Oct 2009 00:17:08 -0700 (PDT) Date: Sun, 18 Oct 2009 09:17:02 +0200 From: "Edgar E. Iglesias" Subject: Re: [Qemu-devel] [PATCH] User mode: Handle x86_64 vsyscall Message-ID: <20091018071702.GC9922@laped.iglesias.mooo.com> References: <761ea48b0907110814t12c644b6mf733d3b5e28e152@mail.gmail.com> <20091017195726.GB9922@laped.iglesias.mooo.com> <20091018030944.GB15656@shareable.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091018030944.GB15656@shareable.org> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jamie Lokier Cc: Laurent Desnogues , qemu-devel@nongnu.org On Sun, Oct 18, 2009 at 04:09:44AM +0100, Jamie Lokier wrote: > Edgar E. Iglesias wrote: > > Did you consider having the linux-user loader pass a qemu version of the > > x86_64 vdso to the guest through the auxvector? That version could probably > > implement the vsyscalls by translating them into syscalls with x86_64 code. > > That seems like a good idea. > > Note that on x86_64, there is _both_ a vsyscall page at a fixed > address, and a vdso page at a randomised address with different > contents. Binary programs can call either or both. > > On x86_32, there is only a vdso page. It can be a variable or fixed > address. To run old binaries (but not so old they don't know about > vsyscall), it needs to be mapped at a fixed address. Modern kernels > have it mapped at a randomised address, and therefore won't work with > those binaries. Thanks for clarifiying. If I understand correctly, my suggestion won't work for vsyscalls because the specific fixed address might be unavailable or already used by the host... Cheers