Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp282536pxb; Wed, 24 Feb 2021 01:52:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdNHD3jBtRfcLtiTOYHypYN04L59D/Bt9P8itIxWMX5VE+nVdhvRmotVHcm2jDtLKUtLQj X-Received: by 2002:a17:906:7384:: with SMTP id f4mr9928217ejl.196.1614160331858; Wed, 24 Feb 2021 01:52:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614160331; cv=none; d=google.com; s=arc-20160816; b=s9NhQYV/Fzz6FpLJOgULDK7hCbz4oHnO4dhEs1u2R1prmlP3htVOppFxSISqGmiaa6 7ZQqZ5QP4OgGosOksgD/HvqdMXATPn74OMD0c7/IDCeMOY17T/8b5rAJkcj6EeiEkgzs kce1BlkpCFszQRWqxdjXj+aepM/ZULVi+myC373mRmpij+IfFnsxOF6cisrJ6ZQLQOvJ Y+tJAfhDeSw8xglcx6H1Y44CxNj4qZpNaGM8uavwzfQX7sTKGd30YqtlzSKj8fVAKPVi R02HqauDQe6xzaeeo6wZUHxf3CSpBKoetsSKPLoL2TUrr6qffkbMFq+br+O2Bmbjs7Tb GoiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=LOkFQkSyGmGbTSK7UVWwJcmirkVFS7HN51aqBFsnaZM=; b=ySPyvfeK0GDyrrC+Brcgfg+DzncAM0UDI/m++EG1P7jEk4yuRYYbrYZO/17ujEELuX B6WD+wetlIWLyZcstMWpJ/88nif5U4JU7T/n2p51waLQKpnlda+G9BcQIFCPJt1ODv4V zPpzN7bGt1GNzIhU9J06yY0vVCVQIIJr2Ce1NxXTkq0vWWhIPbCZNHtIaaSy3sPRFGNz n+hPZiw77Ij+Db7CWjZJVtF6T/aNXD8S9x5P2MUI9+TQP421g8r8d8tFHx9/R6ZmPR1b XuoWa18b9i8R/oeVjsV6FRN+HUZOpCRy713mI39b5zgpS+jEmAndWavgr3XHIxD49m29 l95g== 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 z1si1035476ejm.289.2021.02.24.01.51.48; Wed, 24 Feb 2021 01:52:11 -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 S234709AbhBXJt3 (ORCPT + 99 others); Wed, 24 Feb 2021 04:49:29 -0500 Received: from mail-ot1-f51.google.com ([209.85.210.51]:46404 "EHLO mail-ot1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234759AbhBXJs2 (ORCPT ); Wed, 24 Feb 2021 04:48:28 -0500 Received: by mail-ot1-f51.google.com with SMTP id k13so1546747otn.13 for ; Wed, 24 Feb 2021 01:47:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LOkFQkSyGmGbTSK7UVWwJcmirkVFS7HN51aqBFsnaZM=; b=LiKFBqX/D5KSjRrsmjyntriGkZAy6zeeT7tHtZklyiT0glBZTLJPWFkgvLULcWpa9a frezFxL09NiusZpw+/5engWuj0Vj5pzfQwyDiDv3VAYMYPX7aOhJ6cPC7ywhliPEQ6xA WS13tQ8jroKBXm9uaB0krwTJZ7Z97ANI8YAppYdEvr5WNxRlH6EueUJ7AN21RkODZsNF hDTKer/zlmAypD+t5NikHdwEu2KMddjSDuJncCvHERTVTADIDraERtVATJ0yuBIpwhDS nllDPUAW/8BcM/3Zzfo21uxThkXbJgnOTkfl9FUv1mmxHbwOvhz2+RTKgyLFOV8L7Pc3 RxNA== X-Gm-Message-State: AOAM531wSLHvPyl2uPzC5S0KzwtHhEh0sr/d+zEigniA4LJxkeGT06JN OYhBheEHGtdKQrDeO9ZqeELS7WVZpdTsdTc8QCc= X-Received: by 2002:a9d:77d6:: with SMTP id w22mr24104785otl.145.1614160052930; Wed, 24 Feb 2021 01:47:32 -0800 (PST) MIME-Version: 1.0 References: <20210223152707.408995-1-johannes@sipsolutions.net> In-Reply-To: From: Geert Uytterhoeven Date: Wed, 24 Feb 2021 10:47:21 +0100 Message-ID: Subject: Re: [PATCH 0/7] PCI support for UML To: Johannes Berg Cc: linux-um , Arnd Bergmann , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Johannes, On Tue, Feb 23, 2021 at 10:24 PM Johannes Berg wrote: > 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. :) bt8xxgpio? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds