From patchwork Tue Jun 15 14:31:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nadav Har'El X-Patchwork-Id: 106217 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5FEVe5S021610 for ; Tue, 15 Jun 2010 14:31:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757889Ab0FOObi (ORCPT ); Tue, 15 Jun 2010 10:31:38 -0400 Received: from mailgw11.technion.ac.il ([132.68.225.11]:61848 "EHLO mailgw11.technion.ac.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757794Ab0FOObh (ORCPT ); Tue, 15 Jun 2010 10:31:37 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAAsrF0yERHMG/2dsb2JhbACednG/bwKFGASDSg X-IronPort-AV: E=Sophos;i="4.53,420,1272834000"; d="scan'208";a="7585999" Received: from fermat.math.technion.ac.il ([132.68.115.6]) by mailgw11.technion.ac.il with ESMTP; 15 Jun 2010 17:31:35 +0300 Received: from fermat.math.technion.ac.il (localhost [127.0.0.1]) by fermat.math.technion.ac.il (8.12.10/8.12.10) with ESMTP id o5FEVYcQ010006; Tue, 15 Jun 2010 17:31:34 +0300 (IDT) Received: (from nyh@localhost) by fermat.math.technion.ac.il (8.12.10/8.12.10/Submit) id o5FEVYHL010005; Tue, 15 Jun 2010 17:31:34 +0300 (IDT) X-Authentication-Warning: fermat.math.technion.ac.il: nyh set sender to nyh@math.technion.ac.il using -f Date: Tue, 15 Jun 2010 17:31:34 +0300 From: "Nadav Har'El" To: Avi Kivity Cc: kvm@vger.kernel.org Subject: Re: [PATCH 2/24] Add VMX and SVM to list of supported cpuid features Message-ID: <20100615143134.GB9826@fermat.math.technion.ac.il> References: <1276431753-nyh@il.ibm.com> <201006131223.o5DCNZeM012879@rice.haifa.ibm.com> <4C15E499.1010907@redhat.com> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <4C15E499.1010907@redhat.com> User-Agent: Mutt/1.4.2.2i Hebrew-Date: 3 Tammuz 5770 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 15 Jun 2010 14:31:40 +0000 (UTC) --- .before/arch/x86/kvm/vmx.c 2010-06-15 17:20:01.000000000 +0300 +++ .after/arch/x86/kvm/vmx.c 2010-06-15 17:20:01.000000000 +0300 @@ -4236,6 +4236,8 @@ static void vmx_cpuid_update(struct kvm_ static void vmx_set_supported_cpuid(u32 func, struct kvm_cpuid_entry2 *entry) { + if (func == 1 && nested) + entry->ecx |= bit(X86_FEATURE_VMX); } static struct kvm_x86_ops vmx_x86_ops = {