Message ID | 20250117134256.2079356-21-alex.bennee@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6000:cc8:b0:385:e875:8a9e with SMTP id dq8csp708567wrb; Fri, 17 Jan 2025 05:54:07 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUIwz1vS7B/N1l01T/qCRc7PafP6FCPQSGtfnA43LPM+1QhHs5Ek4/nlA4dVAXu1HlKyAgimw==@linaro.org X-Google-Smtp-Source: AGHT+IH2ouBDO20lcJmUeRvuD7C6AmEBpmXdVYdr7Ajz0p4a2WVJqe6Js714idqBGJEVtip5kvv2 X-Received: by 2002:a05:6214:2c08:b0:6e1:e90:b777 with SMTP id 6a1803df08f44-6e1b271c2e3mr38051156d6.3.1737122047745; Fri, 17 Jan 2025 05:54:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737122047; cv=none; d=google.com; s=arc-20240605; b=AfUVi5b8K8C4/R8FnZpF0/BNiMmBADuPTof+IGVwpewCT2xkTb6jr37E27z8OwUV85 pghbRbTarP45W5e3KU4bqlzccFTJCchgLMpTpouJF9SSD7R2SoGq3+0KEi21ZW7oOVbq kvyMaMvygoq/MANNdI3HDB9fgnYkuOCMRJia5AcSw/4w6yufDM3RG24bqzfa8yLeS4IZ 50eG3Fd/24blSjNxhwBakQxDq7FEIwCQ10UwuIcpiE0A0Z0+mZ+/Yr9aXf1jXBqxlxax pEs+Kph0wogc2m8F3AehX+H08I0UiIXiHU3jrLVFU46BosJTxNng5nWUjP0ztGrEh5WP zPTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HRiHhaLYBl4Bm0h1nKMlemFfl5RZURyn+9H5B+rbcjY=; fh=yu0InTeBwSZcLajIY49SmB6DXvx9wTO9ThO8p5pbR7k=; b=YgsnXcVNZW7KiPV4U2BUySPRynZ5WSNZu4j8cGxoJD5cwJzyvFitLTkB3O/3refIoQ PSUpAJqrV9zy6cgx3no9SMefrRoSDz26Bj10KIKxuyJhtF8ct+z6Z5BchVsA6LWejrQe cQ35hRAG5Rxc+c6BTpG3WDyI16HwWVGyzGpkSUmPo9vClBvW9N0eRpfTt85OqjJ7fLGR ZcyKnyy3TxaHXJJqzsMz6ReYXROmhHnIbaIQO4IYYJLYQzHnCmrdZHnJBpZ8dpfGxtwN kAA7XIvNN7HHKRnA1PX1saKgj/ow+y24qC0LUbqc9ApSRv20GQtwE4lOqjpEiSveL5cd K10g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dR1vsnJk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6e1afd11644si26321676d6.408.2025.01.17.05.54.07 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Jan 2025 05:54:07 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dR1vsnJk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1tYmm7-0002Xp-KA; Fri, 17 Jan 2025 08:52:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>) id 1tYmlu-0002U3-3W for qemu-devel@nongnu.org; Fri, 17 Jan 2025 08:52:26 -0500 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>) id 1tYmlr-0003l9-63 for qemu-devel@nongnu.org; Fri, 17 Jan 2025 08:52:25 -0500 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-aafc9d75f8bso358460566b.2 for <qemu-devel@nongnu.org>; Fri, 17 Jan 2025 05:52:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737121941; x=1737726741; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HRiHhaLYBl4Bm0h1nKMlemFfl5RZURyn+9H5B+rbcjY=; b=dR1vsnJksfrQFFEocKj3D7Lge1afFj46fFtF4NaPbRLOuIdghv+a/mMEwOYpeGTGfs +UArTt7EHBNFAPGLOkk7B8joC4b/wsjA89xU5OJZaoKDvEUtqkI+upkbwag35s+TQK6B mSKtv8GDDZH+iQXGV6IG9mPgXoCfjRb5B2BThVtNfpD+j47s32khYa5GTObtz4n1KpGH ULcxyg8cQ+0XR2EXau1SFij5blM/q0Rq6yTEW/8HhTJ0kJdvh9wH9nzTKoZAF14OAoK6 nQyRGUHk39qceknFAPoY8J4FHoWpGEgf+9PBaxtqImaxnuvcinjUF7ne1O7QFqnvvl2X /QCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737121941; x=1737726741; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HRiHhaLYBl4Bm0h1nKMlemFfl5RZURyn+9H5B+rbcjY=; b=Or4imgKsp2K8bGgCabnXe5JW5H/9GJOsiP0JS+vmP5Y2jzChS5WUhiHDnIqgtgI/8L LVvNT4gXmhdZHj06FUtfn+FekzKUgV8ptcxUGbFBpujMwAhsCq/dhGjMMyk2Yieq3EzI uPmBzBdlpM7tQl22FeS0IySrHc0Q8k81vhgJJzNljmkp7oV+irbtDcrncR9DCNtMnDVO mjgJRhge1trmTxtUWUM9gdTcnnpH+qPYMWVf72iVWhv0VWd27EWDgI9+7GZMgucDiRl9 PcoFYtL8TvXzqaYYOuEI+712Y3ZsWuau4O8MX7snan2PWYRyHsiejOiVeb2c8dp9ImTM aq+Q== X-Gm-Message-State: AOJu0YxG+eO/Qs1sWVtglK+mHzr6YQ5JJufC6vhx5C+glnY1mrU2R7xy REbMzfQNhYr5iE+KNwDWVS9cOeVmzf9ndCN7oz/mjN97hVrtfcRTYtmIAo8kWcQ= X-Gm-Gg: ASbGncuKWB914mTQh8E3GdRIzHYNtiXNZElvqyGJZu2oY0NCwDer53lv95bNdxUHPdw ewl7NOq359Hy39OhzYNw7W3Du4pNb3ZyagsSWdredxp5S2PUCWH6F8CUgRI+Ru/r2HbP/cgZmul YoLV7brA+ILxXMTH76KOL/UtRxFHEWXVEYmGzwssGl9cFDra+1BHgXZxVOWvWTySDreGrUDNBzs AwyUvxAWwVOepXavWP+xBpjeCdJqXDiP+HU3+T7aL59cHNwsE8WKQ8= X-Received: by 2002:a17:907:9408:b0:aa6:a87e:f2e1 with SMTP id a640c23a62f3a-ab38b4b96d0mr265629666b.56.1737121940714; Fri, 17 Jan 2025 05:52:20 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ab384f8afddsm172613766b.156.2025.01.17.05.52.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jan 2025 05:52:19 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id C78AB60853; Fri, 17 Jan 2025 13:42:58 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org> To: qemu-devel@nongnu.org Cc: Pierrick Bouvier <pierrick.bouvier@linaro.org>, Richard Henderson <richard.henderson@linaro.org>, =?utf-8?q?Alex_Benn=C3=A9?= =?utf-8?q?e?= <alex.bennee@linaro.org>, Alexandre Iooss <erdnaxe@crans.org>, Mahmoud Mandour <ma.mandourr@gmail.com> Subject: [PULL 20/37] contrib/plugins/hotpages: fix 32-bit build Date: Fri, 17 Jan 2025 13:42:39 +0000 Message-Id: <20250117134256.2079356-21-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250117134256.2079356-1-alex.bennee@linaro.org> References: <20250117134256.2079356-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::631; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x631.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,01/37] semihosting: add guest_error logging for failed opens
|
expand
|
diff --git a/contrib/plugins/hotpages.c b/contrib/plugins/hotpages.c index 8316ae50c7..c6e6493719 100644 --- a/contrib/plugins/hotpages.c +++ b/contrib/plugins/hotpages.c @@ -103,7 +103,7 @@ static void plugin_exit(qemu_plugin_id_t id, void *p) static void plugin_init(void) { page_mask = (page_size - 1); - pages = g_hash_table_new(NULL, g_direct_equal); + pages = g_hash_table_new(g_int64_hash, g_int64_equal); } static void vcpu_haddr(unsigned int cpu_index, qemu_plugin_meminfo_t meminfo, @@ -130,12 +130,12 @@ static void vcpu_haddr(unsigned int cpu_index, qemu_plugin_meminfo_t meminfo, page &= ~page_mask; g_mutex_lock(&lock); - count = (PageCounters *) g_hash_table_lookup(pages, GUINT_TO_POINTER(page)); + count = (PageCounters *) g_hash_table_lookup(pages, &page); if (!count) { count = g_new0(PageCounters, 1); count->page_address = page; - g_hash_table_insert(pages, GUINT_TO_POINTER(page), (gpointer) count); + g_hash_table_insert(pages, &count->page_address, count); } if (qemu_plugin_mem_is_store(meminfo)) { count->writes++;