Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3650713ybi; Mon, 27 May 2019 03:44:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9eIHXB4rzmL4gxuklr8dSOnLZojByC4wh6m8Xm0IaUn+Mp5xr9XU5cZTiuV/M9EIsVdaW X-Received: by 2002:a62:e205:: with SMTP id a5mr97892830pfi.40.1558953881455; Mon, 27 May 2019 03:44:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558953881; cv=none; d=google.com; s=arc-20160816; b=t0CV9DI0Cuc+C4HDwlvrQ5lk2J2lOAJqMvrfXxfcssDq87iIYjw8avJhhQfgiH2rxh 6YJSF2NZtVHeqO/in+gjKuOOZAr2NBzjANyZ1q6Jtmos21qFssDVu7JdLUc4zB3YCDxo goCOK7gtl0aXDDzkXeZWn6pqlaMG9wk1kw9l1jO+T5MEWuszphO6DdLGeQhSCcgy0/nY asoi5D5nvtUsK1GEA1qomQmOLIaIP/vXcJHt9KIm0lF3/2gXrd4/TLMxuMnEY233idpZ 8IEFIDpmOJOxXI2B2X1COoCHLZvPJUlGgBqMYC9j9fVdE5NkpN79QtNKgM3C88e3vWCR tpCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fO4yzkLNvwCdtEhg2+HPTX4Reyxk7SMjLIEFxFLV1qg=; b=cY2Y4i3JqkD4NfR1bFonYbWvq+84vXhuwR4JZgeN2jsbvAFEY5aMR9dBU1hwkiRwS0 9JoQJydw4bvZKR2u1eqZtHCuOvFSSpzXVeGlasTWCrVzEhTmsiaVuw2SQ+bWabbuZ0kr HMAO5TrPYaN1HhxjsYp8hJ6QFjXLKIynOt/f7DJi07DYey33MXC6g3li8wvqHlpvYs/6 pSd949aLMyWrOBm748Q3gLYRzuAT8l/HxnTBYsGvNti84Vi6tR3hwh0drHaaYXk2lfad fZ3fbM/sGk5xGeKjixaGf1ITWsQlLTlxW9rb7UIUxvnwJOvnu9Ats5QUdF92h/Awgjm4 iNHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=pYKF21PB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x21si16820968pll.85.2019.05.27.03.44.26; Mon, 27 May 2019 03:44:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=pYKF21PB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726326AbfE0KaS (ORCPT + 99 others); Mon, 27 May 2019 06:30:18 -0400 Received: from merlin.infradead.org ([205.233.59.134]:38400 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725814AbfE0KaS (ORCPT ); Mon, 27 May 2019 06:30:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fO4yzkLNvwCdtEhg2+HPTX4Reyxk7SMjLIEFxFLV1qg=; b=pYKF21PBn82fa2rICGxiMtwQK t4RX9tPZfOsqVrIwLkSBvUDpxGCjSVECjEH9UDf1AM5h+k88M9da0PuEOcokdueJDRP1iQqcGfRL3 yizWRzNx+zl992HJ7vu9Up9W4b6bRGoSlYUszHF34bfWSRLc5SEvrZYyUYUNCM0EJeonttC6IxHRs KBBpwT9Nbx2C5jetEzCAMldcFUDk+p4WwzVmvl31HKKvxvw9Uh4jV4M1o6rIlJM62xEJvuczATKCD 139WQc112sejHLe5eAzrgqHzEgbxPMHKMorztt9WDdki8vrIW1RlAfDFZZi51r52ZUE1xbBVeqp3V eVwCt6+HA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hVCtI-0002IY-B8; Mon, 27 May 2019 10:30:05 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1B49D2027F766; Mon, 27 May 2019 12:30:03 +0200 (CEST) Date: Mon, 27 May 2019 12:30:03 +0200 From: Peter Zijlstra To: Tao Xu Cc: pbonzini@redhat.com, rkrcmar@redhat.com, corbet@lwn.net, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, sean.j.christopherson@intel.com, x86@kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, jingqi.liu@intel.com Subject: Re: [PATCH v2 1/3] KVM: x86: add support for user wait instructions Message-ID: <20190527103003.GX2623@hirez.programming.kicks-ass.net> References: <20190524075637.29496-1-tao3.xu@intel.com> <20190524075637.29496-2-tao3.xu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190524075637.29496-2-tao3.xu@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 24, 2019 at 03:56:35PM +0800, Tao Xu wrote: > This patch adds support for UMONITOR, UMWAIT and TPAUSE instructions > in kvm, and by default dont't expose it to kvm and provide a capability > to enable it. I'm thinking this should be conditional on the guest being a 1:1 guest, and I also seem to remember we have bits for that already -- they were used to disable paravirt spinlocks for example.