From patchwork Thu Jun 19 13:13:13 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 897992 Delivered-To: patch@linaro.org Received: by 2002:a5d:5f54:0:b0:3a4:ee3f:8f15 with SMTP id cm20csp817120wrb; Thu, 19 Jun 2025 06:18:39 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVtt+40Q9ggXwQgAt2tF495yFMdVyE6Df/DLtvsYPwZjLtZQirbf410hd5COGMBVXRfpy7sdQ==@linaro.org X-Google-Smtp-Source: AGHT+IFiTxuDWKF/hALs9nbZlMx0kDpWSUUDXWZ1eqIfmXiUtsTYoiKbLqemSILP1chQGdn5aDN4 X-Received: by 2002:a05:6214:d61:b0:6e6:5e15:d94f with SMTP id 6a1803df08f44-6fb47778512mr359922816d6.27.1750339119508; Thu, 19 Jun 2025 06:18:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1750339119; cv=none; d=google.com; s=arc-20240605; b=Vg97TkzbQTelsZSd+T9KbUCOI2kmH4tweUd7zTdi1i2GuzUe4YzQ+VD6G/purUmuNV py7xN49CaUqxpqNFq5roqLaRTuKFI3o8zIDamiQNt2MthuKZrR3Ku2xm2fp5ZOVyr/Rq 9rfxkAi0LJno0zvWxb2MfPmF0gZqIOwjgSBCkgPDK8cyzWs/SYgfOqh/W8UDlbX67LIV WmcuS67hFUuTQMelWlisP0BeNT4u4Zj0QSmb5tOa8WrTo12k/hWT0f/Hj0x9B3fnd8uY 5ZmoWYLpA74PFvr0FNw+E7gRP4QGr1rO9ueOlZpvI5ySMRknIYaNf8CtAu3rchIkQyYD h7PA== 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=vBwegXGmW2xI9QNEHAmJjIKzsQveZBksCJkfDcZvi14=; fh=HMBMEYbXwbwG+LSk9/wtQ+/LHaozQ4G5WTAv5SKNxMo=; b=fe7It+ik3ZMhywDVtzV6m7xWV9AS2AIc4YX0wn2YZK35PgFN2iJQzaPhWK37/EKkbz G6hJf/672gEZTwvojuhoIuCgtAeb2cum3toI9VND2jryvvp+siK8+XXhWE7DGt1RjGkl 3vHgvMlvikOQLQHsw6vDPFEKFquWWzB1KpmMAlu9DT36czO+1xyTEFYh+BAgLF8bmg/7 PTspYsjCN5ldfmVSDYXbDYwCqTVrfQjReNU121Q1d76OFl+xJ+DGnXXldQyeL/5uF3u0 oXP0megHtwU2y6z9Xg8h776NFcqMzIb77/n4YacX0fpM0r/6Rc0C1C+30IOZHtgxwoJ/ 5EfQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UUThBdmU; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7d3b8ea7b5esi1700927885a.291.2025.06.19.06.18.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Jun 2025 06:18:39 -0700 (PDT) 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=UUThBdmU; 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 ) id 1uSF6Z-0004m0-Ui; Thu, 19 Jun 2025 09:15:00 -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 1uSF6H-0004S6-Ef for qemu-devel@nongnu.org; Thu, 19 Jun 2025 09:14:42 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uSF6F-00043p-Dn for qemu-devel@nongnu.org; Thu, 19 Jun 2025 09:14:41 -0400 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-3a53359dea5so494907f8f.0 for ; Thu, 19 Jun 2025 06:14:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1750338877; x=1750943677; 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=vBwegXGmW2xI9QNEHAmJjIKzsQveZBksCJkfDcZvi14=; b=UUThBdmUIe22DkfqJibiyCvQvqYfB4ylLJ4pLuUVr9kNRAZcjLOs+1BQqoSEXaVTin VIBg+wUAxVwx895dqg6qEQcEH31N5zRRS6XmgYJr+JXezvASO5UnT7Lqz7jFSebcOSbj Qbv3SWuwfP2tNyV7pcj9WLTMA3EazBi3IkvERLgy3UTvHVvKiTHbmwX+lHiQbFGzsnEa R4eASb0gZap12XimLzhgvc3eizOrkotsMGje2BguUZ6WRX4wnpeeh6XzVIW+7VjpWNtH NDaokPz8YsmbOTIibasXrBq20357IvtJjQYTwKTPZ2wgaqpljURL9ceg1ygJGYVm/w4E Rhbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750338877; x=1750943677; 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=vBwegXGmW2xI9QNEHAmJjIKzsQveZBksCJkfDcZvi14=; b=KjSPB0Snf/GWH+A9qv6hTrEwb1cwHmPIdN2aqvk5zQbccOJCjDaywyC2hVNOD4SqT1 5OvaORRetTx17LjP0ZW+5CR9sSWAGrpFFhBHuFvyzswDWuIjkZJHBaX8E5trvRb6ISF3 WcW7iyqVPGytkXDMy0gdV2x1SojqVNgliSMy8l96ro613+xKKk5QiKTA6dvOZR+M2YE4 CT6gKS1ojSpA7Pz/a5J33S+SEENwE99wcbzpCFBecakP2OIBU9ZZt1qVL419aXv5jgJP y9TXIp6lojteg7lo0Wtumhrqd9G5m5tfMEcWxzCAtDdNnOr8tUib+vmr2ipGKvhQEXI7 jBvA== X-Gm-Message-State: AOJu0Yznus3XaFMhS0UGugy012DHAnvvGD5XNWSQKZLQsepn14ocIX3S WUBXOueTavNsgD9ICea4P3FJid1mbzR/HWwkAWdLSVl0d1+a7RRDdXjihL0sBdNz5UfTbvdBRXT +VdzpGJc= X-Gm-Gg: ASbGncuw7jU1MjBcarkxbJICw8y4IcN5tVd7XEwtgttN40xirjuF0MQjKxbunpfHQ50 ZzvpgxzCvgpuF4dFZbD7EQVPmHXl+SSb+2Be2dRoo3vloKKa2mOAPZmuMtMYlybSI9oD8ypp55F AYXuAgTQxnMocIZk/O0hGoWX2S0I0pBUv5owd6CYYOd+DOTderoSSpdsUmjFxoXwFMVJwTUZDDF 1G7sMLsVtfal0penQuYp+zVFaDIqz4u8qfMtcijpN/X2O3LnqjfLFw4aqhue2oTkqjOANf8OL+R mbizoGlsSWp4PyLcL9itXqHcxL8+oQBNUXD3M1krTO1+R9bCdJ5x8Z0K6+ByWAz4vInAmuF0dBA K8h7mshUssP0Erlx1PnYqzzgpYWr6Hc+cpSJi X-Received: by 2002:a5d:64ee:0:b0:3a4:f744:e00c with SMTP id ffacd0b85a97d-3a5723a2dafmr16025163f8f.29.1750338876992; Thu, 19 Jun 2025 06:14:36 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a568b7741bsm19777232f8f.98.2025.06.19.06.14.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 19 Jun 2025 06:14:36 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Cameron Esfahani , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Julian Armistead , Radoslaw Biernacki , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Phil Dennis-Jordan , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Daniel_P?= =?utf-8?q?=2E_Berrang=C3=A9?= , Paolo Bonzini , Peter Maydell , Leif Lindholm , Pierrick Bouvier , Richard Henderson , qemu-arm@nongnu.org, Roman Bolshakov , Alexander Graf Subject: [PATCH 14/20] accel/hvf: Add hvf_arch_cpu_realize() stubs Date: Thu, 19 Jun 2025 15:13:13 +0200 Message-ID: <20250619131319.47301-15-philmd@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250619131319.47301-1-philmd@linaro.org> References: <20250619131319.47301-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=philmd@linaro.org; helo=mail-wr1-x430.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Implement HVF AccelOpsClass::cpu_target_realize() hook as empty stubs. Target implementations will come separately. Signed-off-by: Philippe Mathieu-Daudé --- include/system/hvf.h | 3 +++ accel/hvf/hvf-accel-ops.c | 2 ++ target/arm/hvf/hvf.c | 5 +++++ target/i386/hvf/hvf.c | 5 +++++ 4 files changed, 15 insertions(+) diff --git a/include/system/hvf.h b/include/system/hvf.h index a9a502f0c8f..8c4409a13f1 100644 --- a/include/system/hvf.h +++ b/include/system/hvf.h @@ -72,6 +72,9 @@ void hvf_arch_update_guest_debug(CPUState *cpu); * Return whether the guest supports debugging. */ bool hvf_arch_supports_guest_debug(void); + +bool hvf_arch_cpu_realize(CPUState *cpu, Error **errp); + #endif /* COMPILING_PER_TARGET */ #endif diff --git a/accel/hvf/hvf-accel-ops.c b/accel/hvf/hvf-accel-ops.c index b38977207d2..b9511103a75 100644 --- a/accel/hvf/hvf-accel-ops.c +++ b/accel/hvf/hvf-accel-ops.c @@ -588,6 +588,8 @@ static void hvf_accel_ops_class_init(ObjectClass *oc, const void *data) { AccelOpsClass *ops = ACCEL_OPS_CLASS(oc); + ops->cpu_target_realize = hvf_arch_cpu_realize; + ops->create_vcpu_thread = hvf_start_vcpu_thread; ops->kick_vcpu_thread = hvf_kick_vcpu_thread; diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c index 1fbfdaed59f..632751d1eab 100644 --- a/target/arm/hvf/hvf.c +++ b/target/arm/hvf/hvf.c @@ -1078,6 +1078,11 @@ int hvf_arch_init_vcpu(CPUState *cpu) return 0; } +bool hvf_arch_cpu_realize(CPUState *cs, Error **errp) +{ + return true; +} + void hvf_kick_vcpu_thread(CPUState *cpu) { cpus_kick_thread(cpu); diff --git a/target/i386/hvf/hvf.c b/target/i386/hvf/hvf.c index 99e37a33e50..28484496710 100644 --- a/target/i386/hvf/hvf.c +++ b/target/i386/hvf/hvf.c @@ -367,6 +367,11 @@ int hvf_arch_init_vcpu(CPUState *cpu) return 0; } +bool hvf_arch_cpu_realize(CPUState *cs, Error **errp) +{ + return true; +} + static void hvf_store_events(CPUState *cpu, uint32_t ins_len, uint64_t idtvec_info) { X86CPU *x86_cpu = X86_CPU(cpu);