Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3468555ybl; Mon, 19 Aug 2019 19:45:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHCCkzd79lhSV8lu3zxvuFBbpPtaFYmyT//SbrmI6FnvsRq6JB19Ma+EV5UhROrvQYeDy8 X-Received: by 2002:a17:90a:a610:: with SMTP id c16mr23013724pjq.54.1566269124827; Mon, 19 Aug 2019 19:45:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566269124; cv=none; d=google.com; s=arc-20160816; b=VBgBARU46GhBRqSo7RTCs3PZtvWpI74EtHkw1ID3bwSsWkOItstLagBTaOYEDgwgTK uheW3EvF/lA2GEV0C4ainmdI+Oi0QcTbG59e/iuDhTj8mp2gIgb1Zm7Dy3BOfUNYraSk fjAAY1edVhYNLbtdUszE2WiC5P1gdj6BBKWeYzQ04YcgTkfoO47hUAuCKP/REInztxEl /dLWKWrAi0mmQHPyKSfOkHqHxPbfu6Q5hZLDk8nVQ/Ny4QHaNSs4TE6+2B3q7njqW4xl 9kPnhdL22Tb3RVn1jydrjc/ADToUaN1FXDVhAEwojuNENLgN/N/O5kDQTPJZrhf41UYI LdZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=YBOdLNycgzpN9Nla7NkvL7WnvW0innNt2D6Epp2xIi8=; b=rhGFFY/XQdZqpHZYDourGxoS4Pm+KXxy/FKXo1AiwdWhWsMxpPsJjOEAk2ClTx0E0v 26VofBR+0JjEOIC8b7TT9c7v4wE4opLqiWB6waNO2WOzvvhuRDMUrnMLYRml96dyXZVy InJZsKp1gwS6pMdf5ETuEGfeb2J+d2YUhGXSLuO0nuqJ75ymsm3HfpH7oS7txaolcQQP H9VeUc4NFqJb95bhe1ntu/V2+5mI8wfCOIt1VqekFJE/5lujotNQR0EjZu71APYp2rb2 xxUEYmTa3c3N2SLm0Rvqf9OAgVw8dExHTKJmRYkiCN/6leNC7duza4cQRzJsm+lFPBCy AlSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oBDsaOWf; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g9si10101053pjv.37.2019.08.19.19.45.09; Mon, 19 Aug 2019 19:45:24 -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=@gmail.com header.s=20161025 header.b=oBDsaOWf; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729003AbfHTCoS (ORCPT + 99 others); Mon, 19 Aug 2019 22:44:18 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:36476 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728719AbfHTCoR (ORCPT ); Mon, 19 Aug 2019 22:44:17 -0400 Received: by mail-io1-f68.google.com with SMTP id o9so8968163iom.3; Mon, 19 Aug 2019 19:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=YBOdLNycgzpN9Nla7NkvL7WnvW0innNt2D6Epp2xIi8=; b=oBDsaOWfBVYLRu0YEzyaoosa8+ejgL2HgiR7j/gAkh9iTAVKT6jTeMgpFJDQEeruv2 /pXB+sEhU6DxZkbu/0oAhofQ4BkYJfUbeRzCTmDGnnepzLjd7FV/nHdYHZ18lIzXBq8m OmlBvBra7PfFD051LdicGxMlm/mZaH/H6x2DUaDcKk+lP+4aZTeY8oVKudB54gjQ68WX qeJ0neFNveebQIt/atHiOEZwAoEYgOlJlqkeqclPwavw75N3DEaP3NP/hsV1Tlqju1mK ebvy8j9yKXS38lV6UcrHxG9J2W8dvYYmCFBJT8u+BJ3sSuNU+rCQrPZeE092kyhVJQBS x0ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=YBOdLNycgzpN9Nla7NkvL7WnvW0innNt2D6Epp2xIi8=; b=GGwEWskRvX52krVjqoaKhmNR0NEinOSDp5Y1rBye8PN8GGYcyCklSBgRxGm+0BZRK6 P9PrPplDCf3e4ayaX9DXTioUekEQKxCMkTzSqRPUxBkhp9kS2N75/GFzraduVxObDTgo pnco5rHIWNqTOrOb//epdoRTBHW4ZZF5Ouf+qSxuazNZHFRGHhPAwGAZeJeBqkfLDfsc 021Ka2LSCIn29CM158QSexZWrLZTwiZfxrDiIt29bsInwSxHJaTW5sYuXP2YxnpK7l1L XZp+CWPHeEDah7ryIO6HdBVqdQaLiNlh+veqqFEz8SmPEFmMtMF8j0W+gBtqHdJFKTQS kjmw== X-Gm-Message-State: APjAAAWvnM5POmIdKmd0IXFDhR8Tjp0lf9vvBAnvQqOhq1f9rkA+rsz9 3DvcFPOi2Am7l4u220VXEdXDzUTbNdxD X-Received: by 2002:a6b:ea16:: with SMTP id m22mr10640364ioc.115.1566269056641; Mon, 19 Aug 2019 19:44:16 -0700 (PDT) Received: from Test-Virtual-Machine (d24-141-106-246.home.cgocable.net. [24.141.106.246]) by smtp.gmail.com with ESMTPSA id n21sm11168946ioh.30.2019.08.19.19.44.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Aug 2019 19:44:15 -0700 (PDT) Date: Mon, 19 Aug 2019 22:44:14 -0400 From: Branden Bonaby To: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, sashal@kernel.org Cc: Branden Bonaby , linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] hv: vmbus: add fuzz testing to hv device Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset introduces a testing framework for Hyper-V drivers. This framework allows us to introduce delays in the packet receive path on a per-device basis. While the current code only supports introducing arbitrary delays in the host/guest communication path, we intend to expand this to support error injection in the future. Changes in v2: Patch 1: As per Vitaly's suggestion, wrapped the test code under an #ifdef and updated the Kconfig file, so that the test code will only be used when the config option is set to true. (default is false). Updated hyperv_vmbus header to contain new #ifdef with new new functions for the test code. Patch 2: Moved code from under sysfs to debugfs and wrapped it under the new ifdef. Updated MAINTAINERS file with new debugfs-hyperv file under the section for hyperv. Patch 3: Updated testing tool with new debugfs location. Branden Bonaby (3): drivers: hv: vmbus: Introduce latency testing drivers: hv: vmbus: add fuzz test attributes to debugfs tools: hv: add vmbus testing tool Documentation/ABI/testing/debugfs-hyperv | 21 ++ MAINTAINERS | 1 + drivers/hv/Kconfig | 7 + drivers/hv/connection.c | 3 + drivers/hv/hyperv_vmbus.h | 20 ++ drivers/hv/ring_buffer.c | 7 + drivers/hv/vmbus_drv.c | 167 ++++++++++++ include/linux/hyperv.h | 21 ++ tools/hv/vmbus_testing | 334 +++++++++++++++++++++++ 9 files changed, 581 insertions(+) create mode 100644 Documentation/ABI/testing/debugfs-hyperv create mode 100644 tools/hv/vmbus_testing -- 2.17.1