From patchwork Sat Mar 23 04:20:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dexuan Cui X-Patchwork-Id: 10866753 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 28697922 for ; Sat, 23 Mar 2019 04:20:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ECE382A94F for ; Sat, 23 Mar 2019 04:20:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E113A2A95D; Sat, 23 Mar 2019 04:20:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 93D0D2A94F for ; Sat, 23 Mar 2019 04:20:37 +0000 (UTC) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 343A8211E95BF; Fri, 22 Mar 2019 21:20:37 -0700 (PDT) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::730; helo=mail-qk1-x730.google.com; envelope-from=dexuan.cui@gmail.com; receiver=linux-nvdimm@lists.01.org Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A2E63211E95B2 for ; Fri, 22 Mar 2019 21:20:35 -0700 (PDT) Received: by mail-qk1-x730.google.com with SMTP id s81so2434723qke.13 for ; Fri, 22 Mar 2019 21:20:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8LurXoEV//LuNEjfIfht9CNCDSvSheTrYVjJ05Xbp/E=; b=RKYMQZ01xqhS33kOWnRkXs33zKaWorLKQtOay8WRwbCAytnuxlLDQoq9PYnOqXOF3w 9xfYEph7MqvNHmhs1OUEDyaiICIFNG/HsZ+VGhJis82r9x/HCeidIpUyoBqT4qbddVtQ m81tI+IpMGYs/enJqaA1TjMldsjRy2c8gDQ7LDrLZsNvVH0pEwjo7QVevrbJbA1W4lkl O+j9d8bNvPcaJgVhyVsfSKmQ0yzDgyCA+oztXcgFnGaJhntoXk8BZJ2X2pxt35a6w9N1 pjrc+pHJvviftQxdxvUAXhwiBlAsjS84dQvTSuLz86vou0UXqBJjptv3C2nMSg066zhb IVIg== 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=8LurXoEV//LuNEjfIfht9CNCDSvSheTrYVjJ05Xbp/E=; b=d9mm/snzFnJ8kW/E04gij8xTO+/yoLnNWOD1izTVD/lhAVLJg5zW2YmhkZXyVczFuj Dw7UJ+3AcLHTY3/QVQeppd5dKdBnaK0B1ZJoZRlmEuLjnlLm/jVyfXEVEoE+ZUaC92cg HZONCWfT5W3GCdJqmY5oR2tA09OcKrh3rRrZiK4jndTLn9dWvVY/QoG71Wl7NXzMaJ+j kxyA+SKkBfF8QzYKe3xDoTuwuCUGS1+RGGbIdCqzb5WV52p7IaQFU46ruYwqbrjpT3y0 Qu+2dMXGtsBHnw6LQtxukEN7zQOF7ZG9fkFd/2tISWuzfNI8dUaDtIT0+RXF/LIxSNtS 5MXg== X-Gm-Message-State: APjAAAWCDhW08aADWzxBKo7kU9QN2//zLuZqTCQ8nBWLhQ8v/Xl/I2Fi iF1T3JSH1WDhyBozb0SBteQ= X-Google-Smtp-Source: APXvYqw+U//TVXpciSguGLZSnMyJcK7p+K7xqzaTNumH0cwSBSv8uWYxSLfWMwDulrLVW5bH9pRvwQ== X-Received: by 2002:a37:9e0d:: with SMTP id h13mr10448425qke.135.1553314834270; Fri, 22 Mar 2019 21:20:34 -0700 (PDT) Received: from linuxonhyperv2.linuxonhyperv.com (ip-107-180-71-197.ip.secureserver.net. [107.180.71.197]) by smtp.gmail.com with ESMTPSA id k12sm6919699qti.38.2019.03.22.21.20.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Mar 2019 21:20:33 -0700 (PDT) From: Dexuan Cui X-Google-Original-From: Dexuan Cui To: vishal.l.verma@intel.com, dan.j.williams@intel.com, dave.jiang@intel.com, linux-nvdimm@lists.01.org, mikelley@microsoft.com Subject: [ndctl PATCH v3 0/5] Add the support for Hyper-V virtual NVDIMM Date: Sat, 23 Mar 2019 04:20:24 +0000 Message-Id: <20190323042028.4310-1-decui@microsoft.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qi.fuli@fujitsu.com Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Virus-Scanned: ClamAV using ClamSMTP Hi all, I polished the first 2 patches following Vishal and Dan's comments. And, I dropped this v2 patch: [ndctl,v2,3/4] ndctl, lib: implement ndctl_dimm_get_cmd_family() and re-implemented the support for "ndctl monitor" for Hyper-V by following Vishal/Dan's suggestions. Thank you! Please review the patchset. Dexuan Cui (5): libndctl: Implement the "smart_get_health" dimm-op for Hyper-V libndctl: Implement the smart_get_shutdown_count dimm-op for Hyper-V ndctl, monitor: Don't require the support of ND_CMD_SMART_THRESHOLD libndctl: Add a new dimm-op cmd_is_supported() libndctl: Implement the "cmd_is_supported" dimm-op for Hyper-V ndctl/lib/Makefile.am | 1 + ndctl/lib/hyperv.c | 183 ++++++++++++++++++++++++++++++++++++++++++ ndctl/lib/hyperv.h | 38 +++++++++ ndctl/lib/libndctl.c | 7 ++ ndctl/lib/private.h | 4 + ndctl/monitor.c | 12 +-- ndctl/ndctl.h | 1 + 7 files changed, 238 insertions(+), 8 deletions(-) create mode 100644 ndctl/lib/hyperv.c create mode 100644 ndctl/lib/hyperv.h