From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cpmgb-0006p0-JT for qemu-devel@nongnu.org; Sat, 15 Jan 2005 07:05:46 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cpmga-0006mv-Kl for qemu-devel@nongnu.org; Sat, 15 Jan 2005 07:05:44 -0500 Received: from [129.104.30.34] (helo=mx1.polytechnique.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CpmPa-0000Pg-E0 for qemu-devel@nongnu.org; Sat, 15 Jan 2005 06:48:11 -0500 Message-ID: <41E90326.2020901@bellard.org> Date: Sat, 15 Jan 2005 12:48:54 +0100 From: Fabrice Bellard MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: 2.6.10-mm3: swsusp: out of memory on resume References: <200501131909.26021.rjw@sisk.pl> <20050114143400.GA27657@hugang.soulinfo.com> <200501150042.35377.rjw@sisk.pl> <20050115012120.GA4743@hugang.soulinfo.com> In-Reply-To: <20050115012120.GA4743@hugang.soulinfo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Rafael J. Wysocki" hugang@soulinfo.com wrote: > On Sat, Jan 15, 2005 at 12:42:35AM +0100, Rafael J. Wysocki wrote: > >>On Friday, 14 of January 2005 15:34, you wrote: >> >>>On Thu, Jan 13, 2005 at 07:09:24PM +0100, Rafael J. Wysocki wrote: >>> >>>>Hi, >>>> >>>> >>>>Has this patch been ported to x86_64? Or is there a newer version of it anywhere, >>>>or an alternative? >>>> >>> >>>Ok, Here is a new patch with x86_64 support, But I have not machine, So >>>Need someone test it. >>> >>>2.6.11-rc1-mm1 >>> -> 2005-1-14.core.diff core patch TEST PASSED >>> -> 2005-1-14.x86_64.diff x86_64 patch NOT TESTED >> >>Unfortunately, on x86_64 it goes south on suspend, probably somwhere in write_pagedir(), >>but I'm not quite sure as I can't make it print any useful stuff to the serial console >>(everything is dumped to a virtual tty only). Seemingly, it prints some >>"write_pagedir: ..." debug messages and then starts to print garbage in >>an infinite loop. > > > Try enable debug in swsusp, > <....> > #include "power.h" > #undef pr_debug > #define pr_debug printk > <....> > > Enable serial conosole, > Adding console=ttyS0 in boot command line. > > Then do software suspend, And send the log to me, that will useful. > > For other reference, I using qemu As X86-64 emulation, But current qemu > X86-64 not full works, the kernel hang after copy_page in suspend, I'll > enable CPU and ASM log in qemu to finger other where is the problem. I recently made a fix in fxsave/fxrestor which may correct some issues on x86_64. Strangely, the CVS commit mail did not appear on the mailing list... The state of x86_64 is that the install of Fedora core 3 for x86_64 begins to work (you can select the language for example), but there are some invalid characters displayed on screen. I believe there is a sign extension problem in a 64 bit instruction. Now that SSE and MMX are implemented, no feature is lacking in the QEMU x86_64 emulation... "just" a problem of debugging now :-) I did not enable SSE and MMX for x86 because I fear there are still bugs which may cause regressions. Interested people can enable the line: -- env->cpuid_features |= CPUID_FXSR | CPUID_MMX | CPUID_SSE | CPUID_SSE2 | CPUID_PAE; -- and see if their OS and application still work. Fabrice.