From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LN8nz-0004lc-Ek for qemu-devel@nongnu.org; Wed, 14 Jan 2009 11:41:23 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LN8nw-0004hP-Tc for qemu-devel@nongnu.org; Wed, 14 Jan 2009 11:41:22 -0500 Received: from [199.232.76.173] (port=60019 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LN8nw-0004gz-Ie for qemu-devel@nongnu.org; Wed, 14 Jan 2009 11:41:20 -0500 Received: from hera.kernel.org ([140.211.167.34]:37838) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LN8nv-0001XQ-Pd for qemu-devel@nongnu.org; Wed, 14 Jan 2009 11:41:20 -0500 From: Amit Shah Date: Wed, 14 Jan 2009 16:41:08 +0000 Message-Id: <1231951270-23664-1-git-send-email-amit.shah@redhat.com> Subject: [Qemu-devel] v3: KVM: support for 'count' in CPUID functions 4, 0xb and 0xd 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: aliguori@us.ibm.com, avi@redhat.com, kvm@vger.kernel.org These patches add support for cpuid functions that take a 'count' parameter in addition to the function number. With these patches, KVM can run a VM started with a newer CPU type (coreduo, core2duo). These patches also pave way for a "host" CPU type, where we could pass the CPU type of the current host to the VM. v3 uses the as-yet unused KVM_SET_CPUID2 interface, which was written to support this functionality. Since we rely on kernel versions 2.6.25 at a minimum for KVM and the SET_CPUID2 interface was introduced in 2.6.25, we're safe with this. Please apply.