[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] Build *-user targets as PIE
From: |
Kirill A. Shutemov |
Subject: |
Re: [Qemu-devel] [PATCH v2] Build *-user targets as PIE |
Date: |
Thu, 3 Sep 2009 17:21:13 +0300 |
On Thu, Sep 3, 2009 at 3:00 PM, Reimar
Döffinger<address@hidden> wrote:
> On Thu, Sep 03, 2009 at 03:15:17PM +0300, Kirill A. Shutemov wrote:
>> Now we can drop link hack for i386 and fix text relocations on i386 host.
>>
>> v2:
>> - Add configure options do enable/disable PIE for usermode targets.
>> Disabling can be useful if you build uswing toolchain which has
>> broken PIE support. PIE for usermode targets enabled by default.
>
> Hm. Would be nice if the commit message said more about the "why". What
> is the advantage of PIE (I mean, is there something special about qemu
> that makes it particularly useful)?
The main advantage is that we can drop linking hack for i386 (and keep keep
qemu self-virtualizable) and solve text relocations.
The other advantage is security. Since qemu is PIE kernel can load at random
position in memory. It makes qemu harder for many types of attacks.
> Is there any measurable speed
> difference between PIE and no PIE?
Actually, I have no numbers for qemu.
PIE code usually is a bit slower. Approximately, 1% for i386 according to
some tests. RISC architectures should be affected less, since they have
more registers. On other hand we are getting rid from text relocations on
i386 which make executable loading slower. So...
- [Qemu-devel] [PATCH 1/2] Do not link *-user target with libhw*.a, Kirill A. Shutemov, 2009/09/02
- [Qemu-devel] [PATCH 2/2] Build *-user targets as PIE, Kirill A. Shutemov, 2009/09/02
- [Qemu-devel] Re: [PATCH 2/2] Build *-user targets as PIE, Paolo Bonzini, 2009/09/02
- Re: [Qemu-devel] [PATCH 2/2] Build *-user targets as PIE, Rtp, 2009/09/02
- Re: [Qemu-devel] [PATCH 2/2] Build *-user targets as PIE, Kirill A. Shutemov, 2009/09/02
- Re: [Qemu-devel] [PATCH 2/2] Build *-user targets as PIE, Rtp, 2009/09/02
- [Qemu-devel] [PATCH v2] Build *-user targets as PIE, Kirill A. Shutemov, 2009/09/03
- Re: [Qemu-devel] [PATCH v2] Build *-user targets as PIE, Reimar Döffinger, 2009/09/03
- Re: [Qemu-devel] [PATCH v2] Build *-user targets as PIE,
Kirill A. Shutemov <=
- Re: [Qemu-devel] [PATCH v2] Build *-user targets as PIE, Paul Brook, 2009/09/03
- [Qemu-devel] Re: [PATCH v2] Build *-user targets as PIE, Paolo Bonzini, 2009/09/03
- Re: [Qemu-devel] [PATCH v2] Build *-user targets as PIE, Kirill A. Shutemov, 2009/09/03
- Re: [Qemu-devel] [PATCH v2] Build *-user targets as PIE, Reimar Döffinger, 2009/09/03
- Re: [Qemu-devel] [PATCH v2] Build *-user targets as PIE, Kirill A. Shutemov, 2009/09/04
- Re: [Qemu-devel] [PATCH v2] Build *-user targets as PIE, Reimar Döffinger, 2009/09/04
- Re: [Qemu-devel] [PATCH v2] Build *-user targets as PIE, Kirill A. Shutemov, 2009/09/04
- Message not available
- [Qemu-devel] Re: [PATCH v2] Build *-user targets as PIE, Kirill A. Shutemov, 2009/09/03
- Re: [Qemu-devel] [PATCH v2] Build *-user targets as PIE, Paul Brook, 2009/09/03
- Re: [Qemu-devel] [PATCH v2] Build *-user targets as PIE, Kirill A. Shutemov, 2009/09/03