The following commit broke the build..

linux-user: take RESERVED_VA into account for g2h_valid()

When running with -R (RESERVED_VA > 0) all guest virtual addresses
are within the [0..RESERVED_VA] range. Reflect this with g2h_valid()
too so we can safely check for boundaries of our guest address space.

This is required to have the /proc/self/maps code not show maps that
aren't accessible from the guest process's point of view.

Signed-off-by: Alexander Graf <ag...@suse.de>
Signed-off-by: Riku Voipio <riku.voi...@linaro.org>


  LINK  i386-bsd-user/qemu-i386
exec.o(.text+0x1e8a): In function `tcg_exec_init':
: undefined reference to `reserved_va'
mmap.o(.text+0x332): In function `qemu_vmalloc':
: undefined reference to `reserved_va'
mmap.o(.text+0xc10): In function `target_mmap':
: undefined reference to `reserved_va'
user-exec.o(.text+0x7b): In function `cpu_x86_signal_handler':
: undefined reference to `reserved_va'

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


Reply via email to