Hi, Here are a couple of patches to clean-up guest_base handling for linux-user guests. There are two cases we hadn't accounted for/tested enough in the original clean-up:
- chroots without /proc access - 32 bit hosts and the 32 bit ARM COMMPAGE The solution to the first problem is a simple fall-back to mmap probing but without the ugliness of the first approach. The second is a bit of a hack but works. Given we only ever expose one value from the COMMPAGE it does make me wonder if we could rip out the special casing and come up with a cleaner ARM only approach by hooking exceptions? Anyway I've included a test case for the COMMPAGE as well. Please review Alex Bennée (3): linux-user: provide fallback pgd_find_hole for bare chroots linux-user: deal with address wrap for ARM_COMMPAGE on 32 bit tests/tcg: add simple commpage test case linux-user/elfload.c | 66 ++++++++++++++++++++++++++++++----- tests/tcg/arm/commpage.c | 61 ++++++++++++++++++++++++++++++++ tests/tcg/arm/Makefile.target | 2 ++ 3 files changed, 121 insertions(+), 8 deletions(-) create mode 100644 tests/tcg/arm/commpage.c -- 2.20.1