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

Re: [PATCH v3 2/2] xen/pci: replace call to is_memory_hole to pci_check_bar


  • To: Rahul Singh <rahul.singh@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 6 Sep 2022 10:54:35 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=eBzlqSA3kdDDMPrJpGenrmU0q80ch7fAe9qpVfZO2SA=; b=h+nVkBamSJzNegneWLi2QhAldi6iO0c2ohM6BvJtnIhvg6GOGl+H8l1UcVEIRMWF3vjiFXlEs2+NnhH+YTamLzjxHBR8wxSCYBHX8nIZXX1SFsEnLXN4eIk/dHejUeRWf/PIsbPSgfKljAZ1pNxkIo0B6hZ8I+2wBA6Ip2LlmH5IrCMxv3bguQO7jxkUEjIVU+zM+0Dxm3WuanLa3NbHAUJnE/qB4iuR5R7lf3+be1YpqENBYv5NjdZ0LGoS/3Ih6Gqr3QBTrLBiZERlGbKGimaLbVI8CUM3vAjLiXEIIh0lLxwymfPrE1p3N+FC5vB7xAlIReoa4rv78iBlYInInA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NFllZfIwO8ofzT8h3+JbmVP43a1q0ItTHoAWluVOGUHlZr1wE/2bAR9ZylRFmY8Alj48HwXZMTv/BTlE2q7C8LX1GeqANwhFb4QVxRpVfTnHuQqCa3XIls1R+KqZuAgsWWNLgG0VBM+ZCkXo+6t2OW/xY1kBYNRZgC4Qn+9r1TcmfN6VpPo8HHiW394+ufFcrpLnUk+9bwDetqUfUmgDtTLt1mfm5F39VwdSC5+k0wyNelXLag+eB3PLLhRtpPKbdPk9N/x75jt7kMTfbz7Tam65+elCQfho5UxXTMRxt2e5kc/8rKEIH1pLF5ZUbefyC03g70XgcjVGNYhnTtgMKg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: bertrand.marquis@xxxxxxx, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Paul Durrant <paul@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 06 Sep 2022 08:54:41 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 01.09.2022 11:29, Rahul Singh wrote:
> is_memory_hole was implemented for x86 and not for ARM when introduced.
> Replace is_memory_hole call to pci_check_bar as function should check
> if device BAR is in defined memory range. Also, add an implementation
> for ARM which is required for PCI passthrough.
> 
> On x86, pci_check_bar will call is_memory_hole which will check if BAR
> is not overlapping with any memory region defined in the memory map.
> 
> On ARM, pci_check_bar will go through the host bridge ranges and check
> if the BAR is in the range of defined ranges.
> 
> Signed-off-by: Rahul Singh <rahul.singh@xxxxxxx>

Acked-by: Jan Beulich <jbeulich@xxxxxxxx>





 


Rackspace

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