From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRpsK-0005u5-7v for qemu-devel@nongnu.org; Fri, 26 Oct 2012 15:47:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRpsJ-0005zG-4j for qemu-devel@nongnu.org; Fri, 26 Oct 2012 15:47:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:2795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRpsI-0005yy-Sd for qemu-devel@nongnu.org; Fri, 26 Oct 2012 15:47:23 -0400 Date: Fri, 26 Oct 2012 17:37:32 -0200 From: Marcelo Tosatti Message-ID: <20121026193732.GA32011@amt.cnet> References: <1349383747-19383-1-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1349383747-19383-1-git-send-email-ehabkost@redhat.com> Subject: Re: [Qemu-devel] [PATCH 00/15] QEMU KVM_GET_SUPPORTED_CPUID cleanups and fixes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: kvm@vger.kernel.org, Gleb Natapov , qemu-devel@nongnu.org, Avi Kivity , Igor Mammedov , Andreas =?iso-8859-1?Q?F=E4rber?= On Thu, Oct 04, 2012 at 05:48:52PM -0300, Eduardo Habkost wrote: > Most of this series are just cleanups that will help when making -cpu > check/enforce work properly, with some fixes. > > In addition to code movements, the main changes are: > - x2apic won't be enabled if in-kernel irqchip is disabled > (patch 10) > - CPUID feature bit filtering is done much earlier, and inside target-i386/cpu.c > (patch 13) > - CPUID leaf 7 feature bits are now filterd based on GET_SUPPORTED_CPUID too > (patch 15) > > Eduardo Habkost (15): > i386: kvm: kvm_arch_get_supported_cpuid: move R_EDX hack outside of > for loop > i386: kvm: kvm_arch_get_supported_cpuid: clean up has_kvm_features > check > i386: kvm: kvm_arch_get_supported_cpuid: use 'entry' variable > i386: kvm: extract register switch to cpuid_entry_get_reg() function > i386: kvm: extract CPUID entry lookup to cpuid_find_entry() function > i386: kvm: extract try_get_cpuid() loop to get_supported_cpuid() > function > i386: kvm: kvm_arch_get_supported_cpuid: replace if+switch with > single 'if' > i386: kvm: set CPUID_EXT_HYPERVISOR on kvm_arch_get_supported_cpuid() > i386: kvm: set CPUID_EXT_TSC_DEADLINE_TIMER on > kvm_arch_get_supported_cpuid() > i386: kvm: x2apic is not supported without in-kernel irqchip > i386: kvm: mask cpuid_kvm_features earlier > i386: kvm: mask cpuid_ext4_features bits earlier > i386: kvm: filter CPUID feature words earlier, on cpu.c > i386: kvm: reformat filter_features_for_kvm() code > i386: kvm: filter CPUID leaf 7 based on GET_SUPPORTED_CPUID, too > > kvm.h | 1 + > target-i386/cpu.c | 30 +++++++++++ > target-i386/kvm.c | 153 ++++++++++++++++++++++++++++++++---------------------- > 3 files changed, 122 insertions(+), 62 deletions(-) Applied to uq/master, thanks.