Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4984786yba; Mon, 13 May 2019 03:23:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXaBXi9g+6suNn8g7NyCGsPPR+3iSVC8cAPhY0q/QEsbzQIo4OR8TXiWcu/y5cOSdYcwqC X-Received: by 2002:aa7:8ec6:: with SMTP id b6mr31732194pfr.234.1557743015120; Mon, 13 May 2019 03:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557743015; cv=none; d=google.com; s=arc-20160816; b=wkSEFNENDxDjIa535t16ffD8KrF2KjWJg/7D6KoWxvCKBPBNoR82JGJVmnsdvhNymW +kQpcyYQ7h+d4Lzn2lFPIgWpOdDYgOsBPI/BliiEnXZ1ydBGZbmulDTlI+C5Y4I6iCLk kd6BmFMnfl3a02K2AbvLMgUY/5FJl07FXI9F6s4ccQAbuiWueIKYh1T971dnVYLMu1dc mntjwm6dkYoLS4rCCSR4ZEzKjQEYQvDM0uVKoFAXeWnXrzcR5+7ZiDrWhDD1AjCVzCrW WEMbp33iqzWwrJSEpZp1QkJYb7szTN3ZrufTB6rDODonjXQYcFsJBuewGdM069s0btWl e+dA== 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=TXYVyM1elY/e/gwr441pJoxadHFYtIz0EH7uksaUA00=; b=AQbMS8lyuWdA2MFXHDK7Wqb/+WjcNAK0+9G1KaTwscPzw/TuXsA+mSWi6TB+sfU7eg MAYu3cl/tbLsm2y+QCiPYGmj4IKy2Jl0d4ne4muPcURR9jm3CiXoDP88j90ioKfhUfAf ShaNZhgt2W4pflLww5qA34f9/eAv8WapLmY6MHj0AsNlBfWOhXiVGsktlMigaD7M0jgB +73cqGSc3GNyWby3G8KnNVsBxhYKPHM3scF0AttJhpFokVxINhnJJY+yd0gMYglEa1+1 Nih9Kg4L8k7decYMwlp5I2R4PVRiIrHpsjcnTlme78qgm667jXSTVewaQWN6zy7cgx/h FBLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GQawiz8m; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6si15099953pln.54.2019.05.13.03.23.19; Mon, 13 May 2019 03:23:35 -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=@linaro.org header.s=google header.b=GQawiz8m; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728664AbfEMJoR (ORCPT + 99 others); Mon, 13 May 2019 05:44:17 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:40975 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728133AbfEMJoR (ORCPT ); Mon, 13 May 2019 05:44:17 -0400 Received: by mail-ot1-f67.google.com with SMTP id g8so11116705otl.8 for ; Mon, 13 May 2019 02:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TXYVyM1elY/e/gwr441pJoxadHFYtIz0EH7uksaUA00=; b=GQawiz8mlWxh/yf7/DiecVKQmIl48uHHnfbDs6NwSWdi9y+D4Kf5bCLwsxaGnEIUZf nrUE6T/lrxJFWLvhe10ToW17PX+6WZ7PWEf4xSPOXb8k1DSLt7O2Juet2Lgt5lC759eq g1/2yARQtJwd9CIw7tB136d5woqAAOHI8bNZLOCKr92a6YDS5/J3WlNpe+gEZ05/VpR8 xBK5t6xm5FLjWabkFaYeqqAUPHhVrHYsN5daplbQKzmXrU6omOOpWIp9oBDSDKGEQLEE NVXTCZ3tJt/VjAwmPbgBz0t9AjLNN3OsPpyEBbIDeOrWVTKi2ZQkX7y2xbus1kqxTGmq bnZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TXYVyM1elY/e/gwr441pJoxadHFYtIz0EH7uksaUA00=; b=tRU4OyOjL5uQo9251/6GK5Yd1TVff9QBZnXWxIDFTr9MPrly/c3YtVZNKziUYVp/2X 6+2Ik1FdnGqqFhE6IRHu+JLWE/QfcmlVtbNexD4RJ14TN8dr2MjMXGnb3rRPMh0kCbWF nwyZhTvKOoQzZNlgZ9nWPVOY9oewdTmuCA6DooLNZ3YH8uQmqDH+Bbjt2kFy6xD+J+eT FXLfehZFi/qXVGRob4AxtBwP8GTfqYPrs9Sd5Zhwc3iTg7NFyOfaPQBOW8hmn2Iu7khL KvaDFHR4LKxz4crcWxQidelHFRTjCoIXuPkiuXGEXEY9VtjD/gFjr55w/NWaHGcer7P7 vxmA== X-Gm-Message-State: APjAAAWz+rwU9arqdgsT0Lt9l3OE5ku846iZSnr8mfhR+L/vNoZRTo+/ POCB6nSnejv2nWJdbYjzYVc048mSCYhF06XOvDGc1Q== X-Received: by 2002:a9d:6855:: with SMTP id c21mr14592075oto.151.1557740656833; Mon, 13 May 2019 02:44:16 -0700 (PDT) MIME-Version: 1.0 References: <1557728917-49079-1-git-send-email-gengdongjiu@huawei.com> In-Reply-To: <1557728917-49079-1-git-send-email-gengdongjiu@huawei.com> From: Peter Maydell Date: Mon, 13 May 2019 10:44:05 +0100 Message-ID: Subject: Re: [RFC PATCH V2] kvm: arm64: export memory error recovery capability to user space To: Dongjiu Geng Cc: Christoffer Dall , Marc Zyngier , James Morse , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Jonathan Corbet , Catalin Marinas , Will Deacon , kvm-devel , "open list:DOCUMENTATION" , lkml - Kernel Mailing List , arm-mail-list , kvmarm@lists.cs.columbia.edu, Zheng Xiang 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, 13 May 2019 at 07:32, Dongjiu Geng wrote: > > When user space do memory recovery, it will check whether KVM and > guest support the error recovery, only when both of them support, > user space will do the error recovery. This patch exports this > capability of KVM to user space. > > Cc: Peter Maydell > Signed-off-by: Dongjiu Geng > --- > v1->v2: > 1. check whether host support memory failure instead of RAS capability > https://patchwork.kernel.org/patch/10730827/ > > v1: > 1. User space needs to check this capability of host is suggested by Peter[1], > this patch as RFC tag because user space patches are still under review, > so this kernel patch is firstly sent out for review. > > [1]: https://patchwork.codeaurora.org/patch/652261/ > --- I thought the conclusion of the thread on the v1 patch was that userspace doesn't need to specifically ask the host kernel if it has support for this -- if it does not, then the host kernel will just never deliver userspace any SIGBUS with MCEERR code, which is fine. Or am I still confused? thanks -- PMM