Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2016216rdh; Tue, 26 Sep 2023 09:46:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEkCZ6bj/8Ukn+uIirecwmkqBjDcWNJEXCcGUzEJPfv6LdhHO2ijjVCTWddLF46CI6KEWo7 X-Received: by 2002:a05:6808:1a21:b0:3a7:5d83:14d2 with SMTP id bk33-20020a0568081a2100b003a75d8314d2mr12006280oib.17.1695746798352; Tue, 26 Sep 2023 09:46:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695746798; cv=none; d=google.com; s=arc-20160816; b=EY9fFjhU6n4oiX2uY+dwa+Ub0IFP/L4Bhs4bonMCOyErkBxfuYBWPpLgYsURV1s+W1 kCdV18wj67xj78FSivUgxzq8xUS+4Rbx7Q8AyCPI3EfOYBhkdFSS1Fb6eY8KQ3tvP0P0 m3vh8v3vRF59GKfweMbwLfizTxUqIkw3GrlU2nb6XuDc+WwVZ3UO+GA2D12SXpZkH0jp /5iED0mfepi3NuP0VYs3m5MJsgxq8ChjKaGBEyXtaJVtp6dNxeQQP8/tH6oz5l3Xk/Pf /dF5/mW+yePiotoTRFrW22hfCGOdDTsPWphIIcv5YheOPanlgU96NwVCgDhA+9/k9zWw unMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NznSBD2uteqB9qxa+hTMt7JkHTRzuMUHjjRchlfeKyg=; fh=bjaZ+xTFwWc7T2/Jy8jpAM4gDgZHmDQpHnW4QhwN594=; b=fY5XDfNHxzBgOsF6BUkwJsWwSsF+oknD9ttZPft+/PNiQJVW3+9y7108h0e3AVBIXY 9sKS2zlC7LM0XqIk7RjCjP10qHKVjmSZU4BXQ1aHRpjDPX/ttX9g8QMig9LlYQGdyfxm 0OSxcEB42XDjx/y9wtOC9wWoLMfa+ZhMYcIuF5AMvqT7RbHdsz0QX6dpR3JADMztUytL bD45YaaTFyDfplbP/ELdALpcTqE43cVYQFg0CfzkdMseAsQxW2gqR3IDPi1Wf3N2wsbO gxHb4MM9IzLiXZNhEhmca+POXpOYfvpUbaVHFAtspEZCVNPNh6BqBZErJGPUyXb71XTt GqfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=G7bzPPhT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id h191-20020a6383c8000000b00584a5cd69basi2326859pge.177.2023.09.26.09.46.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 09:46:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=G7bzPPhT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B06B680756F6; Tue, 26 Sep 2023 00:26:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232543AbjIZH02 (ORCPT + 99 others); Tue, 26 Sep 2023 03:26:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229685AbjIZH00 (ORCPT ); Tue, 26 Sep 2023 03:26:26 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B63FFC; Tue, 26 Sep 2023 00:26:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=NznSBD2uteqB9qxa+hTMt7JkHTRzuMUHjjRchlfeKyg=; b=G7bzPPhTZKVUlgbOowLdMfh/WB A4eCYjDlDRP6tO7FUtuNHGSvEtsgZokP3NWpYBEdnape2papZwgcJt1Lza12XveBTwAcfsF8DnrjQ JjWf4X1ePyTmIhod9yExdhzkMCEOlkF7hXx5iOPtJHjDTDp6GmuPrCVtxmX5GYEJc5BhJSVKoZees 3HZtooXsPnNVTS9mBTyrWrhAHvZrWYkJj+iLjaygtE4EWx1L+hOpvoWkNz3j+n8Gw3uQjhkt0BNwl wEF/IItGRkgjPtbVJ3rqR2F97yhP8ZtowC0H56ISriZw3zpMKkLUkCHa2OVQqdpAKR82VRla6TdnW bi176l4g==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1ql2SG-00FnBM-1p; Tue, 26 Sep 2023 07:26:00 +0000 Date: Tue, 26 Sep 2023 00:26:00 -0700 From: Christoph Hellwig To: Kishon Vijay Abraham I Cc: Shunsuke Mie , Lorenzo Pieralisi , "Michael S. Tsirkin" , vaishnav.a@ti.com, Paolo Bonzini , Marcel Apfelbaum , qemu-devel@nongnu.org, Rob Herring , Bjorn Helgaas , Linux Kernel Mailing List , linux-pci@vger.kernel.org, Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Manivannan Sadhasivam , Kishon Vijay Abraham I Subject: Re: [RFC] Proposal of QEMU PCI Endpoint test environment Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 26 Sep 2023 00:26:26 -0700 (PDT) On Thu, Sep 21, 2023 at 02:41:54PM +0530, Kishon Vijay Abraham I wrote: > > PCI Endpoint function driver is implemented using the PCIe Endpoint > > framework, but it requires physical boards for testing, and it is difficult > > to test sufficiently. In order to find bugs and hardware-dependent > > implementations early, continuous testing is required. Since it is > > difficult to automate tests that require hardware, this RFC proposes a > > virtual environment for testing PCI endpoint function drivers. > > This would be quite useful and thank you for attempting it! I would like to > compare other mechanisms available in-addition to QEMU before going with the > QEMU approach. Well, the point of PCIe endpoint subsystem in vhost or similar is that you can use one and the same endpoint implementation. So you can debug it using qemu and the use it with a physical port, which would be really amazing.