From nobody Fri Nov 14 19:44:04 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=1761223416; cv=none; d=zohomail.com; s=zohoarc; b=Jy6rA3+lFYJpigq6ejqfeDBohZpq3ZqLUYmJNfnIr4R1hLc/vaSU445U7MieUBBPWuWYf30d1qQvYkRXX+Lf5kAegHm1FHoX4HLJ1v3AvoOPg9VVniT8WyAjRQujypWkDht0p/EMy2bR7ge+dCKoZLQpa91KxO6bfxPzuDY3ubQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761223416; 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=9l+w1nsfj7eb94kduqVoiuDLPZOsjod/2Pr03h3L08Q=; b=QaWRde6nFrOg1kSwJ+CzqkkXr0DDK+mitfn+JowYAvyKSQ17RWUCDPaxoA/HdCHTa7AyaYa/LRd/pcwLqd14FYnB4AUYPx0Y4bhh199/yg+FWTYiMMJzbkzpgYtB2dqt5XAPj9M5RJBcDqEU5w4OPf++dFlYi2fmQ9aS7Dr5kZA= 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 1761223416557796.2486787646197; Thu, 23 Oct 2025 05:43:36 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vBuWr-0000BR-MW; Thu, 23 Oct 2025 08:34:55 -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 1vBuU9-0005S7-Vq for qemu-devel@nongnu.org; Thu, 23 Oct 2025 08:32:30 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vBuU7-0008PP-MB for qemu-devel@nongnu.org; Thu, 23 Oct 2025 08:32:05 -0400 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-47114a40161so7543085e9.3 for ; Thu, 23 Oct 2025 05:32:02 -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-475caf2f3bbsm33631015e9.16.2025.10.23.05.31.59 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 23 Oct 2025 05:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1761222721; x=1761827521; 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=9l+w1nsfj7eb94kduqVoiuDLPZOsjod/2Pr03h3L08Q=; b=nx9AS5teKEqtcmenqZmF2xAq0T28aFKE6tSTB4Os++/syJhpCov9vwuJa9HTunSSiY 6BPytLYGidq5v1IQfdpRdgVVfrSnpXfDiW7r/HNB7vZHcO32K4PxNkNWnvystOTR2iYe hDxroJeE/GG2adcDUM0lVSP3lBnyHsd5kGcXfmS+5cLWe5Gbtqe4XB3WUwbiC90aWZbc Sm7GYM7ZcFD5kEpyYcSSax8aqbFhUVmR1mPET8i7ONbxTcMC5IBp6lRUx5PcrXB7Ldd5 p97pPD4H/VNzM3WeaFdSet2aKmyxBpm1eqJx/sciCJam6Dosg7jZBDiGKUdgdCDr4rf8 DGcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761222721; x=1761827521; 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=9l+w1nsfj7eb94kduqVoiuDLPZOsjod/2Pr03h3L08Q=; b=Mfcyt3dUwQSiNzvroDfy/xUTKOFhJHVR4xu4INmA9XpnpLaEV5q94/iKLv6c8kKYa9 sCFNLTs4fhf9ae5oe3LQxY8ht+LoXMeKR2mgrma/UZkly68fWH0eY+3gCvLp9u0oSQKb Q+JgPUVk64skZjJ3gI7MrqXcpEia2aupxQGtsMb7VPP/q4MPIrJlN3nltQK8+lNIs47Q 5git/Rgxh+gWjOkoVORybKhbwmV1s7bgLqvmUygHC2hNUKFoaWgxGisO0Hu8B9P8Evud sjjuaT0/9QiLV9FqmjUY61x8Sqm7iVxvoVRBmEqFtR4onZ/OnbzuH1UmyZYet7Q38usw Uqvg== X-Gm-Message-State: AOJu0YyEu/IbP3V8if+7zdVCxtrcoaUVZtn73W7XgnMk5VNPXvHnpHDD W0JPqhuCkd3btr2BvEgxqth48NtJf/s758cW72qAtKPWeiqCIYuDExdLRncZB6oMXWQobT8wIpq lRoQIbx4= X-Gm-Gg: ASbGncvvn4lHWFmza+wmne0h2W0+qa8Kt2VOMJ6iGNf+ndaEpHb1MEOy8Lkk/YKsgmt JFm0lqxAtq8yTlmLNxTbX6H1UFCpfIyGDU6UV2WSvdhDWl4/Xo7IP2N4BK0Gnlfzwq5N1JrQfaP UQu+cVqhCtw5rLrvrvYa7NhbcvsCHP3zs05NUkwQPmjxPM/kenLrScJbrqChS+7/AVkNZ6SQkZQ G5W6aeKuoLjAvFjbaw+y5OusgVCYQhvgXobt82absJzZyf10Zp3K8juOQIBFlT70Ww0j8wmGaCM CCOG0xWzr1rld1X0eVJTs8wYAynEeem02O6On7VRrTl8A+aVUl7moif2dSAIKsO/yDw+EfZmT34 SdJP7SX7vnxW4rC7NOE3nJlzyFNTD57qf/zZBXrx8BLkfQvV95viZ7X/sZltahTNsEHjOBN/eQo 19rZHdLf8ZhdLe9r0tDGMBoboOJHGnMYjEcGQxC+avcgJwXd23NK4py+Xx2e+z X-Google-Smtp-Source: AGHT+IETxxUJfbx3hoR0IcW9MNoW4fy7+zlHuvFHzgttNLdDRW6lfdagCJbsdlxIesvp+Mpzsbii0A== X-Received: by 2002:a05:600c:190b:b0:46e:3b1a:20d7 with SMTP id 5b1f17b1804b1-47117903f8bmr186588785e9.19.1761222720620; Thu, 23 Oct 2025 05:32:00 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , Mohamed Mediouni , Peter Collingbourne , Alexander Graf , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-arm@nongnu.org, Stefan Hajnoczi , Mads Ynddal , Phil Dennis-Jordan , Richard Henderson , Roman Bolshakov , Cameron Esfahani Subject: [PATCH v2 53/58] accel/hvf: Add hvf_arch_cpu_realize() stubs Date: Thu, 23 Oct 2025 14:31:37 +0200 Message-ID: <20251023123142.8062-4-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::32c; envelope-from=philmd@linaro.org; helo=mail-wm1-x32c.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: 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: 1761223419589158500 Implement HVF AccelOpsClass::cpu_target_realize() hook as empty stubs. Target implementations will come separately. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Reviewed-by: Peter Maydell --- include/system/hvf_int.h | 2 ++ accel/hvf/hvf-accel-ops.c | 2 ++ target/arm/hvf/hvf.c | 5 +++++ target/i386/hvf/hvf.c | 5 +++++ 4 files changed, 14 insertions(+) diff --git a/include/system/hvf_int.h b/include/system/hvf_int.h index eab443aa91f..3120a4593a4 100644 --- a/include/system/hvf_int.h +++ b/include/system/hvf_int.h @@ -110,4 +110,6 @@ int hvf_update_guest_debug(CPUState *cpu); */ bool hvf_arch_supports_guest_debug(void); =20 +bool hvf_arch_cpu_realize(CPUState *cpu, Error **errp); + #endif diff --git a/accel/hvf/hvf-accel-ops.c b/accel/hvf/hvf-accel-ops.c index 744a5288298..6fb1fda424c 100644 --- a/accel/hvf/hvf-accel-ops.c +++ b/accel/hvf/hvf-accel-ops.c @@ -363,6 +363,8 @@ static void hvf_accel_ops_class_init(ObjectClass *oc, c= onst void *data) { AccelOpsClass *ops =3D ACCEL_OPS_CLASS(oc); =20 + ops->cpu_target_realize =3D hvf_arch_cpu_realize; + ops->create_vcpu_thread =3D hvf_start_vcpu_thread; ops->kick_vcpu_thread =3D hvf_kick_vcpu_thread; ops->handle_interrupt =3D generic_handle_interrupt; diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c index cc3f22ac542..759fa2e4d7d 100644 --- a/target/arm/hvf/hvf.c +++ b/target/arm/hvf/hvf.c @@ -979,6 +979,11 @@ int hvf_arch_init_vcpu(CPUState *cpu) return 0; } =20 +bool hvf_arch_cpu_realize(CPUState *cs, Error **errp) +{ + return true; +} + void hvf_kick_vcpu_thread(CPUState *cpu) { hv_return_t ret; diff --git a/target/i386/hvf/hvf.c b/target/i386/hvf/hvf.c index 8acdfa952c1..168227af631 100644 --- a/target/i386/hvf/hvf.c +++ b/target/i386/hvf/hvf.c @@ -368,6 +368,11 @@ int hvf_arch_init_vcpu(CPUState *cpu) return 0; } =20 +bool hvf_arch_cpu_realize(CPUState *cs, Error **errp) +{ + return true; +} + static void hvf_store_events(CPUState *cpu, uint32_t ins_len, uint64_t idt= vec_info) { X86CPU *x86_cpu =3D X86_CPU(cpu); --=20 2.51.0