Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5528880yba; Mon, 13 May 2019 12:28:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzz/T1tKU7mV0a4k5uIfYpIHfTZ71BRp2tyPflgDws3D4wJy7noH7961SHHWPRe0Ie73Gge X-Received: by 2002:a63:d949:: with SMTP id e9mr33196394pgj.437.1557775685982; Mon, 13 May 2019 12:28:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557775685; cv=none; d=google.com; s=arc-20160816; b=o5P2/mXEBViOAkyYTl3A5HKHjEIP1L2ipxca8ia7nBtIZP6HguFaCeij3Mp+AfvizU v7qQD+hosNPHXcW4aqWILHAmxx3QYYQkdPcSuzb6hph+8eQGtMfAvQNFjTEmlAUUYnWJ TM3DEW9o+DayBtAi37yaD/p+ZN5zkT4+71raxBYmaEKVb84XTMIXtoLmC3zU0PxIUM79 XJCFW+vhLvajhonkWxgyeK9rso1HEbM/BSiYa+PDjhDhOWnVaOl5egVu/1uBfMqouAKr XMZeQ76KhNkdAnH2FNrJ4bPrujEL85ulXDY5Btd0cvx1nb3Q1rMuowrpMRMBDVP4VW4r nmzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature; bh=FYrhA7egepTfvRq1AFeM0qLEx0DR5PBRWMLgWVnJWsQ=; b=VDsptDN7bT/CrFd3aP5acabLf6iLxTF1cHTPrxldfSCBl/qI13k9xF9HqCqkuVqDjG 4P4CGJ4QEvTiYzsK1ZWsImLvCv1F1PE7V8kCvoD1V505aaoZ2oFUlBgn1lprlv5kPIid cDBp/MqSo4sfk2jwQsrxBovwmrC9L1z4W1DQ9TyTy93f61xbeuLi9zEMSmZREVc22SZx /zLwJRuAbYFKZUy8FH/W/1JoIni4sq2SkoW12qNTFO5JzxclAmHsfx/py0pJktQi1LU6 d0Stt6fTY0CkHexz5A1aYbrXrPD0EjTlNHUihlZaPO2Ypz3FEtanwCjknALMJo8HnvKC E+xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b="JM/MYBdm"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i3si16890639pgq.350.2019.05.13.12.27.41; Mon, 13 May 2019 12:28:05 -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=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b="JM/MYBdm"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730367AbfEMQ2m (ORCPT + 99 others); Mon, 13 May 2019 12:28:42 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:34916 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727774AbfEMQ2l (ORCPT ); Mon, 13 May 2019 12:28:41 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x4DGNxNv088885; Mon, 13 May 2019 16:28:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=FYrhA7egepTfvRq1AFeM0qLEx0DR5PBRWMLgWVnJWsQ=; b=JM/MYBdmNI6fFjLoGthcwpEXl9/Q6FhIqpsnCQ/BkenPG8S3EemOIYf0qHZKwH9r6swU 3W08FCV/MBFSOmti4xQvPOp8Bf8IjFwM6Ft4Xk8wc45eTYIomnnH/xdarjyLowUZdlZ7 0/jl1dVkSjbyok9Tn2nHlEu9gPiwnIxz7UJpBmh2MTDeF2Y7iO/lnwZ6kEhg+MA0egip HTkDQcfvDyFLE/STY78ukF9EWR9b5KDeLgSclCp2uP2RlVycLwSomEtzHCzJSlwK+A5K d6tT5kdeTExB5VdxFJdybuBxZc7pR8Ykx/LQ6U9q8h6+NrNWEGkyxNtbJmOJkmMrtlT3 0g== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 2sdnttg880-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 May 2019 16:28:12 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x4DGRXaG010806; Mon, 13 May 2019 16:28:11 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3020.oracle.com with ESMTP id 2se0tvngry-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 May 2019 16:28:11 +0000 Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x4DGS8t7007669; Mon, 13 May 2019 16:28:09 GMT Received: from [10.166.106.34] (/10.166.106.34) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 13 May 2019 09:28:08 -0700 Subject: Re: [RFC KVM 06/27] KVM: x86: Exit KVM isolation on IRQ entry To: Andy Lutomirski Cc: Paolo Bonzini , Radim Krcmar , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Dave Hansen , Peter Zijlstra , kvm list , X86 ML , Linux-MM , LKML , Konrad Rzeszutek Wilk , jan.setjeeilers@oracle.com, Liran Alon , Jonathan Adams References: <1557758315-12667-1-git-send-email-alexandre.chartre@oracle.com> <1557758315-12667-7-git-send-email-alexandre.chartre@oracle.com> From: Alexandre Chartre Organization: Oracle Corporation Message-ID: <64c49aa6-e7f2-4400-9254-d280585b4067@oracle.com> Date: Mon, 13 May 2019 18:28:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9256 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=923 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905130112 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9256 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=954 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905130112 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/13/19 5:51 PM, Andy Lutomirski wrote: > On Mon, May 13, 2019 at 7:39 AM Alexandre Chartre > wrote: >> >> From: Liran Alon >> >> Next commits will change most of KVM #VMExit handlers to run >> in KVM isolated address space. Any interrupt handler raised >> during execution in KVM address space needs to switch back >> to host address space. >> >> This patch makes sure that IRQ handlers will run in full >> host address space instead of KVM isolated address space. > > IMO this needs to be somewhere a lot more central. What about NMI and > MCE? Or async page faults? Or any other entry? > Actually, I am not sure this is effectively useful because the IRQ handler is probably faulting before it tries to exit isolation, so the isolation exit will be done by the kvm page fault handler. I need to check that. alex.