From patchwork Tue Jan 12 07:49:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhenwei pi X-Patchwork-Id: 12012599 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=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 978AEC433DB for ; Tue, 12 Jan 2021 07:51:58 +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 E4C8C22D73 for ; Tue, 12 Jan 2021 07:51:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E4C8C22D73 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]:39816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzET6-0003CD-Ud for qemu-devel@archiver.kernel.org; Tue, 12 Jan 2021 02:51:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzEQu-0001Yq-OH for qemu-devel@nongnu.org; Tue, 12 Jan 2021 02:49:40 -0500 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]:35656) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kzEQo-0002fW-Vt for qemu-devel@nongnu.org; Tue, 12 Jan 2021 02:49:37 -0500 Received: by mail-pj1-x102b.google.com with SMTP id b5so1146879pjl.0 for ; Mon, 11 Jan 2021 23:49:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SBBrdrqRqLZbtY/JIW+pUTNmAvBkkd7n15BhnNFw+y4=; b=pI7kkHAe/c4EvtE0mPNvfIpja6+0H40p5UHDicRON6OnfUp8WzSlYhfFciDFZmaq9l CBBZmoUEtuFXPrIk5bChO4pwq1UvaUr7GXCw6lVvbviJ7iia+UsH8gFI/oEavHrUYsLq Via3SDYb3DGEPPaVp6Vwnrwrurd0TLRBIxZqY3aJyqkVvXkoCLw1Yf6q4D4LGTWK7+m1 7A/S5k/GAzO+YKfjAS8qjlUvjvEA0V8RrKDCio9qcgF69UI2mnFnLW+c+gXgoZh9rLFY 9rN0xhHuCk4LRSY6QI5zIgvgfJNT2kxt9gvB/Lban8Kr40gBoUVu+m2UwgAcbNREz33v sf7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SBBrdrqRqLZbtY/JIW+pUTNmAvBkkd7n15BhnNFw+y4=; b=l36FSJM7fHK3PFC269V3d/j/S0vtn2YkJN24j+kAbHneM6I7ge8kDU6reP8X+ppmFJ 54Xqou+kN5fxRlCbu7+5k7eoM9xYddpyjqAonlZg8Cc2XWBwrOoTgxV6LZ9kJCmsldwP QV5l217BLGiyzy7Zsr0eoi5OPNUq2IYg+dHkJxWc8WFcyiIzCRcYjxXIrcjOgteEehqd omCi9qh24W+8dbLWs0XqXnEwYyk5v32vYH6YOMLyygZ+RiXGpzQ5WiCHMICXY/UzCGau 6ujdJraCvGGZ4eVOPfPvV2DUXLNRHao7jIvNmPpg+/f1ytwkoLi4SmuCu+zM4nlF+HQ6 Lb0A== X-Gm-Message-State: AOAM531KfztBnpUAR6Nz8N6+MGrR6LzFwFsOgSgPRXv/HZrF+OGj6qZm kq6OiqR2dhYhzvlwkmrnd68aQA== X-Google-Smtp-Source: ABdhPJzhdA0GolRi9PX5GJQIydHRWUAU+kRa0xSdGlMiSMe427zYTv1Qjzgtzs9Zm67c1hiQhojaVg== X-Received: by 2002:a17:90a:4817:: with SMTP id a23mr3239782pjh.16.1610437772781; Mon, 11 Jan 2021 23:49:32 -0800 (PST) Received: from always-libai.bytedance.net ([61.120.150.71]) by smtp.gmail.com with ESMTPSA id 193sm2144582pfz.36.2021.01.11.23.49.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 23:49:32 -0800 (PST) From: zhenwei pi To: kbusch@kernel.org, its@irrelevant.dk, kwolf@redhat.com, mreitz@redhat.com Subject: [PATCH v2 0/1] add smart_critical_warning property for nvme Date: Tue, 12 Jan 2021 15:49:23 +0800 Message-Id: <20210112074924.217862-1-pizhenwei@bytedance.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=pizhenwei@bytedance.com; helo=mail-pj1-x102b.google.com 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=unavailable 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: zhenwei pi , philmd@redhat.com, qemu-devel@nongnu.org, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" v1 -> v2: Suggested by Philippe & Klaus, set/get smart_critical_warning by QMP. v1: Add smart_critical_warning for nvme device which can be set by QEMU command line to emulate hardware error. Zhenwei Pi (1): hw/block/nvme: add smart_critical_warning property hw/block/nvme.c | 28 ++++++++++++++++++++++++++++ hw/block/nvme.h | 1 + 2 files changed, 29 insertions(+)