From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wanpeng Li Subject: Re: [PATCH v6 2/2] KVM: nVMX: nested TPR shadow/threshold emulation Date: Fri, 22 Aug 2014 07:30:29 +0800 Message-ID: <20140821233029.GA2420@kernel> References: <1408621610-9665-1-git-send-email-wanpeng.li@linux.intel.com> <1408621610-9665-2-git-send-email-wanpeng.li@linux.intel.com> <53F5E720.9000308@redhat.com> Reply-To: Wanpeng Li Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Marcelo Tosatti , Gleb Natapov , Zhang Yang , kvm@vger.kernel.org, linux-kernel@vger.kernel.org To: Paolo Bonzini Return-path: Content-Disposition: inline In-Reply-To: <53F5E720.9000308@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org Hi Paolo, On Thu, Aug 21, 2014 at 02:33:36PM +0200, Paolo Bonzini wrote: [...] >> return; >> @@ -7847,6 +7859,27 @@ static bool nested_get_vmcs12_pages(struct kvm_vcpu *vcpu, >> vmx->nested.apic_access_page = >> nested_get_page(vcpu, vmcs12->apic_access_addr); >> } >> + >> + if (nested_cpu_has(vmcs12, CPU_BASED_TPR_SHADOW)) { > >Missing PAGE_ALIGNED check. I should have spotted this before, so I >just fixed it and will commit the patch soon. > Maybe I misunderstand your comments "On real hardware you could point the virtual-APIC page to an invalid address." http://lists.openwall.net/linux-kernel/2014/08/07/344 >Thanks for your persistence! > Thanks for your great help. ;-) Regards, Wanpeng Li >Paolo