From nobody Fri Nov 14 19:43:54 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1761220479; cv=none; d=zohomail.com; s=zohoarc; b=jBnZ/C/D4XL14QzvebOjtjiC7UTHFFxv2Z7SNgzb7ZHr2CgE4X1+/qLbsHovUAkcWgHEXWpyaY8EiqhwV8woJwd8xIBSlWjK2YFmOtSb9RSHD91+efuC0XeoHiIj4ROeiZeCh+ZgSCWbrMG41XbimrOyGpTGUpO7/pI2GPfXOaI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761220479; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=vLxjW3kGnAkcgz1GaQCATP0ZMz267FP3u+/JVs3d3vU=; b=XDz9OoHoEBOum5oIImD1k3dG5y184Wjh4IAuEp13wgMg/jgXcKUz2tJl14egexT4MDIuE+vBNJSwpX8aQ27wJrfUcgad/GArLFsW/eV1FbhrHRkjhH8ick6HIyMt6JCixc3xNL/snwMj08eFHUmVVoWIe5/eOz48X+OwTKzFWs8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1761220479972583.0784786549852; Thu, 23 Oct 2025 04:54:39 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vBttb-0006r6-0J; Thu, 23 Oct 2025 07:54:21 -0400 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 ) id 1vBttO-0006gF-EW for qemu-devel@nongnu.org; Thu, 23 Oct 2025 07:54:07 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vBttM-0002gW-G1 for qemu-devel@nongnu.org; Thu, 23 Oct 2025 07:54:06 -0400 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-47100eae3e5so7287145e9.1 for ; Thu, 23 Oct 2025 04:54:04 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47494ae5510sm58251365e9.3.2025.10.23.04.54.01 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 23 Oct 2025 04:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1761220442; x=1761825242; 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=vLxjW3kGnAkcgz1GaQCATP0ZMz267FP3u+/JVs3d3vU=; b=xdVCJNAeI7WAKLJpuZ4vJadz8jAGNT6KBRd2BYeCV3w8EMtSLgVla7isw+vEvDJ7gt pf+Q/lDDsdW5DJsfbNgbeCBXpwFeOqWOtNDutMKRkrOnFVzfLsmf3ySVCLeXf3uV2cEC AWurrB6Cxk1K6zixqGNDGPxQJj+dFAquhVqXGkKcJ5d3GYx03sPibGW+AbPruGQLnUwd VDsOZLkKUYIiWmiowkEy0BqZQv0gIm14PojG0QkPUEsABMTYHEpf+fpR+9G0Vm1dF+j7 Uvk+Cc6PxkhMnkahdpiJO9w5Nf0mcGWhy9cYZlYmlwC0SxekaTXTjDQ5YTyV9zemHOJB lC4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761220442; x=1761825242; 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=vLxjW3kGnAkcgz1GaQCATP0ZMz267FP3u+/JVs3d3vU=; b=e13kpFOqL15Hnl3CVA+0TYBBBw5ys3NKmvSII7OO2fAC/YRu38ARliIeoqt+ggXdGx S0mcyANEiC+WrE3NIq7OjhQu+E3lPxbw7StlB83rLdyFgAafYQInc1J464Zj+hwSURj2 IuLnN7rtDPLSc9eZazyX+wiBPIjwrF0FsxPkRryM1ffaI/3A7Te6xGULG+R2cVXcsivK pvy6/0URKQxcGpFQ1DDxoAUsnAC1A3atKm/+wG3aIPe6om5kCozhGQGMuBdQmNvoT6fM h3MDcOGsL31IB/au74Ixi8Gr8eidPo4tWu70Whsq271pIHMbqgASXEODiw8GlRuADK7w HYyQ== X-Gm-Message-State: AOJu0Ywa6U/locuhiAZL4urQ1g6RtbbuOlsbRLnZ8CpFe3VnmpNtyixB L0yphLNp/IXTTMhbCynKGsvpjqY/64BIue7uniV0v9gbgOAMJTBLdK7bPnQNijwG/5eh6mtWX6D uBLecbF4= X-Gm-Gg: ASbGncvnYDxZF6TPjmzbFiwxrJhKtN4ZrL5MQSI+nOLog1Bt1Cv839uOvvmawahECL9 levQv8V7e5JkJXwX3DdRF/7HQwoD7nMWA8aZ+tpE7ug/C8NCDe1+0BYzAtK71rqPcZSsaQGc8k/ pjncp+vBKkE8sH1CX3+e0yo263nSEW/0ilUcVB6V1z75y0fnjoAmSsX9CWCUXQSWkmkmAkMOWtK qXeG0s1unoLguH63vNEQ+zjHJQq3NwmyGJjDK6DYrLIHeVY+dRZNfUL3r53zol6YxLG3E42sr3t sUL/NmrxBWF5in2sRAS8keWCVC72fg3FP/TwFq9ISXeK2DXIg3PaNXHdtCBrsl2SqWO34FB+FvB /Na6Q4zTD0Jd879dpGvUzjum3nCRetDStIlkm6HjrCoUVkzkxpQTO3ysNN4YJI/k30MIJ25WuU4 qHv/CrOUnRG1WHHRLcI0CPz1WVtxONVKwB+35e0IWkJRBGX1KKDSe2guA8i00B X-Google-Smtp-Source: AGHT+IGY16BhHQsHiZOVCn3Tj+DCOd/FlYhKEtMNlajydXKGb3mFmPJVbPfE23y/uVEYjLK3mU+zjw== X-Received: by 2002:a05:600c:354a:b0:46e:59bd:f7d3 with SMTP id 5b1f17b1804b1-47117903f24mr160650345e9.20.1761220442544; Thu, 23 Oct 2025 04:54:02 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Mohamed Mediouni , Phil Dennis-Jordan , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Cameron Esfahani , Richard Henderson , qemu-arm@nongnu.org, Peter Maydell , Peter Collingbourne , Mads Ynddal , Roman Bolshakov , Alexander Graf , Stefan Hajnoczi , Paolo Bonzini Subject: [PATCH v2 40/58] accel/hvf: Drop hvf_slot and hvf_find_overlap_slot Date: Thu, 23 Oct 2025 13:52:51 +0200 Message-ID: <20251023115311.6944-11-philmd@linaro.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251023114638.5667-1-philmd@linaro.org> References: <20251023114638.5667-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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=2a00:1450:4864:20::336; envelope-from=philmd@linaro.org; helo=mail-wm1-x336.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=unavailable 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1761220482425154100 From: Richard Henderson These are now unused. Signed-off-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 --- include/system/hvf_int.h | 13 ------------- accel/hvf/hvf-accel-ops.c | 14 -------------- 2 files changed, 27 deletions(-) diff --git a/include/system/hvf_int.h b/include/system/hvf_int.h index ee7ab689f45..d842d4b2b99 100644 --- a/include/system/hvf_int.h +++ b/include/system/hvf_int.h @@ -24,15 +24,6 @@ typedef hv_vcpu_t hvf_vcpuid; typedef hv_vcpuid_t hvf_vcpuid; #endif =20 -typedef struct hvf_slot { - uint64_t start; - uint64_t size; - uint8_t *mem; - int slot_id; - uint32_t flags; - MemoryRegion *region; -} hvf_slot; - typedef struct hvf_vcpu_caps { uint64_t vmx_cap_pinbased; uint64_t vmx_cap_procbased; @@ -45,9 +36,6 @@ typedef struct hvf_vcpu_caps { struct HVFState { AccelState parent_obj; =20 - hvf_slot slots[32]; - int num_slots; - hvf_vcpu_caps *hvf_caps; uint64_t vtimer_offset; QTAILQ_HEAD(, hvf_sw_breakpoint) hvf_sw_breakpoints; @@ -70,7 +58,6 @@ void assert_hvf_ok_impl(hv_return_t ret, const char *file= , unsigned int line, const char *hvf_return_string(hv_return_t ret); int hvf_arch_init(void); hv_return_t hvf_arch_vm_create(MachineState *ms, uint32_t pa_range); -hvf_slot *hvf_find_overlap_slot(uint64_t, uint64_t); void hvf_kick_vcpu_thread(CPUState *cpu); =20 /* Must be called by the owning thread */ diff --git a/accel/hvf/hvf-accel-ops.c b/accel/hvf/hvf-accel-ops.c index 3e5feecd8a7..bbb0b385fe9 100644 --- a/accel/hvf/hvf-accel-ops.c +++ b/accel/hvf/hvf-accel-ops.c @@ -64,20 +64,6 @@ HVFState *hvf_state; =20 /* Memory slots */ =20 -hvf_slot *hvf_find_overlap_slot(uint64_t start, uint64_t size) -{ - hvf_slot *slot; - int x; - for (x =3D 0; x < hvf_state->num_slots; ++x) { - slot =3D &hvf_state->slots[x]; - if (slot->size && start < (slot->start + slot->size) && - (start + size) > slot->start) { - return slot; - } - } - return NULL; -} - static void do_hvf_cpu_synchronize_state(CPUState *cpu, run_on_cpu_data ar= g) { if (!cpu->vcpu_dirty) { --=20 2.51.0