From nobody Sun Nov 24 16:59:54 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1718009499; cv=none; d=zohomail.com; s=zohoarc; b=ZeNATNj9SfPB0ggcHFMMPBRHKXKPqjBHbwzUWDtZMUF13WkM0eiJuRr1/QNaRVuLTVoeOZMyvfm5lCZ3QNUMmMUgcfzewiXfGI54UCnMizzDZRhbcmcr8OtMnTCSpMr+oX9cREg3tGGotF8WGmX0kpCiwUIXgFTYJSpn8JkeP1U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1718009499; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=De9eQf+RRJBH4siiQAx4glFqcwjN/h5NTtVT8vduH1g=; b=fUs+rI/b6GMMBDw6XrM8YMC8yWMGnQTPycuNQqXtvmK3PRikO7Qf12AgKWf71394EAdDddd8Fbc546NGqIia2F5BqXo/v0UWu4EV83xg37TeZKd7ZMc2xk/LwhxiepBjHJUA1exMhTKvOZCKEJnuQsztazkq1D8vZwkksX3rllg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1718009499299886.1285364040025; Mon, 10 Jun 2024 01:51:39 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.737061.1143186 (Exim 4.92) (envelope-from ) id 1sGak2-0003Og-QC; Mon, 10 Jun 2024 08:51:02 +0000 Received: by outflank-mailman (output) from mailman id 737061.1143186; Mon, 10 Jun 2024 08:51:02 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sGak2-0003OZ-NE; Mon, 10 Jun 2024 08:51:02 +0000 Received: by outflank-mailman (input) for mailman id 737061; Mon, 10 Jun 2024 08:51:01 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sGak1-0003NB-7y for xen-devel@lists.xenproject.org; Mon, 10 Jun 2024 08:51:01 +0000 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [2a00:1450:4864:20::130]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 8f868f72-2706-11ef-90a2-e314d9c70b13; Mon, 10 Jun 2024 10:51:00 +0200 (CEST) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-52c8ddc2b29so470095e87.3 for ; Mon, 10 Jun 2024 01:51:00 -0700 (PDT) Received: from localhost ([213.195.114.223]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35f0e49e898sm6676580f8f.22.2024.06.10.01.50.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 01:50:58 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version 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: 8f868f72-2706-11ef-90a2-e314d9c70b13 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1718009459; x=1718614259; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=De9eQf+RRJBH4siiQAx4glFqcwjN/h5NTtVT8vduH1g=; b=dU17lyMgqVgVHSaOryqMqOtFuGz1nXj/uRSA6/DLjzM69jFygNkg+NpJSlHgj3FDWY a/ZuVW0VLxwUF3KLT+VGgZT+FpgQl4z4d6BF+G94wdOJTOBliWJrNAHrLm9JNauqhvIq zgRu1jjIyqxgB7ebN8BBoxRrnVsKF6MHmeA0A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718009459; x=1718614259; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=De9eQf+RRJBH4siiQAx4glFqcwjN/h5NTtVT8vduH1g=; b=J9KThnik8jFaPQCuWfCsHJX9fssDhbjhUsCZabkAgMza3Fa6m6EH473tLL5A9G7bo4 fxU0aEjH0nAbkS4uwlAmaD8n8aikb18aqy1c3NTQTSVvBmvEMN4fcDN3Oo+Wf9CsG5Ev KVSSp76/wOL6vD1PDK8nIP7fmNawJ7O/1nPjoWxNypK8Z9h6mWr9SZI7NZ81vSEoO1G6 z/nNq1BBTigVXmQnwAyvFKtVMiocv+yjA6j1iJS6RXUJnmvBWNvf0sFOsC2K3GbPpBU6 4spNUUlozUONiaO6FB321qR/bfn+KNBPmvHbWDbrYZQyDnRhGM2MdaMo52MFEnHMPlo4 Bsnw== X-Gm-Message-State: AOJu0Yz57/vLyXCr9sktD4Nj2/smJrJd4XlpVhbIJ+I1gzVahSzr4otx Nwc9fd4dlJIzC91p5Njp5VMhYDzF2r1stblr61WPvFqkUyqecTTIzsK4QvzPgSKB5KnFAqDEEXi Z X-Google-Smtp-Source: AGHT+IG2aSm0jdoW2rk0v5C9fQQkJy/SNNR/86B2O4aqqEQ74/wErpgNdDF2TrAdubVoOqjErn8GKg== X-Received: by 2002:ac2:5dfc:0:b0:52c:8a9b:17f4 with SMTP id 2adb3069b0e04-52c8a9b19e4mr1411736e87.37.1718009458784; Mon, 10 Jun 2024 01:50:58 -0700 (PDT) From: Roger Pau Monne To: xen-devel@lists.xenproject.org Cc: Roger Pau Monne , Oleksii Kurochko , Community Manager , Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini Subject: [PATCH for-4.19 v2] x86/pvh: declare PVH dom0 supported with caveats Date: Mon, 10 Jun 2024 10:50:52 +0200 Message-ID: <20240610085052.8499-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1718009501006100001 PVH dom0 is functionally very similar to PVH domU except for the domain builder and the added set of hypercalls available to it. The main concern with declaring it "Supported" is the lack of some features when compared to classic PV dom0, hence switch it's status to supported with caveats. List the known missing features, there might be more features mis= sing or not working as expected apart from the ones listed. Note there's some (limited) PVH dom0 testing on both osstest and gitlab. Signed-off-by: Roger Pau Monn=C3=A9 Acked-by: Andrew Cooper Release-Acked-by: Oleksii Kurochko --- Changes since v1: - Remove boot warning. --- CHANGELOG.md | 1 + SUPPORT.md | 15 ++++++++++++++- xen/arch/x86/hvm/dom0_build.c | 1 - 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 201478aa1c0e..1778419cae64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepach= angelog.com/en/1.0.0/) - HVM PIRQs are disabled by default. - Reduce IOMMU setup time for hardware domain. - Allow HVM/PVH domains to map foreign pages. + - Declare PVH dom0 supported with caveats. - xl/libxl configures vkb=3D[] for HVM domains with priority over vkb_dev= ice. - Increase the maximum number of CPUs Xen can be built for from 4095 to 16383. diff --git a/SUPPORT.md b/SUPPORT.md index d5d60c62ec11..711aacf34662 100644 --- a/SUPPORT.md +++ b/SUPPORT.md @@ -161,7 +161,20 @@ Requires hardware virtualisation support (Intel VMX / = AMD SVM). Dom0 support requires an IOMMU (Intel VT-d / AMD IOMMU). =20 Status, domU: Supported - Status, dom0: Experimental + Status, dom0: Supported, with caveats + +PVH dom0 hasn't received the same test coverage as PV dom0, so it can exhi= bit +unexpected behavior or issues on some hardware. + +At least the following features are missing on a PVH dom0: + + * PCI SR-IOV and Resizable BARs. + + * Native NMI forwarding (nmi=3Ddom0 command line option). + + * MCE handling. + + * PCI Passthrough to any kind of domUs. =20 ### ARM =20 diff --git a/xen/arch/x86/hvm/dom0_build.c b/xen/arch/x86/hvm/dom0_build.c index 6acbaceb94c1..f3eddb684686 100644 --- a/xen/arch/x86/hvm/dom0_build.c +++ b/xen/arch/x86/hvm/dom0_build.c @@ -1360,7 +1360,6 @@ int __init dom0_construct_pvh(struct domain *d, const= module_t *image, print_e820_memory_map(d->arch.e820, d->arch.nr_e820); } =20 - printk("WARNING: PVH is an experimental mode with limited functionalit= y\n"); return 0; } =20 --=20 2.44.0