[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 8/8] arm/pci: enable vpci for hwdom when pci-scan is enabled
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
- Date: Wed, 24 Sep 2025 07:59:24 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4eHiYxqylL9naaTy3qk16KarDfJtDb7zV8vKSWL+Tjg=; b=LZK6K4xudjU09lhKYF52SAkc839z242xnJX+haXMsbjCa/qwQHoCnFqc0eP+i9lvfap4dmLm9Mc8GbCsmU5M/5Ckpa1a/ptRjvfSnFUmG4lOz1EAhy2NI4rxKMgsTvPmDUuOmtRW31HA0ts+xJkykwJZguanlJvOY13XisWuSNybg4ur1XxDcvmyY1nJrk0sYSgTV1LEYSoSEniKU6PSIjlD0wGugUMmlIw3/UAiMJiT4sYWBF5OCQWlZ5K5OV9jMSmgyvt/UoWmf2KVx1QcmzDWOPknP2KvYEyW38fYXhU6Npdkl6gA4l0ETPv9plf6yuGLVtZucTq6jGfh4XAkuA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=X1Lq4NfbRMoUUme+iW/ZmcTQaGLo3/1cFeQF+vPbNdKvo2yMI23JpLMVa4O1nFYqGRjglyn0RTaeQed7Laj94pxaTn1WbLALShurZJXMrmyU3LKyQCaM/PYr4usKe6Tgwx6QhHTMJYmTr6eCCZ5HzSiOybUoLyoaPDK5jiiRg+Yqgc6tkaItQWMxMiP7TzlyivxEmsevQCLoFEcp8DTjSun89hS+FdBRlkOy1SlHN6TyVV/Q9Kw30+MsO5gZmFCYtFGz6LzzFHQvpaiRqw1JzmUZ9hqqORx64YBcGBZzcR+SmVhe9XOp4TXQ9x/IB0Nv06ZYwN2w3ZKv7tZWu+QbVQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
- Cc: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Wed, 24 Sep 2025 07:59:36 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHcLSkkrFCa0+UvQk64FYmsNCFhTg==
- Thread-topic: [PATCH v1 8/8] arm/pci: enable vpci for hwdom when pci-scan is enabled
With pci-scan implemented it is now possible to use vpci for hardware
domains. Update has_vpci to reflrect this change.
Signed-off-by: Mykyta Poturai <mykyta_poturai@xxxxxxxx>
---
xen/arch/arm/include/asm/domain.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/xen/arch/arm/include/asm/domain.h
b/xen/arch/arm/include/asm/domain.h
index af3e168374..dbe3347cea 100644
--- a/xen/arch/arm/include/asm/domain.h
+++ b/xen/arch/arm/include/asm/domain.h
@@ -305,8 +305,7 @@ static inline void arch_vcpu_block(struct vcpu *v) {}
#define arch_vm_assist_valid_mask(d) (1UL << VMASST_TYPE_runstate_update_flag)
-/* vPCI is not available on Arm */
-#define has_vpci(d) ({ (void)(d); false; })
+#define has_vpci(d) (is_hardware_domain(d) && hwdom_uses_vpci())
struct arch_vcpu_io {
struct instr_details dabt_instr; /* when the instruction is decoded */
--
2.34.1
|