From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id ACE30E7D240 for ; Tue, 26 Sep 2023 07:27:16 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ql2Si-0006Xq-Im; Tue, 26 Sep 2023 03:26:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ql2Sf-0006W4-5T for qemu-devel@nongnu.org; Tue, 26 Sep 2023 03:26:25 -0400 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ql2SZ-0000Ri-Jp for qemu-devel@nongnu.org; Tue, 26 Sep 2023 03:26:24 -0400 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 Received-SPF: none client-ip=2607:7c80:54:3::133; envelope-from=BATV+2a2c9b7848046cbd39dd+7338+infradead.org+hch@bombadil.srs.infradead.org; helo=bombadil.infradead.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org 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.