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.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 19168C54E66 for ; Wed, 13 Mar 2024 15:17:13 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.692556.1079809 (Exim 4.92) (envelope-from ) id 1rkQLk-0005eI-1o; Wed, 13 Mar 2024 15:17:00 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 692556.1079809; Wed, 13 Mar 2024 15:17:00 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rkQLj-0005eB-Tp; Wed, 13 Mar 2024 15:16:59 +0000 Received: by outflank-mailman (input) for mailman id 692556; Wed, 13 Mar 2024 15:16:58 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rkQLi-0005e0-Il for xen-devel@lists.xenproject.org; Wed, 13 Mar 2024 15:16:58 +0000 Received: from fout3-smtp.messagingengine.com (fout3-smtp.messagingengine.com [103.168.172.146]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id b9e527e8-e14c-11ee-a1ee-f123f15fe8a2; Wed, 13 Mar 2024 16:16:55 +0100 (CET) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id 3DC1913800C0; Wed, 13 Mar 2024 11:16:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 13 Mar 2024 11:16:54 -0400 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 13 Mar 2024 11:16:53 -0400 (EDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: b9e527e8-e14c-11ee-a1ee-f123f15fe8a2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1; t=1710343014; x=1710429414; bh=BP+7EIoBKRdbq+Ev2RuxCdiIUEfgqf3z DO6wWX+cFDI=; b=XR9qauVYjkcJjulKk/faRpU+7/FsDePS+Azs5bd/JLvVh9B8 nJp+YlLZKlHKFapwNaCg1JEFAho3MUtdHuq6yn+CwFLJxj2U4JpacN4HPZMk2VdS rGipEIBs0rgRMgPbHYwy7CAKTMSIxbZbkOtaVP4+g++dwNweJynz3WddofqUk1Iz 6hrT/LEfp5rxARIJuCV/WT6A3v6jTunELwXqTfQ6exDioCpzlSIRGP7JzT5dFsbc Dp6MGujVHJRFlRGlKo1HXjH1zzr2ek114lxfCGMdEEvmM/wYIAZ6yb7WBDZiy78u O79xiB21BryhfnUTqt16b1s0rPMIZqt9WrnTnQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1710343014; x=1710429414; bh=BP+7EIoBKRdbq +Ev2RuxCdiIUEfgqf3zDO6wWX+cFDI=; b=VOAG0iU2RMlD23E2FFIXTr48lIM1m CyMtyW7hambarOoZYUzNAwrgV9YDR04PnoxyOisTNmhdzxTn+hqMpCcpdJT6dkx+ jnIMh7KZraff3CSmXu9aSH2TNTMZHv0es4QA3Q3WUSGr64dB+0ieBxcPTaqbm1IH 9VAsQ2bh/fNfDy16ljyP6+z9qWlefXqSXZtb3z3m42yM0pWi4s7qtGvcDShhtLB8 YucqAkqgVeT024ll7pgKWGA2fwJDT6W6veWtkwk3jqrJ+sVLl7ZLIpRtDJlfoE+b kh6lSNS+z8u9rW6Cqh9m/OVPvyoWyS14XHtR3Qg4qKyOmf45bnKTjL68Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrjeehgdejgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofggtgfgsehtkeertd ertdejnecuhfhrohhmpeforghrvghkucforghrtgiihihkohifshhkihdqifpkrhgvtghk ihcuoehmrghrmhgrrhgvkhesihhnvhhishhisghlvghthhhinhhgshhlrggsrdgtohhmqe enucggtffrrghtthgvrhhnpefhfedvkedtiedvgfeiveetffevfefgtdehveettdevjedu ffevteehhfevgefhheenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhgihhtlhgrsg drtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehmrghrmhgrrhgvkhesihhnvhhishhisghlvghthhhinhhgshhlrggsrdgtohhm X-ME-Proxy: Feedback-ID: i1568416f:Fastmail From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= To: xen-devel@lists.xenproject.org Cc: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Subject: [PATCH v5 0/7] MSI-X support with qemu in stubdomain, and other related changes Date: Wed, 13 Mar 2024 16:16:05 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This series includes changes to make MSI-X working with Linux stubdomain and especially Intel Wifi 6 AX210 card. This takes care of remaining reasons for QEMU to access /dev/mem, but also the Intel Wifi card violating spec by putting some registers on the same page as the MSI-X table. Besides the stubdomain case (of which I care more), this is also necessary for PCI-passthrough to work with lockdown enabled in dom0 (when QEMU runs in dom0). See individual patches for details. This series include also tests for MSI-X using new approach (by preventing QEMU access to /dev/mem). But for it to work, it needs QEMU change that makes use of the changes introduced here. It can be seen at https://github.com/marmarek/qemu/commits/msix Here is the pipeline that used the QEMU fork above: https://gitlab.com/xen-project/people/marmarek/xen/-/pipelines/1211237368 Marek Marczykowski-Górecki (7): x86/msi: passthrough all MSI-X vector ctrl writes to device model x86/msi: Extend per-domain/device warning mechanism x86/hvm: Allow access to registers on the same page as MSI-X table automation: prevent QEMU access to /dev/mem in PCI passthrough tests automation: switch to a wifi card on ADL system [DO NOT APPLY] switch to qemu fork [DO NOT APPLY] switch to alternative artifact repo Config.mk | 4 +- automation/gitlab-ci/build.yaml | 4 +- automation/gitlab-ci/test.yaml | 4 +- automation/scripts/qubes-x86-64.sh | 9 +- automation/tests-artifacts/alpine/3.18.dockerfile | 7 +- automation/tests-artifacts/kernel/6.1.19.dockerfile | 2 +- xen/arch/x86/hvm/vmsi.c | 224 ++++++++++++- xen/arch/x86/include/asm/msi.h | 15 +- xen/arch/x86/msi.c | 50 ++- xen/common/kernel.c | 1 +- xen/include/public/features.h | 8 +- 11 files changed, 308 insertions(+), 20 deletions(-) base-commit: 03cf7ca23e0e876075954c558485b267b7d02406 -- git-series 0.9.1