Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mls46-0004iI-1D for qemu-devel@nongnu.org; Thu, 10 Sep 2009 18:24:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mls41-0004eY-70 for qemu-devel@nongnu.org; Thu, 10 Sep 2009 18:24:28 -0400 Received: from [199.232.76.173] (port=40042 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mls3z-0004eK-Qp for qemu-devel@nongnu.org; Thu, 10 Sep 2009 18:24:24 -0400 Received: from tx2ehsobe003.messaging.microsoft.com ([65.55.88.13]:48386 helo=TX2EHSOBE005.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1Mls3z-0001LZ-HJ for qemu-devel@nongnu.org; Thu, 10 Sep 2009 18:24:23 -0400 Received: from mail176-tx2 (localhost.localdomain [127.0.0.1]) by mail176-tx2-R.bigfish.com (Postfix) with ESMTP id E4ED21080217 for ; Thu, 10 Sep 2009 22:24:20 +0000 (UTC) Received: from ausb3extmailp02.amd.com (ausb3extmailp02.amd.com [163.181.251.22]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail176-tx2.bigfish.com (Postfix) with ESMTP id 0B1C61C0009C for ; Thu, 10 Sep 2009 22:24:00 +0000 (UTC) Received: from ausb3twp02.amd.com ([163.181.250.38]) by ausb3extmailp02.amd.com (Switch-3.2.7/Switch-3.2.7) with ESMTP id n8AMNu5K021704 for ; Thu, 10 Sep 2009 17:23:59 -0500 Received: from sausexbh2.amd.com (SAUSEXBH2.amd.com [163.181.22.102]) by ausb3twp02.amd.com (Tumbleweed MailGate 3.7.0) with ESMTP id 20C5CC850F for ; Thu, 10 Sep 2009 17:23:55 -0500 (CDT) From: Andre Przywara Date: Fri, 11 Sep 2009 00:20:45 +0200 Message-ID: <1252621257-26364-1-git-send-email-andre.przywara@amd.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 0/12] cpuid: cleanup and some enhancements List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, the following patchset cleans up CPUID bit handling and adds some smaller features. The most prominent change is to move all CPUID related functions to a separate file. About 40% of helper.c was actually CPUID related, so say hello to cpuid.c. While at it, I fixed some formatting issues. (Patch 1-5) Patch 6 & 7 add the CPUID feature flag names to the output of -cpu ?. Patch 8 & 9 simplify some code. Patch 10 allows more CPUID leafs to be propagated to guests when -cpu host is used, this should now reflect the host CPU's cache size. Patch 11 adds a trimming feature (similar to KVM) to QEMU/TCG. The goal is to describe CPU models more precisely by reflecting the feature bits of the real hardware. Features that QEMU does not support are then masked. If we add features to QEMU, we only need to adjust it in one location. I will send a patch fixing the CPU models later. Patch 12 adjusts the size of the L2 cache described by leaf 4 to a more conservative value of one megabyte. This prevents guests assuming too large caches if they use optimized algorithms. Please review, comment and apply! Thanks and 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