|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [PATCH 0/2] make guest-base support mandatory for TCG backends |
Date: | Tue, 09 Oct 2012 11:22:09 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 |
On 10/09/2012 07:58 AM, Paolo Bonzini wrote: > Perhaps you want to revive this patch: > > http://lists.gnu.org/archive/html/qemu-devel/2010-06/msg00509.html That needs careful benchmarking. For i686 it's a small code size optimization. It's unlikely to pay off for guest_base. A variant of this that sets the bounds of the segment for -R size properly could be interesting for a different reason: ensuring that the guest cannot access host memory. I once had a patch that used %gs for i686 env (aka areg0). With that we get to free up a register for use by TCG, potentially mitigating any slowdown from segmentation. I suspect that the different semantics for 64-bit segments mean that it's more likely to pay off there. And when running on very recent silicon we may not even need to rely on OS support. See the wrfsbase insn that becomes available with Ivy Bridge. r~
[Prev in Thread] | Current Thread | [Next in Thread] |