Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71342C43463 for ; Mon, 21 Sep 2020 02:23:37 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D520A2076E for ; Mon, 21 Sep 2020 02:23:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=bytedance-com.20150623.gappssmtp.com header.i=@bytedance-com.20150623.gappssmtp.com header.b="W/FzUPlH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D520A2076E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bytedance.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:35142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKBUO-0002Ua-05 for qemu-devel@archiver.kernel.org; Sun, 20 Sep 2020 22:23:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKBTd-00024r-0w for qemu-devel@nongnu.org; Sun, 20 Sep 2020 22:22:49 -0400 Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]:38493) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kKBTY-0000Jq-IY for qemu-devel@nongnu.org; Sun, 20 Sep 2020 22:22:46 -0400 Received: by mail-pj1-x1043.google.com with SMTP id u3so6348014pjr.3 for ; Sun, 20 Sep 2020 19:22:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=2W1I0uAm+1POor6UtKbJVyr/Nv8e6JyklZ++7kOlyDc=; b=W/FzUPlHW/ZY3P98Obau/VYJRZyTzjTnYR2pUWSXqaQV2Xfe2YhWM1O+VMyzMPtuNM gDlF2ODdz86iPHxqBNoOGhpRXeMh8LrZv8WdHSbBnrwHas8vmdOxVTar7ta5LMSOft6p 3uYPmBOyGnGGUAown1mKNROcMKht4UVwjAwC7D+cs7FtpNpIDf+pelqby4Y+MqwAS3sl RBDm3hiUYwZGNDwffossyEYuY9ifji1gEmLDlNHm7yulGWjwrcUslX84qRTKx158txBE FcDcU8+UCfw3CMRetSiWipaUFVwLn1kp/jVWdCen4nseLkb6v5N+szNd7Deuj1C4qQlz h5mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2W1I0uAm+1POor6UtKbJVyr/Nv8e6JyklZ++7kOlyDc=; b=i0PudaUq2qv5ircetLNwH6dP5i3XDvLrk6oObiuYaIkVG5/UhmNF9pOPanK9qOsfp/ w2BWMvOZh6LoOSE6ti/wGqUGrS86MpplZbL8ryPCKrslAJZ1q2DtBm3w/TFGcvK7b4p3 ykZTgyCcYnj2FB0Az2JeVft5FhueiB82cy57ifPXHzxvdT9NJimAeJ7jpUFTXsfc5zBY rmSSt/mt3CVNGScIZMSoccFL4DXfNi+8Pf/4G1R9dMmLmhWH6rAj75avTpBsCwH1Zb/u 3xJzxWuStsWDCRppUw5Ihc8KhROqd5+MO1UZinPr2V8LibldzTEz+6FWeD1pckcwru6L Xrig== X-Gm-Message-State: AOAM533uneAZWGJoRxhe0EQGQLOe9rC9pA+L4oW3+ZDOZ+LdkjeT4lVR GkRf0vJpi08C557addFsKDPc2w== X-Google-Smtp-Source: ABdhPJyU8Em9II/6I72wzoHBy2NptA+/68YNGPyTxCX7elFYgS+LW2uo+auX+G1pSNKCFSYA28tzKg== X-Received: by 2002:a17:90a:9912:: with SMTP id b18mr24024458pjp.192.1600654962267; Sun, 20 Sep 2020 19:22:42 -0700 (PDT) Received: from [10.2.218.189] ([61.120.150.75]) by smtp.gmail.com with ESMTPSA id z129sm9816585pgb.84.2020.09.20.19.22.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Sep 2020 19:22:41 -0700 (PDT) Subject: ping: [PATCH 0/3] add MEMORY_FAILURE event To: armbru@redhat.com, pbonzini@redhat.com, mtosatti@redhat.com References: <20200914134321.958079-1-pizhenwei@bytedance.com> From: zhenwei pi Message-ID: Date: Mon, 21 Sep 2020 10:22:37 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20200914134321.958079-1-pizhenwei@bytedance.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1043; envelope-from=pizhenwei@bytedance.com; helo=mail-pj1-x1043.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi, A patchset about handling 'MCE' might have been ignored, can anyone tell me whether the purpose is reasonable? https://patchwork.kernel.org/cover/11773795/ On 9/14/20 9:43 PM, zhenwei pi wrote: > Although QEMU could catch signal BUS to handle hardware memory > corrupted event, sadly, QEMU just prints a little log and try to fix > it silently. > > In these patches, introduce a 'MEMORY_FAILURE' event with 4 detailed > actions of QEMU, then uplayer could know what situaction QEMU hit and > did. And further step we can do: if a host server hits a 'hypervisor-ignore' > or 'guest-mce', scheduler could migrate VM to another host; if hitting > 'hypervisor-stop' or 'guest-triple-fault', scheduler could select other > healthy servers to launch VM. > > zhenwei pi (3): > target-i386: seperate MCIP & MCE_MASK error reason > iqapi/run-state.json: introduce memory failure event > target-i386: post memory failure event to uplayer > > qapi/run-state.json | 46 ++++++++++++++++++++++++++++++++++++++++++++++ > target/i386/helper.c | 30 +++++++++++++++++++++++------- > target/i386/kvm.c | 5 ++++- > 3 files changed, 73 insertions(+), 8 deletions(-) > -- zhenwei pi