Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2702865pxb; Tue, 23 Feb 2021 13:27:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2J8u3WPP4BCCUJKA5FLH3+XSVPVBrP5KUTaPDQy3R/gtG8i+mrHf8+sG08ZY5CkJ/7VSl X-Received: by 2002:a17:906:66cc:: with SMTP id k12mr11528233ejp.382.1614115643369; Tue, 23 Feb 2021 13:27:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614115643; cv=none; d=google.com; s=arc-20160816; b=On/g1knYpUExN6Xe88JlwjU9Qc1wKWxsjVp+s7UaF6lxFUAZm2/fo3EYbeal4UERPo 3XO/7PWkD7f8QQoUXw6xH899dHSk0mGCEki6r3167LpHUcWNctIrfGe2WIcSTxbPmcia gSwM2FyhDebLi/mlnWZN6H+pS15tq5hMGu9aFwmzy+5ZkxkvPeiqAj9AHuV+OXOaLwXo pbN+7ozCttnUtoyUiu+qBHNqOxau9zS81WStN8xj1Mlo8YyvvJGT4HRm0yfKUtEsIvpm rSIk3JQwXzQoobW/XYVOUg2E8d8nSLCJBbA0zKZUA65aHbUMkzOzxb4geSJUo0mQM2au 4U3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=iwrc6CJM0py6o95PUt3//LUArpf1wbQ6qJgJhsBekMI=; b=pJbrGvRUV+LWa9GJPGmM0Wqy7pSvNHbhzQ68qiT4DtQSF9Dw7uPPzaI4BmF0AZkqLW L1cpDx5QufsN4KlM24HulaJGfmh6/rwiy58DePletctkUI8l34KlNsCIV6mOmr+TzBq1 D81uROB2h7lWDvtTYycQti9gxBulgWeI+MzeBLKVNvh42w52bEGVWZByLVwsODkdA8WY j79WNGfKJerqeGQEDghY82Dgf0fL3GQuRaIfZE0aEVDJHNY5JiemR7zOLuCPD/uMMWst HrJ3ESJ42o/3i+Y+ZxHSPVK+pb4NHhy4SvCTmKyDpwmyPy4wQA7q8rIAZQeNAqyp2S1V s5gA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i7si17124ejy.211.2021.02.23.13.26.57; Tue, 23 Feb 2021 13:27:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233834AbhBWVZO (ORCPT + 99 others); Tue, 23 Feb 2021 16:25:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233543AbhBWVZN (ORCPT ); Tue, 23 Feb 2021 16:25:13 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DD8AC061574 for ; Tue, 23 Feb 2021 13:24:33 -0800 (PST) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1lEfAQ-007Zve-I8; Tue, 23 Feb 2021 22:24:26 +0100 Message-ID: Subject: Re: [PATCH 0/7] PCI support for UML From: Johannes Berg To: linux-um@lists.infradead.org Cc: Arnd Bergmann , linux-kernel@vger.kernel.org Date: Tue, 23 Feb 2021 22:24:25 +0100 In-Reply-To: <20210223152707.408995-1-johannes@sipsolutions.net> References: <20210223152707.408995-1-johannes@sipsolutions.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2021-02-23 at 16:27 +0100, Johannes Berg wrote: > In order to simulate some devices and write tests completely > independent of real PCI devices, we continued the development > of time-travel and related bits, and are adding PCI support > here now. > > The way it works is that it communicates with the outside (of > UML) with virtio, which we previously added using vhost-user, > and then offers a PCI bus to the inside system, where normal > PCI probing etc. happens, but all config space & IO accesses > are forwarded over virtio. I hadn't sent it out until now, but the userspace bits for all the time- travel and PCI-over-vhost-user are here: https://github.com/linux-test-project/usfstl/ If anyone has any suggestions on a good example PCI device that already has a driver upstream I'd be interested - I looked for something simple like LED or GPIO but no such thing I could find (that wasn't platform dependent in some way). So far I've only implemented a virtual Intel WiFi NIC, but that depends on a large body of code I can't publish. As an example, it would be nice to write (and publish there) a simple PCI device implementation. :) johannes