From patchwork Tue Jun 10 12:56:22 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: 895204 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:ecd:b0:3a4:ee3f:8f15 with SMTP id ea13csp2253713wrb; Tue, 10 Jun 2025 06:06:51 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUA2ClZaxHE/YLPoM12BGQvU/Qkg8HgHYgmP50I/Fi5RnYc4v29shX8YS0ym/+WdajR+hgiaQ==@linaro.org X-Google-Smtp-Source: AGHT+IHylWhHN6KuSYn8OY8DytuORtQ/X2Sw9KmUjl434zzH2F7+XOZf9ot+3Rh3RrmD2Agzb1ky X-Received: by 2002:a05:6000:bc1:b0:3a5:34ea:851e with SMTP id ffacd0b85a97d-3a534ea8556mr10103102f8f.25.1749560811550; Tue, 10 Jun 2025 06:06:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1749560811; cv=none; d=google.com; s=arc-20240605; b=BGNJQI3DjmcIpP64bYZwGg3xbcXtq5c5bSzw5hK9lL51hM2tPw3etWOh2cKzApdzI4 RhWOvPyAFM2XIq3/UFEH/omwqivDZuPcQz1vAkW95UwV1dANcqBzninTXCdqp5vE5KVT 16WLv20SdN3hNKO0RXh01IcK4ZTOx4PsYwXvO76stzV+uIaVUmXMR2BtejYU1tlKJx80 x5/vl3byFjmvS+8ylQq3Ua6ZhZrHO8+xluPtbzu9y/x3ZrIerQfXrUwuQ/DYKTiIcDZ9 ySe/iN/tZFM6WkDNZWuCuWYeFSu3STFX5gXb7txLlRylHgLuUDvqjsaj0JEZK0NZTzXr J4tw== 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=8T1V36v8wKP/BAz1gGD+Xad///zXpxrmTwUCr9UV/II=; fh=qtn8prgQtzf5IzCNvLChUZDElvNECP6ej9YfjQeBz3I=; b=VGIkZTE8EZIN+tk1UZriM3Hz/lp/TyVruCnd1FMn9x2vnNDGf+JBQSh/QIEl8A2+oc SJuDX9h2GA7FuqeLCAeWzyHoTZaA4bqb4Nz+0npqXfudXb2/ErgMuZTeUVf2miGGrYkR Z40GeUsqRC8H6ri7YLC9zjys8KU4UmrsJCwf5nlr7nfCjpWa55axUXpiSgPIOGiYST7K qko1MdjGmljFTYNbj0NKPosdRLttvwNzq1uRG++hkZJ9VEkbUzx2JrmWCs8vA2nsw83b tc5b7X6KH7JsDdueeB412faU2FaC9YjXkqB2cru8YrL2kaXqyUpZW9kERHVoFoaGVW7P /kbQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XBu8lyyb; 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 ffacd0b85a97d-3a53247d81asi7214400f8f.605.2025.06.10.06.06.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Jun 2025 06:06:51 -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=XBu8lyyb; 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 1uOyZM-0008Ld-9n; Tue, 10 Jun 2025 08:59:15 -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 1uOyXs-0006s9-6Z for qemu-devel@nongnu.org; Tue, 10 Jun 2025 08:57:40 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uOyXq-0002eX-9j for qemu-devel@nongnu.org; Tue, 10 Jun 2025 08:57:39 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-45305c280a3so9663725e9.3 for ; Tue, 10 Jun 2025 05:57:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1749560255; x=1750165055; 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=8T1V36v8wKP/BAz1gGD+Xad///zXpxrmTwUCr9UV/II=; b=XBu8lyybs2/KKFcY5nEYlnij/fKrOspIPrY+P2TsN+/J24SlhE6mIVAARma9F5wIgf Gtgnc8+ESsY0Iz7QdKA8pZoVAu7TDgFP/CQRMCH6Ip1xtv7MYYy2sUVpRl9MOrBT7ifD Ox+Dz8WgChRP2HDHdLnBidBLrV72b3TmZzWMYRfW1uRM3ht6dSI8H7Cng9OM6NebNCGm r5pE7q9Wfp4P+mE2cztmzaYZr7qsJD8BNvn53e+HZNHOrh4/aZFFQ+5UKnks1rGByysh EuZQZXCFuzcxizwLCkf3DuGqxBZdm60lK/QuK6R8GBvgT4J0HfAZ6xd4jHx5ha+kr2Ou K0yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749560255; x=1750165055; 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=8T1V36v8wKP/BAz1gGD+Xad///zXpxrmTwUCr9UV/II=; b=vdkqJFCLXY2od7QnT2j5m9t8PIls+Pc/V8Yw91qVxPnzb4GYvkRBH+oPtwjeSPRsJo L5XG3RRQAf5WDYk29vOhOSJwn+6rmeA6oPwOb3Ow3slu/E9DBNumK+nywYF4j0EWJs+2 yKnFTpaUNb82anWMLVM/+Ieu2E4/svL30ZDdPcR5BqcWXGPg6Oh1ASOCEgM7KD1EorTp LwviZbEi/UWDYPL2Pzt6EAqX+miu+GM96+caVmvUMqr9++bUoBN4qQD34EaaU6SKuEX2 R/zpcPqRi3kPJ9FNsubmJLhCoDF4DMC5Q2Gk/rsg7Zm3xRBikPxmLitEk/llwcFYjBtL GoTA== X-Gm-Message-State: AOJu0YyNX/h1H0evYBhpo2Ey3AJ+Phke4y6OKkt0qtxn4PPhpUMlu5FF aLqTv/vFCRtOMiDHJLgbeYqai0Z3CQMssK1Jqd6c3aNaXjE20u40kI76UQwaaronNTh20SMhK/8 FF8RAsbI= X-Gm-Gg: ASbGncuNMHyoWmuCL8/MLCEA963lprZ5QPko/+aW9WlAnLKJrBjEyoTvAGXvU6fqg/m aZYaSxguxKs91jmD04Mh8Tn9W6+8bshq+jl5CetHXd99uHScKqnuJ1rdRaOGH31xD3Nm5AL6xUg bnIB4FaL7UaqusQuMswvJ+G4dVbTrgEGPmexxlHFdro0OwgADKByLTCIuFMoaZWIXkPz8mLoEUn yKaDc6BrSSAWQb4devITgBvK7iurEzRJLLNcTrO0XalWNucdI5iGl7Ox/h+aYEIdPJWKuuY2TpF OQqoZubCddDYijbMEAGgb/7pDg8UccRS9PFyPh3WSP4t29yv5eRa3fQdhMpGRnyyQdK1hNwmdZ+ 6J4tE8Fn+UmN9xlcWcDux55XhKafN8pt6fW3QobvAzg== X-Received: by 2002:a05:600c:1d86:b0:443:48:66d2 with SMTP id 5b1f17b1804b1-452013ab8e3mr191485635e9.16.1749560254978; Tue, 10 Jun 2025 05:57:34 -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-3a53229e009sm12603364f8f.16.2025.06.10.05.57.34 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 10 Jun 2025 05:57:34 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson Subject: [PULL 13/24] accel/hvf: Fix TYPE_HVF_ACCEL instance size Date: Tue, 10 Jun 2025 14:56:22 +0200 Message-ID: <20250610125633.24411-14-philmd@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250610125633.24411-1-philmd@linaro.org> References: <20250610125633.24411-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=philmd@linaro.org; helo=mail-wm1-x32b.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Fixes: c97d6d2cdf9 ("i386: hvf: add code base from Google repo") Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20250606164418.98655-7-philmd@linaro.org> --- include/system/hvf_int.h | 1 + accel/hvf/hvf-accel-ops.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/system/hvf_int.h b/include/system/hvf_int.h index 8c8b84012d9..d774e58df91 100644 --- a/include/system/hvf_int.h +++ b/include/system/hvf_int.h @@ -44,6 +44,7 @@ typedef struct hvf_vcpu_caps { struct HVFState { AccelState parent; + hvf_slot slots[32]; int num_slots; diff --git a/accel/hvf/hvf-accel-ops.c b/accel/hvf/hvf-accel-ops.c index b8b6116bc84..d60446b85b8 100644 --- a/accel/hvf/hvf-accel-ops.c +++ b/accel/hvf/hvf-accel-ops.c @@ -366,6 +366,7 @@ static void hvf_accel_class_init(ObjectClass *oc, const void *data) static const TypeInfo hvf_accel_type = { .name = TYPE_HVF_ACCEL, .parent = TYPE_ACCEL, + .instance_size = sizeof(HVFState), .class_init = hvf_accel_class_init, };