From mboxrd@z Thu Jan 1 00:00:00 1970 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,NICE_REPLY_A, 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 417E5C43463 for ; Mon, 21 Sep 2020 12:17:49 +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 381E420EDD for ; Mon, 21 Sep 2020 12:17:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="aSNhcRhw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 381E420EDD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:57928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKKlP-0000HQ-20 for qemu-devel@archiver.kernel.org; Mon, 21 Sep 2020 08:17:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKKdf-0005VU-Oh for qemu-devel@nongnu.org; Mon, 21 Sep 2020 08:09:47 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:43296 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kKKdc-0006Lj-HP for qemu-devel@nongnu.org; Mon, 21 Sep 2020 08:09:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600690182; 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=QqwrEnWRJ54ZKI9mJm9L4kW6WoIF50Qn62PYgy8z8lg=; b=aSNhcRhwVLrZ4MYCZpdX4aCqJvIxxsJQSp4BdXW0iOTPs3STdAKo2OsDry0s5L1Vyzzu42 p0gvOmThsgXeYaF6nFYLWFVoC4uamWgIxrYFY0V8y4r9ZklJU4JMppjqv4BZEB+fFEerIn bmMhuEf5T56FUpgabpfVJkuS8KwrWLA= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-343-f6w12cTPO7uB5jRl4xeERw-1; Mon, 21 Sep 2020 08:09:26 -0400 X-MC-Unique: f6w12cTPO7uB5jRl4xeERw-1 Received: by mail-wr1-f69.google.com with SMTP id x15so5736998wrm.7 for ; Mon, 21 Sep 2020 05:09:26 -0700 (PDT) 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=QqwrEnWRJ54ZKI9mJm9L4kW6WoIF50Qn62PYgy8z8lg=; b=PYf1FxiKqVmA1DsB1+onQLHjE7f/8QAh5K/AcU/MdEfGQSdaAka5UIRBpby7Gn/8xA q5CnaxEct5x3Vsk408bv6GlnymuPP7RaDYTJ4is4fOpeZeiSWw1LqkurQYgjZKWCaYHi d8CunhncDgachHBFbELloit/Q1MNnoWkNBsqe8GqgfyW/MZuVxYWpdURKLjdp/g5Zbqi C3+WrTQXASRBit2l4SeM22QipI/i4t4BpTN5IoyhlxKdDROdObQv4MkcWNheY+pq+B33 x0hzstaIAL65AD2DOTJTsYcAXoFOgDGrdBRFeGa46IDbkCLaiC8MpKweJibrQ/PtLPil zxcw== X-Gm-Message-State: AOAM531/DiRbLlPyukYg+5CBU4PLvz4QsoSpiThIogv3SdhvEOznCxrd KGdGtfnG9RptiF1VBZhLucaeNxYjzThaQCWRcVKTDPQIvQFHiXpu91W/mtYheRn3rar5NbjdCYe 0zTI97eUiwnldT2E= X-Received: by 2002:adf:b74b:: with SMTP id n11mr26383958wre.274.1600690165685; Mon, 21 Sep 2020 05:09:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7NFhlTZXCsuLbHHMebL/PcKYM93AXhkM6k/9gTlOzEHdZ5iC+LNlQnUmMrZMpUdil20ZoWA== X-Received: by 2002:adf:b74b:: with SMTP id n11mr26383938wre.274.1600690165476; Mon, 21 Sep 2020 05:09:25 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:d153:8d0f:94cf:5114? ([2001:b07:6468:f312:d153:8d0f:94cf:5114]) by smtp.gmail.com with ESMTPSA id 185sm20889131wma.18.2020.09.21.05.09.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Sep 2020 05:09:24 -0700 (PDT) Subject: Re: ping: [PATCH 0/3] add MEMORY_FAILURE event To: zhenwei pi , armbru@redhat.com, mtosatti@redhat.com References: <20200914134321.958079-1-pizhenwei@bytedance.com> From: Paolo Bonzini Message-ID: Date: Mon, 21 Sep 2020 14:09:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=pbonzini@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: pass client-ip=207.211.31.120; envelope-from=pbonzini@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/21 07:01:51 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.455, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, 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" On 21/09/20 04:22, zhenwei pi wrote: > 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/ Yes, it's very useful. Just one thing, "guest-mce" can be reported for both AR and AO faults. Is it worth adding a 'type' field to distinguish the two? Paolo > 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(-) >> >