Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1119790ybh; Sat, 3 Aug 2019 18:27:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuckLLx+QYA7E4p/OBqXvFXZNh87CaJZg3YH3Omm20BghtzUszD5MgXEqxjS417BD6mUcM X-Received: by 2002:a17:90a:8a91:: with SMTP id x17mr11562910pjn.95.1564882056302; Sat, 03 Aug 2019 18:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564882056; cv=none; d=google.com; s=arc-20160816; b=axeMgssbstxYDZEJKw+6xFh5fpmFeaP30YgYs8ago3OK3C+7H4MeQifH/iS/eASyX2 1T7suVEzDcWVKt1ad98vOBowYyi6eUFrM6NMI4UjR3zxUNk7kg7Q1MXZ1F36MBigwk4c iMT5NLG2OY4l/5SFPyEGc0IqvSUIBTHQyKQDHPuW1kJQIoUykX0x9VtU6HNkOyfKcwEB k13TuUxaS86tf3aNtYbaa+tcT6rZjhK7WL5o1X5RthGOhjWECvvkPkZSPHqUtE3EyEwu bcfZHrWNJxbhNpEEVPppc0Y2OD8Fp3g5keu/B3RXO5nW4o0gla35U79f3ZKoiARgqAtm Kr4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cg39H2VNzTuG3+WBUWDglAjB91SXV5TEH8pFiAs4tqc=; b=IEUML6mNT5j1KWuV993UOZab9q+CSaGmeXatCiuLdR1BaMeGrDFRXNSQ2wQC3mY6fU 9qDo58SF7cIUwkv+vBjc+fBm8C5nGaqzWt2A0GSJf+ce6ZumnUAnSOvWJMOlamX791EM GVOcSFnCNwsu9T+jIGFLzm7pY+T+fcdPDq76FxrXvvGkPPVufcEc1IT97rR8/gX/bP4K KPmmNOumG33eajhebv1GsQrOeqZJyHK3Lk2mWtQup9U7TCMafVAe0I1VGN/YshWwlJ9G Gi4eb1npbpRnzVUyx+LwlwNgne0AJN1pmpSBeBz7UNVibncvLx/chSvlrTqZgIJ20AyS IySQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GozK4p3i; 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 x9si43610977pfi.211.2019.08.03.18.27.20; Sat, 03 Aug 2019 18:27:36 -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=GozK4p3i; 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 S2388438AbfHBTCF (ORCPT + 99 others); Fri, 2 Aug 2019 15:02:05 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:41597 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387911AbfHBTCF (ORCPT ); Fri, 2 Aug 2019 15:02:05 -0400 Received: by mail-io1-f66.google.com with SMTP id j5so150268415ioj.8; Fri, 02 Aug 2019 12:02:04 -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:references:mime-version :content-disposition:in-reply-to:user-agent; bh=cg39H2VNzTuG3+WBUWDglAjB91SXV5TEH8pFiAs4tqc=; b=GozK4p3iBsoNfloIGkbcBFk76im6JeO3vuVVmfoYScZs08Fkx7M1XwKw8zHyRzaRId URhY/BYy5EEjNq2KYaaWjr2YZUElVSzhmpW7L+er2Ey6WNhU2l4tMrgQjGEHZ271HoT5 r8u432JeZkMpbmUSE8W1yodNaJyM5KnSpj+Q6sgk7jrgodkLRYZzB/oyy4/t504ilxhI 6Zpe5Jr/YYQosTPuG3PwfaZNt0oHaXgTiaCOmkR6WM9Lr5KrDmmnUWBHiwckcfCp8Xzt YJkINiEXBZPgxvaaO2mX0l5ici1vSYnXa5ntzDNWIbK+zv9pMeQ1WeDCOqY2mNaWp1e6 AUPw== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=cg39H2VNzTuG3+WBUWDglAjB91SXV5TEH8pFiAs4tqc=; b=iJ6ajOiQOxLypTJB8BTBLJmgBtnIUIE0Kqp/Jcfq8+NA5DarYc6XpImYZrz15uOQop F82IlgsUbRmq8KZN3kuqHYLPG0CdalGhNrjjQNo3YhpnEwr8hd5+x83bAk+E57TCja57 +7YHmygufU9NiWmJlRWuvk4O17J9x1L55UP0i62qT45uEllbzWsbjbXYBIeYLQdKo42H 0KbIE6DlDMl/wc4rWKpXhlahdwphMTjxkMlraxKEV7wkWudmLPBv0RNkLGM0mrNZIfAs SoSIl+oMkNsySi4xKX0+p0Q9kJJrQOoeGpr0FVmGOLa9LsuVIQEcRBNCNPElpJcYJXsU 8mtg== X-Gm-Message-State: APjAAAUZsWi7nTGrJWTvar7aJbJc1Ibp8xlvw30Il/wnRURVw05M5KYu OESv7haAcoC2qA19XJeVTg== X-Received: by 2002:a5d:890d:: with SMTP id b13mr10957395ion.124.1564772524465; Fri, 02 Aug 2019 12:02:04 -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 d25sm62545657iom.52.2019.08.02.12.02.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Aug 2019 12:02:03 -0700 (PDT) Date: Fri, 2 Aug 2019 15:02:01 -0400 From: Branden Bonaby To: Vitaly Kuznetsov Cc: linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, sashal@kernel.org Subject: Re: [PATCH 0/3] hv: vmbus: add fuzz testing to hv devices Message-ID: <20190802190201.GA26975@Test-Virtual-Machine> References: <87ftmkgh2t.fsf@vitty.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87ftmkgh2t.fsf@vitty.brq.redhat.com> 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 On Fri, Aug 02, 2019 at 09:30:18AM +0200, Vitaly Kuznetsov wrote: > Branden Bonaby writes: > > > 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. > > > > Branden Bonaby (3): > > drivers: hv: vmbus: Introduce latency testing > > drivers: hv: vmbus: add fuzz test attributes to sysfs > > tools: hv: add vmbus testing tool > > > > Documentation/ABI/stable/sysfs-bus-vmbus | 22 ++ > > drivers/hv/connection.c | 5 + > > drivers/hv/ring_buffer.c | 10 + > > drivers/hv/vmbus_drv.c | 97 ++++++- > > Can we have something like CONFIG_HYPERV_TESTING and put this new > code under #ifdef? > > > include/linux/hyperv.h | 14 + > > tools/hv/vmbus_testing | 326 +++++++++++++++++++++++ > > 6 files changed, 473 insertions(+), 1 deletion(-) > > create mode 100644 tools/hv/vmbus_testing > > -- > Vitaly You're right, it would be better to do it that way with ifdef's. Will edit my patches and resend. Branden Bonaby