From: "Nadav Har'El" Subject: Re: [PATCH 05/27] nVMX: Introduce vmcs12: a VMCS structure for L1 Date: Sun, 17 Oct 2010 15:18:13 +0200 Message-ID: <20101017131813.GC14069@fermat.math.technion.ac.il> References: <1287309814-nyh@il.ibm.com> <201010171006.o9HA68SE029324@rice.haifa.ibm.com> <4CBAED4D.3000301@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]:36039 "EHLO mailgw12.technion.ac.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753045Ab0JQNSQ (ORCPT ); Sun, 17 Oct 2010 09:18:16 -0400 Content-Disposition: inline In-Reply-To: <4CBAED4D.3000301@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, Oct 17, 2010, Avi Kivity wrote about "Re: [PATCH 05/27] nVMX: Introduce vmcs12: a VMCS structure for L1": > >+ if(to_vmx(vcpu)->nested.current_vmptr != -1ull){ > > Missing whitespace after if and before {. Sorry about that - I forgot to run checkpatch.pl on this iteration. I now fixed this, and a bunch of other small style issues. > > } > >@@ -4170,6 +4229,10 @@ static void vmx_free_vcpu(struct kvm_vcp > > struct vcpu_vmx *vmx = to_vmx(vcpu); > > > > free_vpid(vmx); > >+ if (vmx->nested.vmxon&& to_vmx(vcpu)->nested.current_vmptr != > >-1ull){ > >+ kunmap(to_vmx(vcpu)->nested.current_vmcs12_page); > >+ nested_release_page(to_vmx(vcpu)->nested.current_vmcs12_page); > >+ } > > Duplication - helper? Ok, I just moved the kunmap() into nested_release_page() - it was always called before nested_release_page. I hope that's what you meant by "duplication". -- Nadav Har'El | Sunday, Oct 17 2010, 9 Heshvan 5771 nyh@math.technion.ac.il |----------------------------------------- Phone +972-523-790466, ICQ 13349191 |Unix is user friendly - it's just picky http://nadav.harel.org.il |about its friends.