From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH 2/2] KVM: x86: Avoid issuing wbinvd twice Date: Mon, 1 Nov 2010 15:57:26 -0200 Message-ID: <20101101175726.GC4484@amt.cnet> References: <4CCEBA29.2050606@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , kvm , Sheng Yang To: Jan Kiszka Return-path: Received: from mx1.redhat.com ([209.132.183.28]:13186 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752822Ab0KASJI (ORCPT ); Mon, 1 Nov 2010 14:09:08 -0400 Content-Disposition: inline In-Reply-To: <4CCEBA29.2050606@web.de> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, Nov 01, 2010 at 02:01:29PM +0100, Jan Kiszka wrote: > From: Jan Kiszka > > Micro optimization to avoid calling wbinvd twice on the CPU that has to > emulate it. As we might be preempted between smp_call_function_many and > the local wbinvd, the cache might be filled again so that real work > could be done uselessly. > > Signed-off-by: Jan Kiszka Applied both, thanks.