From nobody Fri Nov 15 03:12:35 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1646228836762230.0036591249078; Wed, 2 Mar 2022 05:47:16 -0800 (PST) Received: from localhost ([::1]:45630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nPPK0-00059v-00 for importer@patchew.org; Wed, 02 Mar 2022 08:47:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPOel-0003aT-LH for qemu-devel@nongnu.org; Wed, 02 Mar 2022 08:04:40 -0500 Received: from [2607:f8b0:4864:20::433] (port=40879 helo=mail-pf1-x433.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nPOej-0004yK-Rl for qemu-devel@nongnu.org; Wed, 02 Mar 2022 08:04:39 -0500 Received: by mail-pf1-x433.google.com with SMTP id z15so1899060pfe.7 for ; Wed, 02 Mar 2022 05:04:37 -0800 (PST) Received: from localhost.localdomain (2001-b011-e000-59d7-a02b-4f1b-c415-11a0.dynamic-ip6.hinet.net. [2001:b011:e000:59d7:a02b:4f1b:c415:11a0]) by smtp.gmail.com with ESMTPSA id l13-20020a056a00140d00b004e13da93eaasm21947964pfu.62.2022.03.02.05.04.34 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 02 Mar 2022 05:04:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tFB9N0+6/fehwQuRXDdcYFp1qjN2m+rAm/M1d8WEXJE=; b=CJzxVbgPo2PsPEvATmz6xmHchL1VFjsAk2ZZXafL1WLjRnZjRJf0pl8Xyhz6HIm/Ud k4M0rvvbuZnXzYcUrEfHPNUFdLghZZ4TbhBM4Z7xg/h3pVRcIfMyPsB7raWasPUgkZQY K9o1RYbmifBrhqSyIq/NUJlw/+s/bRj1Z7n4PDSVUZA9IOpcOp/PcZhmQ3jkYtMg/tU1 y8mlziDO+vePuz22TAdNEQf8kYkbllgLJN5qP0+PjgH3dgWM8nKePjhmgyqvhSlJCllo u+arEuj+dKvudFqCfQglU9nbORl6Gh96g8uohwcfYMHqkdMSabwZzwDAxu2twLIpkc+x AfPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tFB9N0+6/fehwQuRXDdcYFp1qjN2m+rAm/M1d8WEXJE=; b=pnpGQREj+9TvL2a7dvNc5VXfPMp71ildEpF89LACt7Vpe6/caJF94vfCnDuD6X3h3Y 9vQsqUvp2s0gYVqPuup5laGdGa0OOOKgHaVKINW13T/w7FrxO7qJAecAUZDjc77HlX+V TQETeYVCu3pw+D0YxCZ2dY0nR18GHFbv7QNsNgdKkT8p4X92t1bsMGDkPmriyNdvhGr7 qFAyPy0Hmmo4f4Sbl600nmCV+tSuamVbkOclRykwbS2QN0sLZgAc6r/vUsmXme2ZSHxd e/opRtXLoqH+kDrAzZSjNByXgYc23wwCxxF233BkTbUO/DhNe9HsFigGje+B8OQpEX5R gA6g== X-Gm-Message-State: AOAM533k1eEevuLKwnrhZd7C5Oz5SHaJ/971FU6T9SvgSutPTJ+FaTfz uDz4Ex/6t1o19mr3iKMKW6rX4+9FjYV8lg== X-Google-Smtp-Source: ABdhPJxHZjwFTfKHPyvKV1Ln44+FXoUPzYwsRDfNac4lVmfKwkDDXb0t7nAT9Ea/ZJswWh3uy743MQ== X-Received: by 2002:a63:a501:0:b0:372:f7dc:6ced with SMTP id n1-20020a63a501000000b00372f7dc6cedmr26300649pgf.26.1646226276119; Wed, 02 Mar 2022 05:04:36 -0800 (PST) From: Yan-Jie Wang To: qemu-devel@nongnu.org Subject: [PATCH v3 3/9] hvf: use correct data types for addresses in memory related functions Date: Wed, 2 Mar 2022 21:04:11 +0800 Message-Id: <20220302130417.18551-4-ubzeme@gmail.com> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20220302130417.18551-1-ubzeme@gmail.com> References: <20220302130417.18551-1-ubzeme@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::433 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=ubzeme@gmail.com; helo=mail-pf1-x433.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Roman Bolshakov , Alexander Graf , Cameron Esfahani , Yan-Jie Wang Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1646228839841100001 Content-Type: text/plain; charset="utf-8" Follow the QEMU coding style. Use hwaddr for guest physical address. Signed-off-by: Yan-Jie Wang Reviewed-by: Peter Maydell --- accel/hvf/hvf-mem.c | 2 +- include/sysemu/hvf_int.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/accel/hvf/hvf-mem.c b/accel/hvf/hvf-mem.c index 32452696b6..6b82be3220 100644 --- a/accel/hvf/hvf-mem.c +++ b/accel/hvf/hvf-mem.c @@ -32,7 +32,7 @@ =20 static hvf_slot memslots[HVF_NUM_SLOTS]; =20 -hvf_slot *hvf_find_overlap_slot(uint64_t start, uint64_t size) +hvf_slot *hvf_find_overlap_slot(hwaddr start, hwaddr size) { hvf_slot *slot; int x; diff --git a/include/sysemu/hvf_int.h b/include/sysemu/hvf_int.h index 8ee31a16ac..2c4a97debe 100644 --- a/include/sysemu/hvf_int.h +++ b/include/sysemu/hvf_int.h @@ -22,9 +22,9 @@ #define HVF_SLOT_READONLY (1 << 1) =20 typedef struct hvf_slot { - uint64_t start; - uint64_t size; /* 0 if the slot is free */ - uint64_t offset; /* offset within memory region */ + hwaddr start; + hwaddr size; /* 0 if the slot is free */ + hwaddr offset; /* offset within memory region */ uint32_t flags; MemoryRegion *region; } hvf_slot; @@ -58,7 +58,7 @@ int hvf_arch_init(void); int hvf_arch_init_vcpu(CPUState *cpu); void hvf_arch_vcpu_destroy(CPUState *cpu); int hvf_vcpu_exec(CPUState *); -hvf_slot *hvf_find_overlap_slot(uint64_t, uint64_t); +hvf_slot *hvf_find_overlap_slot(hwaddr, hwaddr); int hvf_put_registers(CPUState *); int hvf_get_registers(CPUState *); void hvf_kick_vcpu_thread(CPUState *cpu); --=20 2.32.0 (Apple Git-132)