From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH][retry 3] Add support for Pause Filtering to AMD SVM Date: Wed, 20 May 2009 11:10:16 +0200 Message-ID: <1242810616.26820.562.camel@twins> References: <200905050909.58583.mark.langsdorf@amd.com> <200905071000.14038.mark.langsdorf@amd.com> <200905081203.55484.mark.langsdorf@amd.com> <200905191356.37071.mark.langsdorf@amd.com> <1242806386.26820.549.camel@twins> <4A13C199.5020400@redhat.com> <1242808954.26820.556.camel@twins> <4A13C40B.8080608@redhat.com> <1242809657.26820.559.camel@twins> <4A13C7B0.10507@redhat.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Mark Langsdorf , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org To: Avi Kivity Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:53302 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754525AbZETJKQ (ORCPT ); Wed, 20 May 2009 05:10:16 -0400 In-Reply-To: <4A13C7B0.10507@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, 2009-05-20 at 12:04 +0300, Avi Kivity wrote: > Peter Zijlstra wrote: > >> It's a fully virtualized guest. There's no way to get this without > >> patching the guest kernel. > >> > > > > Yes there is.. virtualized monitor-wait stuff coupled with a > > monitor-wait based spinlock implementation. > > > > That only works if the guest uses monitor/mwait. Not all of the guests > are under our control. I don't know whether Windows uses > monitor/mwait. Further, we don't have timed exits on mwait like we do > with pause. Ugh, you really care about crap like windows? > I've also heard that monitor/mwait are very slow and only usable on idle > loop stuff. Yeah, current implementations suck, doesn't mean it has to stay that way. > > Once we go change silicon, you might as well do it right. > > > > None of the major x86 vendors are under my control. I thought this patch came from AMD, who changed their silicon so 'solve' one of these virt problems. /me goes hide again, and pretend all of virt doesn't exist :-) Think happy thoughts.