From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NMfU3-0004i9-ST for qemu-devel@nongnu.org; Mon, 21 Dec 2009 05:27:23 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NMfTy-0004cc-7S for qemu-devel@nongnu.org; Mon, 21 Dec 2009 05:27:22 -0500 Received: from [199.232.76.173] (port=41052 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMfTx-0004cM-Q9 for qemu-devel@nongnu.org; Mon, 21 Dec 2009 05:27:17 -0500 Received: from va3ehsobe005.messaging.microsoft.com ([216.32.180.15]:24160 helo=VA3EHSOBE005.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1NMfTx-0002XX-Fq for qemu-devel@nongnu.org; Mon, 21 Dec 2009 05:27:17 -0500 Message-ID: <4B2F4D63.2040801@amd.com> Date: Mon, 21 Dec 2009 11:26:43 +0100 From: Andre Przywara MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: SVM support in 0.12? References: In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jun Koi Cc: Alexander Graf , "qemu-devel@nongnu.org" Jun Koi wrote: >>>>>> I am running latest Qemu 0.12-rc. My guest VM runs Linux kernel 2.6.31. >>>>>> >>>>>> Because Qemu now supports SVM, I expect to see the SVM flag in >>>>>> /proc/cpuinfo, but that is not the case. >>>>>> >>>>>> So it seems SVM support is not enabled by default configuration?? >>>>>> >>>>> My host and guest are both 32 bit Linux, if that matters. >>>>> >>>>> (And this is pure Qemu, without using KVM or KQemu) >>>> Kqemu actually works with svm emulation. >>>> ... >>> qemu -m 500 -cpu qemu32,+svm -cdrom ubuntu.iso >>> >>> I verified that /proc/cpuinfo has no svm flag. So SVM doesnt work on 32bit >>> host. >>> >>> I will try that with 64bit host to see how it goes. >> The host doesn't matter. You can easily run qemu-system-x86_64 on a 32-bit >> host. >> > > I can confirm that SVM works well on x86-64 target, but fails on i386 target. The Linux kernel will only detect SVM if the machine is AMD (see linux-2.6/arch/x86/include/asm/virtext.h:cpu_has_svm()) So please try: $ qemu -m 500 -cpu qemu32,+svm,vendor=AuthenticAMD -cdrom ubuntu.iso (because the default vendor for qemu32 is Intel, for qemu64 AMD) Regards, Andre. -- Andre Przywara AMD-Operating System Research Center (OSRC), Dresden, Germany Tel: +49 351 448 3567 12 ----to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Andrew Bowd; Thomas M. McCoy; Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632