Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6055781yba; Tue, 14 May 2019 00:30:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDlHBSEDL7E4TpFAzcR6N6VMdKA3IkBbAhOsVhGtrkMtiZkg/RGB1ZJg8bvS7sSc2rgKKx X-Received: by 2002:a63:541d:: with SMTP id i29mr36195409pgb.174.1557819054897; Tue, 14 May 2019 00:30:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557819054; cv=none; d=google.com; s=arc-20160816; b=qFu8riGyxdqJHSMBt1nZ/YDQGAcX6CWndNe8DI4QcmY9WlrV0HKxzuaVfHc/gcAFAe Za8XInJ4tpfkI3+tAVAGiu2r6m1NH8DzaoGI4RMsP8HepJm9A8r3zoilp9aZzZErpHM7 /lNUDmlpMMWHiiQ5kpr9MjzOHaZ8JUzVw9FPAMX/xWVpxr+Lve1Si0EEYKWCE9Gs81dW f+V2GvqvgHl1Ru9N3ybCfV2DVkZFl82pEevJWOGV1Qk1PtACEUfRSpL45dmaYRsA+WOR bwV557QwmOni2xe36bkzjiCLBj4RpsSQHqoWvboWpIwSwOlrWGXYXZWas0dUwE1FhdZV cDQA== 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=LyILN8tiqYOrBbTwx/bEvqalqGDEJJBbWfhDeckm5hE=; b=vzXlgjh1uLJybEXb66AJlp2s8zDfmPBSLQgEZ9uNXjdI+b9Y9LN64YryQYwvIh2tNG iknq0I9rIp/Qc0Wor9rv96EIeXjzl8L9yckZOHDECwsMexTMp9aoofhCAVNTdD+fop3l p1vXmlclqOVVKDNU/kfog4HmhRvyXImwRKub7ARQX8/A/DsGd52bMihtG2MqIpBuo/83 xCNW/R4brUJbWLZhS/517BRczaJI+i9jcLi8sc8uqgMbFt+1uj8v8hPvRm+sinI4ntWZ 9CF8Y6qxu1uQFt3sUZCck2Mhec1z0SRxTrzk5G6leGD29eSSLVzS7+o79VHtBG5SQq9m XaIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Dzz9eun9; 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 q4si20214971pgc.108.2019.05.14.00.30.39; Tue, 14 May 2019 00:30:54 -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=bombadil.20170209 header.b=Dzz9eun9; 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 S1726441AbfENH3u (ORCPT + 99 others); Tue, 14 May 2019 03:29:50 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:59736 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726229AbfENH3t (ORCPT ); Tue, 14 May 2019 03:29:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=LyILN8tiqYOrBbTwx/bEvqalqGDEJJBbWfhDeckm5hE=; b=Dzz9eun9Mdy9wxo6bjQ/SIsbt oaxyTesAJhv9qhYG29ELdIzQ8B/4GLPi0S8UY+SnAcrWsieohzt9xVLpRhitf05XQyxO7ZvDUpA0D cS8cXr+iCRBYbcZyZ7yfxlixVscm0v/7u4FMWGSfjFQof4+63mREl05GW8UbuYtl0yzm5KhC518wa 3K0+dFcGdKuj0Q3+Da79oPBpMcssZqcdi8szEOuBHxkpbs5D9EZOYRhpClyX/WmZZ7XT/F5ssJ6Il DBeWy+3TfcJ/0K1sCsfibvbpOdBb6QU26+YWbFL59jn27d7emM4RUrVU80JjsfqyYCnyCGrQaB3VT WW2asI+rg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hQRsd-00054W-Bb; Tue, 14 May 2019 07:29:43 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id B13822029F87A; Tue, 14 May 2019 09:29:41 +0200 (CEST) Date: Tue, 14 May 2019 09:29:41 +0200 From: Peter Zijlstra To: Liran Alon Cc: Andy Lutomirski , Alexandre Chartre , Paolo Bonzini , Radim Krcmar , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Dave Hansen , kvm list , X86 ML , Linux-MM , LKML , Konrad Rzeszutek Wilk , jan.setjeeilers@oracle.com, Jonathan Adams Subject: Re: [RFC KVM 00/27] KVM Address Space Isolation Message-ID: <20190514072941.GG2589@hirez.programming.kicks-ass.net> References: <1557758315-12667-1-git-send-email-alexandre.chartre@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 (please, wrap our emails at 78 chars) On Tue, May 14, 2019 at 12:08:23AM +0300, Liran Alon wrote: > 3) From (2), we should have theoretically deduced that for every > #VMExit, there is a need to kick the sibling hyperthread also outside > of guest until the #VMExit is completed. That's not in fact quite true; all you have to do is send the IPI. Having one sibling IPI the other sibling carries enough guarantees that the receiving sibling will not execute any further guest instructions. That is, you don't have to wait on the VMExit to complete; you can just IPI and get on with things. Now, this is still expensive, But it is heaps better than doing a full sync up between siblings.