From e6a0432b5b92b507970e3a6d2302c94a3a389519 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 22 Aug 2010 00:23:50 +0200 Subject: 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. --- i386/i386/trap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3