Skip to content

tcg/i386 guest_base improvements

Richard Henderson qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tcg/i386: Reserve register for guest_base if a segment isn't availabletcg/i386/tcg-target.inc.c+66 -770 replies
2/2tcg/i386: Use segment for 32-bit guest base on linuxtcg/i386/tcg-target.inc.c+37 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] tcg/i386 guest_base improvements

The first change does two things: (1) improve bsd-user so that it doesn't continually reload guest_base into a temp register and
(2) extract the bulk of the guest_base logic to a routine that is run once at startup.

The second change adds segmentation support to 32-bit linux. There, if we're using a guest base, we can save 3 bytes per memory op by using a segment override. In addition, if we're using a reserved_va, we can set up the segment such that guest memory references are constrained by the segment.

Comments?

r~

Richard Henderson (2):
tcg/i386: Reserve register for guest_base if a segment isn't available tcg/i386: Use segment for 32-bit guest base on linux

 tcg/i386/tcg-target.inc.c | 181 +++++++++++++++++++++++++---------------------
 1 file changed, 100 insertions(+), 81 deletions(-)
Signature · 1 line
2.5.5