Skip to content

linux-user: Speed up guest space initialization on 32-bit ARM target

Luke Shumaker qemu-devel 1 version Applied

Status from this message: Applied to my 'linux-user-for-2.12' branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 32 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/10linux-user: Use #if to only call validate_guest_space for 32-bit ARM targetlinux-user/elfload.c+9 -124 replies
2/10linux-user: Rename validate_guest_space => init_guest_commpagelinux-user/elfload.c+5 -52 replies
3/10linux-user: init_guest_space: Clean up if we can't initialize the commpagelinux-user/elfload.c+1 -02 replies
4/10linux-user: init_guest_space: Correctly handle guest_start in commpage initializationlinux-user/elfload.c+1 -12 replies
5/10linux-user: init_guest_space: Clarify page alignment logiclinux-user/elfload.c+33 -102 replies
6/10linux-user: init_guest_commpage: Add a comment about size checklinux-user/elfload.c+5 -02 replies
7/10linux-user: init_guest_space: Clean up control flow a bitlinux-user/elfload.c+19 -155 replies
8/10linux-user: init_guest_space: Don't try to align if we'll reject itlinux-user/elfload.c+5 -52 replies
9/10linux-user: init_guest_space: Add a comment about search strategylinux-user/elfload.c+4 -02 replies
10/10linux-user: init_guest_space: Try to make ARM space+commpage continuouslinux-user/elfload.c+49 -07 replies

Reviews trailers per patch

9 of 10 patches have a Reviewed-by or Acked-by.

PatchPeter Maydell
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/10] linux-user: Speed up guest space initialization on 32-bit ARM target

From: Luke Shumaker <[email protected]>

The goal of this patchset is to fix
https://bugs.launchpad.net/qemu/+bug/1740219

The gist is that the current linear search for an acceptable address range is a bad strategy when the reason we didn't get a good address on the first try is that we've having problems mapping the commpage for the 32-bit ARM target; especially if ASLR is disabled.

I think that only the final patch in this patchset is actually necessary to fix the issue; but I didn't feel comfortable writing it without also makeing the preceding (small) changes.

Luke Shumaker (10):
linux-user: Use #if to only call validate_guest_space for 32-bit ARM
target
linux-user: Rename validate_guest_space => init_guest_commpage
linux-user: init_guest_space: Clean up if we can't initialize the
commpage
linux-user: init_guest_space: Correctly handle guest_start in commpage
initialization
linux-user: init_guest_space: Clarify page alignment logic
linux-user: init_guest_commpage: Add a comment about size check
linux-user: init_guest_space: Clean up control flow a bit
linux-user: init_guest_space: Don't try to align if we'll reject it
linux-user: init_guest_space: Add a comment about search strategy
linux-user: init_guest_space: Try to make ARM space+commpage
continuous

 linux-user/elfload.c | 145 ++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 114 insertions(+), 31 deletions(-)
Signature · 4 lines
2.15.1

Happy hacking,
~ Luke Shumaker