From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: KVM: VMX: flush TLB with INVEPT on cpu migration Date: Thu, 22 Oct 2009 17:10:51 +0200 Message-ID: <4AE075FB.3090605@redhat.com> References: <20091001221658.GA22916@amt.cnet> <200910210318.27624.max@love2party.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , kvm To: Max Laier Return-path: Received: from mx1.redhat.com ([209.132.183.28]:27213 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755670AbZJVPKw (ORCPT ); Thu, 22 Oct 2009 11:10:52 -0400 In-Reply-To: <200910210318.27624.max@love2party.net> Sender: kvm-owner@vger.kernel.org List-ID: On 10/21/2009 03:18 AM, Max Laier wrote: > On Friday 02 October 2009 00:16:58 you wrote: > >> It is possible that stale EPTP-tagged mappings are used, if a >> vcpu migrates to a different pcpu. >> >> Set KVM_REQ_TLB_FLUSH in vmx_vcpu_load, when switching pcpus, which >> will invalidate both VPID and EPT mappings on the next vm-entry. >> > Thank you - I was at the brink of a nervous break-down before discovering > this. Maybe it would help for the future to add a comment to > ept_misconfig_inspect_spte that explains that this might be caused by out of > sync tlbs, too (esp. when it doesn't show an apparent cause of the misconfig) > In fact ept_misconfig_inspect_spte() was added in order to track down this bug, so it will probably be removed in the future. -- error compiling committee.c: too many arguments to function