[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[XEN v2 03/11] xen/arm: domain_build: Replace use of paddr_t in find_domU_holes()
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
- Date: Tue, 17 Jan 2023 17:43:50 +0000
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); 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=pYKh2ZpT1JIDy592j7PXcRkkm4hFksMRdjO4SCJ7TpY=; b=LuM9BJB00qPGfqMD5o66N6VNQ/i4EXtjDEJUoT8xmITbSTI80b8QE0U2EWzSq9SLFDbi4c5lRL3JkFVxQYf0Z9f1k7QphS35W4r70zx+l35nrb/Ou1F8qzE9IxhuVcgie8kVqcaFIXEVPumCllh+J+k2BeAhH0fgK2bN4RVVwXcLhwpjqTAsr/pPkS1Ff7tSCjpCXGECzoB+JwCpU359hiom74hCV11Ygljwv0YbU94d5DWUQeIU1ED8HyYBy/6uKrd7UzDmVVNZ5dgcxYU8i2w7BdkPRM+/Lzi7N3Ni3gSsKXbwAesCMh7WBCEbiB+ZBQXQrKhYP7zD/ppOCbh4HA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TeXLJf6vgehwmr/KZXHuGB86TKUVHfYF1pgrIowxLBMtv/Q6CVJnPxOWg4dmUV8qeV5JKHAw80r6uObgh5JhYuHWYFqME+oRRRmADacbCd9HaTTRyi0SUVyYt7H1com1pJ70KT0LQ6hNeovsyRsfz++Q26U/8eRXBmmjxtwZEn3TxTSCy+n0n+DBKC8UK2BoSvQj/A/kLbpaBzwaBDkOGRDRHEkQXqPMMF72hDcZb8jVVJQWt9Vyyr2yisDdBJkF+ilUGHU/F6s6zJA9F2LmZ5VWs7AVN8VtlXUxxfXkOrAm4paRCFXKnAXQi3wADOF++zEmvoRib9yHJJHAioVExA==
- Cc: <sstabellini@xxxxxxxxxx>, <stefano.stabellini@xxxxxxx>, <julien@xxxxxxx>, <Volodymyr_Babchuk@xxxxxxxx>, <bertrand.marquis@xxxxxxx>, Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
- Delivery-date: Tue, 17 Jan 2023 17:45:36 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
bankbase, banksize and bankend are used to hold values of type 'unsigned
long long'. This can be represented as 'uint64_t' instead of 'paddr_t'.
This will ensure consistency with allocate_static_memory() (where we use
'uint64_t' for rambase and ramsize).
In future, paddr_t can be used for 'uin32_t' as well to represent 32bit
physical addresses.
Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>
---
Changes from -
v1 - Modified the title/commit message from "[XEN v1 6/9] xen/arm: Use 'u64' to
represent 'unsigned long long"
and moved it earlier.
xen/arch/arm/domain_build.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
index 33a5945a2d..f904f12408 100644
--- a/xen/arch/arm/domain_build.c
+++ b/xen/arch/arm/domain_build.c
@@ -1726,9 +1726,9 @@ static int __init find_domU_holes(const struct
kernel_info *kinfo,
struct meminfo *ext_regions)
{
unsigned int i;
- paddr_t bankend;
- const paddr_t bankbase[] = GUEST_RAM_BANK_BASES;
- const paddr_t banksize[] = GUEST_RAM_BANK_SIZES;
+ uint64_t bankend;
+ const uint64_t bankbase[] = GUEST_RAM_BANK_BASES;
+ const uint64_t banksize[] = GUEST_RAM_BANK_SIZES;
int res = -ENOENT;
for ( i = 0; i < GUEST_RAM_BANKS; i++ )
--
2.17.1
|