Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRTW2-0001Ki-TM for qemu-devel@nongnu.org; Thu, 16 Jul 2009 12:09:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRTVy-0001FX-CL for qemu-devel@nongnu.org; Thu, 16 Jul 2009 12:09:02 -0400 Received: from [199.232.76.173] (port=40915 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRTVx-0001Eq-P7 for qemu-devel@nongnu.org; Thu, 16 Jul 2009 12:08:57 -0400 Received: from cantor.suse.de ([195.135.220.2]:44930 helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MRTVx-0003pC-IQ for qemu-devel@nongnu.org; Thu, 16 Jul 2009 12:08:57 -0400 Message-Id: From: Alexander Graf In-Reply-To: <20090716160128.GF16461@shareable.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: [Qemu-devel] [PATCH] omit 3DNOW! CPUID bits from qemu64 CPU model Date: Thu, 16 Jul 2009 18:08:53 +0200 References: <1247748571-20326-1-git-send-email-andre.przywara@amd.com> <20090716160128.GF16461@shareable.org> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jamie Lokier Cc: Andre Przywara , qemu-devel@nongnu.org On 16.07.2009, at 18:01, Jamie Lokier wrote: > Alexander Graf wrote: >> >> On 16.07.2009, at 14:49, Andre Przywara wrote: >> >>> Since we recently do not disable 3DNOW! support anymore, we should >>> avoid setting the bits in the default qemu64 CPU model to ease >>> migration. TCG does not support it anyway and even AMD deprecates >>> it's usage nowadays. >> >> TCG does not implement it but it was enabled in the qemu64 type? That >> sounds like a serious bug people would have found before. > > Almost nobody uses 3DNow! with a 64-bit guest, so it's not so > easy to notice. > > But I've have expected people running 32-bit guests on a qemu64 CPU to > notice, even if it's just the prefetch instructions... unless those > happen to overlap with NOPs on non-3DNow! hardware. (I'm too lazy > to check). > >> I really think we should try and keep the "qemu64" type (TCG >> capabilities) and the "kvm safe" type separate. IMHO the best >> scenario >> would be a -cpu "safe" type, used as default, that is the common >> dominator between KVM on VMX, KVM on SVM and TCG. > > qemu32 => TCG 32-bit > qemu64 => TCG 64-bit > > safe32 => common between KVM and TCG, 32-bit > safe64 => common between KVM and TCG, 64-bit Yeah. Maybe only "safe" and always assume x86_64? But then comes Intel ... sigh. >> That would also make it easier to know where to put other fancy >> features like "SVM" :-) > > Can't we use SVM emulation with TCG and KVM both? We can use SVM emulation with TCG and KVM on SVM. We can't on KVM with VMX and Xen HVM. For KVM it's fine though, because the feature gets masked out if it's not supported. Still, SVM isn't migratable on KVM atm, so let's better disable it for "safe". Alex