From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Windows XP internal Power error Date: Tue, 26 Dec 2006 16:58:27 +0200 Message-ID: <45913893.8020109@qumranet.com> References: <64F9B87B6B770947A9F8391472E03216097F08BA@ehost011-8.exch011.intermedia.net> <20061214081240.w465jyhcymkg4cco@webmail.provincia.torino.it> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050806020807040606070907" Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: To: ignazio.cassano-VeGButH3FaVpxaeRVNJOcDUZDU+1vuVT@public.gmane.org In-Reply-To: <20061214081240.w465jyhcymkg4cco-2RFepEojUI1V4YG60fcVpWnFp5FU0k5wNRkNT7W+5VM@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org This is a multi-part message in MIME format. --------------050806020807040606070907 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit ignazio.cassano-VeGButH3FaVpxaeRVNJOcDUZDU+1vuVT@public.gmane.org wrote: > Good moorning, I changed the -boot option in 'c' but when my Windows Xp boot > to complete the installation I got the following errors: > > unhandled vm exit: 0x80000022 > rax 0000000000000800 rbx 00000000ffdff120 rcx 00000000c0000080 rdx > 0000000000000000 > rsi 0000000000000000 rdi 00000000c0000080 rsp 0000000080548de8 rbp > 0000000080548e3c > r8 0000000000000000 r9 0000000000000000 r10 0000000000000000 r11 > 0000000000000000 > r12 0000000000000000 r13 0000000000000000 r14 0000000000000000 r15 > 0000000000000000 > rip 00000000804fee82 rflags 00000006 > > > A laptop came back from service yesterday and started exhibiting the same problem. Turns out some Intel processors don't support the nx feature, which qemu reports as present. I committed the attached patch to kvm/qemu. It should fix the problem. -- error compiling committee.c: too many arguments to function --------------050806020807040606070907 Content-Type: text/x-patch; name="no-nx.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="no-nx.patch" Index: trunk/qemu/qemu-kvm.c =================================================================== --- trunk/qemu/qemu-kvm.c (revision 4183) +++ trunk/qemu/qemu-kvm.c (revision 4184) @@ -440,7 +440,7 @@ *rcx = env->regs[R_ECX]; *rbx = env->regs[R_EBX]; *rax = env->regs[R_EAX]; - // don't report long mode/syscall if no native support + // don't report long mode/syscall/nx if no native support if (eax == 0x80000001) { unsigned long h_eax = eax, h_edx; @@ -460,6 +460,9 @@ // syscall if ((h_edx & 0x00000800) == 0) *rdx &= ~0x00000800ull; + // nx + if ((h_edx & 0x00100000) == 0) + *rdx &= ~0x00100000ull; } env = saved_env; return 0; --------------050806020807040606070907 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV --------------050806020807040606070907 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --------------050806020807040606070907--