qemu-irix/include
Paolo Bonzini 0c2d70c448 translate-all: ensure host page mask is always extended with 1's
Anthony reported that >4GB guests on Xen with 32bit QEMU broke after
commit 4ed023c ("Round up RAMBlock sizes to host page sizes", 2015-11-05).

In that patch sizes are masked against qemu_host_page_size/mask which
are uintptr_t, and thus 32bit on a 32bit QEMU, even though the ram space
might be bigger than 4GB on Xen.

Since ram_addr_t is not available on user-mode emulation targets, ensure
that we get a sign extension when masking away the low bits of the address.
Remove the ~10 year old scary comment that the type of these variables
is probably wrong, with another equally scary comment.  The new comment
however does not have "???" in it, which is arguably an improvement.

For completeness use the alignment macros in linux-user and bsd-user
instead of manually doing an &.  linux-user and bsd-user are not affected
by the Xen issue, however.

Reviewed-by: Juan Quintela <quintela@redhat.com>
Reported-by: Anthony PERARD <anthony.perard@citrix.com>
Fixes: 4ed023ce2a
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-12-02 13:12:30 +01:00
..
block migration: implement bdrv_all_find_vmstate_bs helper 2015-11-19 11:50:00 +01:00
crypto
disas
exec translate-all: ensure host page mask is always extended with 1's 2015-12-02 13:12:30 +01:00
fpu
hw vhost, pc: fixes for 2.5 2015-11-26 16:50:59 +00:00
libdecnumber
migration Postcopy: Mark nohugepage before discard 2015-11-10 15:00:28 +01:00
monitor monitor/target-ppc: Define target_get_monitor_def 2015-11-12 14:53:36 +11:00
net
qapi qjson: surprise, allocating 6 QObjects per token is expensive 2015-11-26 10:07:07 +01:00
qemu osdep: Change default value of qemu_hw_version() to "2.5+" 2015-11-25 13:42:37 +02:00
qom qom: Replace object property list with GHashTable 2015-11-19 15:00:15 +01:00
standard-headers
sysemu oslib-win32: Change return type of function getpagesize 2015-11-30 06:47:02 +01:00
ui
config.h
elf.h
glib-compat.h
qemu-common.h
qemu-io.h
qjson.h
trace-tcg.h
trace.h