Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2656456pxb; Tue, 23 Feb 2021 12:08:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLjdHEVqKJ5Vui6L40A1pC2HD4CgErsMJNos2f4YuMPxYC7fBgrxAg/aM+Df5Ge2JE7mQz X-Received: by 2002:aa7:dd49:: with SMTP id o9mr29745779edw.14.1614110933802; Tue, 23 Feb 2021 12:08:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614110933; cv=none; d=google.com; s=arc-20160816; b=uiURfAykPn8KXfIikN9A3YxnOts3bFWnQGiHh9adGlSRjoRIf8Q2kaDNHEg9s3RWPS NHFPovMui6krMqn3kzED5Mg92FqtWSY53okhu4jn6n7+oBawCVbtXIw3i5X+zm9GpT9T Z6hYlQdXhJje/SFgI7uNCfaQ9d60m01nKQljBDrL0kkSGTU4oBNKPvNjOTcZ36AJviZy ii2Qh/V+oZupIQeGii6BCpGTUWiNAFrZdPxeNCq9iTYq+ZtnXaofJD7VKQlId7g0S2iH v6noSuiJf8sSfq1MKb9nVNqDzyZwUyO07vsc/EU6DKnDef0FG+yHhdGMe9RL/iCmc7BT fhBg== 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 :message-id:date:subject:cc:to:from; bh=jtHAj6k4UZpcJSN0B8L7v9rcx2H+8/7NerNTl/tx1qo=; b=nyM9Wx/NwfGvmu0an6dvyEDx9x9om/YGxLM8Cnf+7uiQ+5OiDeQGdlcn+naj8p037Q 9vKxSDTP49TqrHEYUjNZWykiSsbFOZSdI7g2rPB+SxwDtAHrc3ZlJIdICsm56quhJc9/ 7DpwlbnPMLfy+Sg5wrKG4QyTqKoUamqjTOcCmWcAVHJpaloWAFmj4pFr6GSpPMAZ/UJZ ev2gu99BJNXFrEYBKgoKXJH4aRWP2EL7cbKGi6Rl3f7qWVJmy0+8jRMIKYQ1hXK4SkCx PJUHzhUKwEPQDn9pw/nZ8PlgKhqFM8CrWThKtRCIr1JLGsLBYSEIsf+qwT4dRPwq7jCN 9WvA== 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 t13si5826402eje.700.2021.02.23.12.08.22; Tue, 23 Feb 2021 12:08:53 -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 S233232AbhBWP15 (ORCPT + 99 others); Tue, 23 Feb 2021 10:27:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232775AbhBWP14 (ORCPT ); Tue, 23 Feb 2021 10:27:56 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23F79C061574 for ; Tue, 23 Feb 2021 07:27:13 -0800 (PST) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1lEZah-007R3T-G1; Tue, 23 Feb 2021 16:27:11 +0100 From: Johannes Berg To: linux-um@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [PATCH 0/7] PCI support for UML Date: Tue, 23 Feb 2021 16:27:00 +0100 Message-Id: <20210223152707.408995-1-johannes@sipsolutions.net> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, 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. To enable that, add lib/logic_iomem, similar to logic_pio but for iomem regions, this way, ioread/iowrite can be redirected over the virtio device. Since currently no official virtio device ID is assigned yet a Kconfig option for that is required to be set to the value you want to use locally for experimentation. Once we have an official value we can change the default (currently -1 which makes it non-functional) or remove the option entirely. johannes