From nobody Tue Feb 10 02:55:20 2026 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=1768214022; cv=none; d=zohomail.com; s=zohoarc; b=ELQPFI7RE4cu0B2zycRtMUZhMOscZ1iEa8A6rpqjYViUC88FemQBuPYbWtMGfTMIyPANs3s6lGpac8Z1OkuOrGJXaM3/eZiFu1O3GT7uiixyylVd/XG1kCws732H9FfZPyXR9Ji2S6GOgdVJplcNkYxuiobcDx6eiQofuVqYLdI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1768214022; 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=5S99U3XUshmuddLFuBd6ft79OtosHUhtCtEVlD+u7mY=; b=IpbLXg3I/r3IrEopX4dI4Yn7FAcJ8rovf2+j5JKTcmsQQiabWUwgKBJX5MOoBoljMZPyI+5cI69Sj5lqSDXq3nrSHD1RRyMdMONcqqRzlIiksPr8xakF4LX+P4iBdaRzown78TjcZw2yd4YVHwyqL2XkIa2NUIv5JDypwDRhLTA= 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 1768214022206978.2738135634808; Mon, 12 Jan 2026 02:33:42 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vfFDr-00062v-O5; Mon, 12 Jan 2026 05:32:31 -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 ) id 1vfFDq-0005qn-5T for qemu-devel@nongnu.org; Mon, 12 Jan 2026 05:32:30 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vfFDo-0001uC-Fg for qemu-devel@nongnu.org; Mon, 12 Jan 2026 05:32:29 -0500 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-47775fb6c56so59046845e9.1 for ; Mon, 12 Jan 2026 02:32:28 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47d7f6ef868sm341578045e9.11.2026.01.12.02.32.25 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 12 Jan 2026 02:32:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1768213947; x=1768818747; 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=5S99U3XUshmuddLFuBd6ft79OtosHUhtCtEVlD+u7mY=; b=L0lI1o+tQ3J2yddKgVJ9drl1h3b03p9tClBdJuAjRBINN8IHgi4pOe3B9+i7h64OAh a4kycf35AgHrtmeXvuIAZrekhahUziiM61KO8nFurypWYCiz9eWmK1Zj8/iL6NSqPayD RlGVfI9sOkvDjoYr+NAKt7J1/E1BA1h8PC9VjpFuUQxme5NKSz5mtVqlQn5aA+ebmtVH PDKtSc8V7/a5na7QtrWrvgo7AUDx7QZ30YXZCGCCLBLW8x8oS4oeyR5nRLSxhQGCLN47 ZaXSeWqKnr03I0/JA7b6km3UoTDF5XNpie2gAa7iXt5mM7oZpxvHfL1uxan7Nqo5pbqy ZggQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768213947; x=1768818747; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=5S99U3XUshmuddLFuBd6ft79OtosHUhtCtEVlD+u7mY=; b=Rj6xynnXfwC0QWqfoJMjc37p7es2fK8avc0Dw0G0/C5X7Y6Jw3jiXi+1uicmJ/auY+ BTgLw0dW7/2UDVOLuk/nUSNUqbk3JAoZy31NMUaQYW0qaIzhI4v5PdYk+rNjmXTu/tOZ HVhUSX5wQ9rF7CryskOyS3aMvNqbSB9l2Or323oo3jkqzRbBqV7+0wRPbxSi3ktWakUf 3Dd0OBWieADj+0ZpVGJMxJyAOt1+BTDfXLtiMC4S4paWOLTbojD9uZHG7ueJ3cpSFhsB deJuClF7ZNp6Z7DhI9Xt5+DCIW+XO2QeoDrrhdYMJCnoPfIdQI9Enc/eGxMcAVQbaefN K/0A== X-Gm-Message-State: AOJu0YyyMlxNGhkWBsXIIJ5WA9KPeWGBMICSqWElHT+0HSrM797IW/Yx xkxGPznrABVINrHCQMWxFpXfmyEOpGfbDZC5wnJbC9iH9cPoKEkM+AKVBnJE2RE4TRlai50JbwM s5OWOP9g= X-Gm-Gg: AY/fxX49geeEOzKkzrGF1af4V+wHUbDqQNCLQakdnw5/GsT/lHIUFaB3IcC4vrTwdTD uDMx4GLq2IRARMIg7s/ulFn8k9LMt08rUpUBAwZkdM8KjMzLOh2EuxsPYiAumVk2wGa3knx9HKp kS1Ud9HAYybj8cjh9r9sMfvbo70syapV4MWv1d1QSjudTGlmB7d/ViDPlthpZsOw8VLuQSdtoYY 6rNC9umhIM8NKUL98nhkdf0YREDMBKwcVWaz+Br9Fl8LkoqOp6uJzLttibJXs8vKYroRvX9cgg3 XS4Z1VVI1WQYLr/lFn2CsfO9c2IS+6ChhOIB5ModQniIdC18CB0ML9/snChUGIHE6E4j2rGt0rO 9HXCdcogynoL/g4LMhn0m0wUbT7RGUHV9qD7Or+Uu3X/AENtwTtWEQzCK9UWN38wIWhbyirbm6x UXkt6dTu08F3z73tXRRhTueykI9/llOiItzXsNuQdXO0RAecdtMYXFvUXQYAxp X-Google-Smtp-Source: AGHT+IFg6iH9BJeHq4aOiqxHsjm/MD6f+vy1OWo+rbxM1fwDMXT1DjWBv/68mkoS6E7clyHMfcuiow== X-Received: by 2002:a05:600c:630d:b0:475:e007:bae0 with SMTP id 5b1f17b1804b1-47d84b1fbeamr234567095e9.16.1768213946620; Mon, 12 Jan 2026 02:32:26 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Joelle van Dyne , Mads Ynddal , Phil Dennis-Jordan , Nguyen Dinh Phi , Mohamed Mediouni , Cameron Esfahani , Roman Bolshakov , Peter Collingbourne , qemu-arm@nongnu.org, Akihiko Odaki , Alexander Graf , Peter Maydell , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v6 16/19] accel/hvf: Add hvf_arch_cpu_realize() stubs Date: Mon, 12 Jan 2026 11:30:30 +0100 Message-ID: <20260112103034.65310-17-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260112103034.65310-1-philmd@linaro.org> References: <20260112103034.65310-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 (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::32e; envelope-from=philmd@linaro.org; helo=mail-wm1-x32e.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: qemu development 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: 1768214023472158500 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 Reviewed-by: Akihiko Odaki --- 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 c8e407a1463..96790b49386 100644 --- a/include/system/hvf_int.h +++ b/include/system/hvf_int.h @@ -106,4 +106,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 ffcfe9663b5..b74a5779c3d 100644 --- a/accel/hvf/hvf-accel-ops.c +++ b/accel/hvf/hvf-accel-ops.c @@ -356,6 +356,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 718414cc53c..bf8bed1495d 100644 --- a/target/arm/hvf/hvf.c +++ b/target/arm/hvf/hvf.c @@ -972,6 +972,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 e3e54c10bd5..089dd4da1ff 100644 --- a/target/i386/hvf/hvf.c +++ b/target/i386/hvf/hvf.c @@ -370,6 +370,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.52.0