Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp524300ybb; Wed, 8 Apr 2020 04:51:48 -0700 (PDT) X-Google-Smtp-Source: APiQypK0F8H9LuJQJWqeCXOPScGIElOfPbXxnsvPfudqCvI9IFeE7OTkF/c5kOr3qADM2epPVM6R X-Received: by 2002:a05:6830:1f39:: with SMTP id e25mr5414069oth.135.1586346708219; Wed, 08 Apr 2020 04:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586346708; cv=none; d=google.com; s=arc-20160816; b=cE1heiFQDwzNGLL5zgwt9EkFdAjsoBBlsX/MihB5JsSFDlMa+GMLS5FZWw9JrjPWxh JAmUA9OQCMijuyN8C222K1YGRMQySVkIddeW++ej+7PbIWKo6sD17BonnwfxCu9FTko1 VVftNmL8YPfqoDO7S1uVzjFg2Y+9LFadPsoFvtwoqyN/37Zf0eMpSCF6tcyns9YLqz7v DFwqH/uQI86y/wsOiI/hS1o+wRNfAW0W6zypiy2c1uvezIvGIkEa8U11AnlR9Au88aAR uu7xytndCVwQWX3zs0A7VB0J52EntTz6PCUvu7A+ZdR/9ixhYLPLaiZizFotvJqrEKuv ekPw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iPiVn5HowtJr85j+TBk0a/GUa/dBFzq/G2s+PBaU0UM=; b=nUBYRBgmxHR6bqeaT8OwOUzY51Zo8WmnVCaj3Qe+RzK/upekf1SQKRRACnrD31xQVq xLBAFOP8v6OJyl898UOd5Rozj2/8qLsQS59fJvm6hvHbQA/oBt0OfOGoXeZ17oIf6Tpi 8vJ9KYMxEA3dQKrnBCw6kLw9QJ+MBRX06n2VZgmvSEebHl/YBRvV1bYxOS53LaiqofZ1 lKceNn6c1PKZodqGAsUfaf47PH+g7JT2OBS4WKFUUWXV/GSKTleqIpCHGNGNOwxMWC1c RNqqyi9QZ/L8aLJkhkeRkCi0r7Rbs8r9u1qUyHWyKVDX4Knrta58HBhPirqk7mSZXGoS 3Vnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="i2+/LJpz"; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 186si2783178ooo.33.2020.04.08.04.51.34; Wed, 08 Apr 2020 04:51:48 -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=@alien8.de header.s=dkim header.b="i2+/LJpz"; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727866AbgDHJcl (ORCPT + 99 others); Wed, 8 Apr 2020 05:32:41 -0400 Received: from mail.skyhub.de ([5.9.137.197]:35764 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726605AbgDHJcl (ORCPT ); Wed, 8 Apr 2020 05:32:41 -0400 Received: from zn.tnic (p200300EC2F0A9300FDE94558DB0629D0.dip0.t-ipconnect.de [IPv6:2003:ec:2f0a:9300:fde9:4558:db06:29d0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id BCABF1EC0C89; Wed, 8 Apr 2020 11:32:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1586338358; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iPiVn5HowtJr85j+TBk0a/GUa/dBFzq/G2s+PBaU0UM=; b=i2+/LJpzUTxmAF6wtYN+zAH1EbcY0+wvaJ8uqCEqmQUqo7MiaWnH1wPSPmdVFgmWHgBsq+ 6zfY44nvZjY2KVzGmNAOLoYSH53Ib6Wd05eJvn6ohvs4XFNYDk4Pn9hzxRxOYl+LsYKlIh L9x3m87CrvfeT5rmxFSr1Uv2a0HT0HU= Date: Wed, 8 Apr 2020 11:32:35 +0200 From: Borislav Petkov To: Andy Lutomirski Cc: Thomas Gleixner , Vivek Goyal , Peter Zijlstra , Andy Lutomirski , Paolo Bonzini , LKML , X86 ML , kvm list , stable Subject: Re: [PATCH v2] x86/kvm: Disable KVM_ASYNC_PF_SEND_ALWAYS Message-ID: <20200408093235.GB24663@zn.tnic> References: <877dyqkj3h.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 On Tue, Apr 07, 2020 at 09:48:02PM -0700, Andy Lutomirski wrote: > I’m fine with the flow being different. do_machine_check() could > have entirely different logic to decide the error in PV. Nope, do_machine_check() is already as ugly as it gets. I don't want any more crap in it. > But I think we should reuse the overall flow: kernel gets #MC with > RIP pointing to the offending instruction. If there’s an extable > entry that can handle memory failure, handle it. If it’s a user > access, handle it. If it’s an unrecoverable error because it was a > non-extable kernel access, oops or panic. > > The actual PV part could be extremely simple: the host just needs to > tell the guest “this #MC is due to memory failure at this guest > physical address”. No banks, no DIMM slot, no rendezvous crap > (LMCE), no other nonsense. It would be nifty if the host also told the > guest what the guest virtual address was if the host knows it. It better be a whole different path and a whole different vector. If you wanna keep it simple and apart from all of the other nonsense, then you can just as well use a completely different vector. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette