[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 7/7] 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, 22 Oct 2025 13:56:21 +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=uV3ooUt4bMxJtw+E9mpooKcv/os9pQmtGpE5zfwbG5Q=; b=kqH8yjiRe5p6yZZHc1qspKpvlFIz3FL5WUl/sVtU0Aj763VrhZe0klktY/Fmd6kYLtI8ux/scs0Lw+AoUSsAlwh1nmdimnMeBYD9j1mB1ZY2/yZJzFuoHlm7NDUoqlP6qW7Vc/+tln0sE8wL6iTa8Sh2QEAQBgKMtyHh9mS7qzwmRLz8EYk2gDRS2bGW1KgQuiaknq3DVvu4Z8KaL+XoSx9Agz/8w+nikbWkO4gQjUhJe8aHyjK1kFshhai/E/UuiJTCYVakDbRMQG5TTsLBYzLmtW7f4Gj0jq4mXXRFmvgCphbV4FlQFDZFoZehBNpUOM948QCoFa63LhrmpTmGTw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=eMY3PpVDSvx51PdS7R0p6hIiC6DzOEWdBqvhDoUj0GLDMs6SEFzi5TELQiPKWuyOJ0uMBiblyHK9b/BqM1MXXVnqc5Wx5QwflkXsXPdMiaxMqjt2ekbQLEJI4npJAB1JISPuEadEmu7dgbBVcpvB8zALa8u9pWHsJRRC8p0DaXmo/XoxSeRN6XlVZlZsoVxu9HXf/i/uhqPLlfOhHOxjXhbuCtaHJPy/NCn5zfqLAQntwAEwxjHKPaEvCUsiYTC0S4+mH3Are1z05hfgUeKgl2e3BH0IWMKB0DJKXAMacjiP8wclqD+Aw0ctW33nMl1dljFb8lXHjCZrUzMeMyajNg==
  • 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, 22 Oct 2025 13:56:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcQ1ulGNmnLElVGE6aNZhUnk8W2g==
  • Thread-topic: [PATCH v2 7/7] 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 reflect this change.

Signed-off-by: Mykyta Poturai <mykyta_poturai@xxxxxxxx>
---
v1->v2:
* fix typo in commit message
---
 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



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.