diff options
author | Alexander Graf <agraf@suse.de> | 2013-12-06 13:52:24 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2013-12-23 16:02:20 +0400 |
commit | 33dfdb56f2f3c8686d218395b871ec12fd5bf30b (patch) | |
tree | 2d063efdf7f84c2ce4598b68d267bc8155cf5f29 /po | |
parent | 0d9e61c2619eeead4de6afa8fedec2ad9311b642 (diff) | |
download | qemu-33dfdb56f2f3c8686d218395b871ec12fd5bf30b.zip qemu-33dfdb56f2f3c8686d218395b871ec12fd5bf30b.tar.gz qemu-33dfdb56f2f3c8686d218395b871ec12fd5bf30b.tar.bz2 |
x86: only allow real mode to access 32bit without LMA
When we're running in non-64bit mode with qemu-system-x86_64 we can
still end up with virtual addresses that are above the 32bit boundary
if a segment offset is set up.
GNU Hurd does exactly that. It sets the segment offset to 0x80000000 and
puts its EIP value to 0x8xxxxxxx to access low memory.
This doesn't hit us when we enable paging, as there we just mask away the
unused bits. But with real mode, we assume that vaddr == paddr which is
wrong in this case. Real hardware wraps the virtual address around at the
32bit boundary. So let's do the same.
This fixes booting GNU Hurd in qemu-system-x86_64 for me.
Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'po')
0 files changed, 0 insertions, 0 deletions