From: "Nadav Har'El" Subject: Re: [PATCH 15/27] nVMX: Prepare vmcs02 from vmcs01 and vmcs12 Date: Tue, 8 Feb 2011 14:36:19 +0200 Message-ID: <20110208123619.GA586@fermat.math.technion.ac.il> References: <1287309814-nyh@il.ibm.com> <201010171011.o9HABFP1029474@rice.haifa.ibm.com> <4CBB037A.2050906@redhat.com> <20110208121315.GA28897@fermat.math.technion.ac.il> <4D513696.10501@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, gleb@redhat.com To: Avi Kivity Return-path: Received: from mailgw12.technion.ac.il ([132.68.225.12]:56498 "EHLO mailgw12.technion.ac.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751113Ab1BHMgX (ORCPT ); Tue, 8 Feb 2011 07:36:23 -0500 Content-Disposition: inline In-Reply-To: <4D513696.10501@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Feb 08, 2011, Avi Kivity wrote about "Re: [PATCH 15/27] nVMX: Prepare vmcs02 from vmcs01 and vmcs12": > >So isn't the first setting, in vmx_vcpu_setup(), redundant? > > It is. It's just historical baggage - these lines were introduced about > 20 commits into kvm development (af9d6e204919016ca in qemu-kvm.git) and > never removed, even after it was fixed to be per-cpu. Thanks. As part of my patch, I'm splitting off a function vmx_set_constant_host_state() from vmx_vcpu_setup() (the same function will also be used to set up the host state on vmcs02). So I'll remove that redundant setting from this function. -- Nadav Har'El | Tuesday, Feb 8 2011, 4 Adar I 5771 nyh@math.technion.ac.il |----------------------------------------- Phone +972-523-790466, ICQ 13349191 |Quotation, n.: The act of repeating http://nadav.harel.org.il |erroneously the words of another.