Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5449435yba; Mon, 13 May 2019 11:01:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsl9GHpg2qd4anxWrYRUQoOoLIAPYLVNe6myB8LEZtvhoESkXwm9T1nZv/MBivf+U6Z6b5 X-Received: by 2002:a65:56cb:: with SMTP id w11mr12925436pgs.236.1557770490657; Mon, 13 May 2019 11:01:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557770490; cv=none; d=google.com; s=arc-20160816; b=KqMecCELfpbYrudQdrnTwXLYECRIYv0m5yyTh7tGI+fFCp0AhpOSFq9EeXoC9SgG12 +ksv2eMt3ipEWlePi7r+9S+IdqQzSyOF/r5ET3Zs/9zO7hNpeUiecOdjlQ2029gjwhve HBxG83Lpg5othTkRdV1QSCAXESBD/MywKpOtby2yd2/RglT17ZkWUnNh1r+w0OqaNOuB PwF3raKKBb+8qDKlMPVeK+sYc/9TxfKL2x8Dy3uPb67hv0J3Uf0BG+cOyxqqVAEuxY/+ dNhdrqwG5LmavYAkL8z9t+QNZMQCCSbi+kgyTiGJnS2vZLJ6ZfDS78EdmWnaei0pRp/I qEdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ORppQGlcfBf3WPuXFmYvQJ48TDHuiN6acZ7PdcalqYE=; b=qI9jy/D6Om+7OmQCiUW8fKppIBxEhe3J85npa04Sm0zrS3hvf19rR34C6yS/aX6Zmt KhoMlvDD5Vg3/AyApEkib1zVoOXYWd9Qd+6QBro08Up6G1eyUZnIFILh6hw2weBpnLRC 0ScNKk0y7qpOJzUwkpr6umjR7+f6oJfc3gw2icEqCj0aRmcmznjY+Jpw63IS586TbNu2 voklk8idIVsks3tCb1ARgGaN1woMyAfeEK4FKaOGZRFgH7gn+qahQxnf4p7Snq4JW0Uo KM5sFaXG7i56Y/YvinVwF2EY2psPnN0mL6/I2a3SLaUQqvUklj4kJC/zQ8ERuuT+30BF 7vGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fyu+eEyt; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n85si17583755pfi.288.2019.05.13.11.01.14; Mon, 13 May 2019 11:01:30 -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=@kernel.org header.s=default header.b=fyu+eEyt; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729707AbfEMPvT (ORCPT + 99 others); Mon, 13 May 2019 11:51:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:37320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729558AbfEMPvT (ORCPT ); Mon, 13 May 2019 11:51:19 -0400 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DDAE9214C6 for ; Mon, 13 May 2019 15:51:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557762678; bh=VO5BWtK/NhFMUgfePe27x1pllPiG08W6xyS+rnVVOZ8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=fyu+eEytsVWPHDXWOsfR/TJPqHCmbiYlK1Fnjgm+jpYglv6rVvm/+qXEvZm5ZT01+ Y5BbMjwW0+hAE1oCsSINHifec3q/3FiaUs/zGMRfMHVEN4gqXnxNhy75utPulzWWZm sbdTaN4z+XaFRnmavwNqVm51mR8QZNfjMl4l8AIg= Received: by mail-wr1-f42.google.com with SMTP id c5so15840316wrs.11 for ; Mon, 13 May 2019 08:51:17 -0700 (PDT) X-Gm-Message-State: APjAAAWxeMxmA63vHV9V5n5jJNPuoeJyKR9f/we02NpK1zNY3AatMEPs cVmyKaw9uuhNeSH5OoMf8nngHHe78F7EtXSUF3P/Fw== X-Received: by 2002:adf:ec42:: with SMTP id w2mr17344670wrn.77.1557762676520; Mon, 13 May 2019 08:51:16 -0700 (PDT) MIME-Version: 1.0 References: <1557758315-12667-1-git-send-email-alexandre.chartre@oracle.com> <1557758315-12667-7-git-send-email-alexandre.chartre@oracle.com> In-Reply-To: <1557758315-12667-7-git-send-email-alexandre.chartre@oracle.com> From: Andy Lutomirski Date: Mon, 13 May 2019 08:51:04 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC KVM 06/27] KVM: x86: Exit KVM isolation on IRQ entry To: Alexandre Chartre Cc: Paolo Bonzini , Radim Krcmar , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Dave Hansen , Andrew Lutomirski , Peter Zijlstra , kvm list , X86 ML , Linux-MM , LKML , Konrad Rzeszutek Wilk , jan.setjeeilers@oracle.com, Liran Alon , Jonathan Adams Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? --Andy