diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-08-22 00:23:50 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-08-22 00:23:50 +0200 |
commit | e6a0432b5b92b507970e3a6d2302c94a3a389519 (patch) | |
tree | 24079a4bd800fc66f41115d05a9fd4c377f11f8b | |
parent | 91e3fde091fb809ea9e14c5b7a752ad5270471b6 (diff) |
Disable 4gb segment emulation notification on first notification
i386/i386/trap.c [MACH_XEN] (user_trap): Disable
VMASST_TYPE_4gb_segments_notify on trap 15.
-rw-r--r-- | i386/i386/trap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/i386/i386/trap.c b/i386/i386/trap.c index 1527fee..a0cebcb 100644 --- a/i386/i386/trap.c +++ b/i386/i386/trap.c @@ -531,8 +531,10 @@ printf("user trap %d error %d sub %08x\n", type, code, subcode); { static unsigned count = 0; if (!count) { - printf("4gb segment access, probably from TLS use, please use a Xenified libc package (i.e. with the nosegneg option)\n"); count = 1; + printf("4gb segment access, probably from TLS use, please use a Xenified libc package (i.e. with the nosegneg option)\n"); + if (hyp_vm_assist(VMASST_CMD_disable, VMASST_TYPE_4gb_segments_notify)) + panic("couldn't disable 4gb segments vm assist notify"); } return 0; } |