From nobody Tue Mar 3 05:12:17 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1771996422; cv=none; d=zohomail.com; s=zohoarc; b=Znw8SPg/KVUYKIsAosdjfq/LhC47ycd+1g2wtikTqeWOwX8/+Y/XHNGcIKO5naWTN1dVgvy/bM9qiQ0VY5u3xR99bM4bHKTbFxfQFkymNSaK6ma83oVmHOM/EVugzVvKgkkv+Oj54/2oi4BXKpwtVfoMGM8lO/pO4jF7d4XimnA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771996422; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=jMzYp4SdJTMxtv4pWgjfW8jgSoBedAjoxT34KYE2b/k=; b=ERap/hxNR7i2TRqb1U0dHcRZz36f7MFEzCQnOCLhpCUsOL+fyr0djRMzLEXCXhGxdTDlZGFVqhKFJnshwDfGKRjr2VfLb2EL5NLNZRaV5ClfvkPSDTPfsfd1LUbQuEydlakPHGlxnGzqJ+8W61UAfs4KuMld9txqnooFnSFvH6c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1771996422501592.861621235286; Tue, 24 Feb 2026 21:13:42 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.1240365.1541793 (Exim 4.92) (envelope-from ) id 1vv7DD-0001G6-MW; Wed, 25 Feb 2026 05:13:27 +0000 Received: by outflank-mailman (output) from mailman id 1240365.1541793; Wed, 25 Feb 2026 05:13:27 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vv7DD-0001Fz-JT; Wed, 25 Feb 2026 05:13:27 +0000 Received: by outflank-mailman (input) for mailman id 1240365; Wed, 25 Feb 2026 05:13:26 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vv7DC-0001DH-8h for xen-devel@lists.xenproject.org; Wed, 25 Feb 2026 05:13:26 +0000 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [2a00:1450:4864:20::42d]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id b3e7bb0c-1208-11f1-9ccf-f158ae23cfc8; Wed, 25 Feb 2026 06:13:21 +0100 (CET) Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-43767807da6so4566549f8f.2 for ; Tue, 24 Feb 2026 21:13:21 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43970d4cc81sm30577525f8f.26.2026.02.24.21.13.19 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 24 Feb 2026 21:13:20 -0800 (PST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: b3e7bb0c-1208-11f1-9ccf-f158ae23cfc8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1771996401; x=1772601201; darn=lists.xenproject.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=jMzYp4SdJTMxtv4pWgjfW8jgSoBedAjoxT34KYE2b/k=; b=L3ye0FL7j5yRuXgNPfu9aVMf0edi/8IVisbNYqtLRl0fZT0c9wowP1yItljsBxnQvD vo9ucKmBrYbPOSONQic8NDXa8mu8vv/lM400lQmCvH7BO2IvsLw87C0RNO8NyRq8OKL5 JjGXoWCGk5bkix5DNHUPPeA+jOCCJ/03MPByq3FEIABpRk+Jjgx/PZSoSgXr1d+P/Qa/ FmSzxJFAuS5VxxgKWbnHMhAV8mOY51luHOhE9h842ipvFUAl0Xddmv/YJklwMNvUzs7y 2/e4U5MGxoZ3B7+VpxkeK3bewmiUF283j640bh7OpB6sYbkBabUkdBNApetbE36IYIo0 O42g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771996401; x=1772601201; 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=jMzYp4SdJTMxtv4pWgjfW8jgSoBedAjoxT34KYE2b/k=; b=qnwPlzsjbOaXUkjnkn2PIHn1I6xvhl47I05TsNEvz4I1iIPBkVUPlv0senAGVHlUnt /l44ZYseAYuJte+52dacAOY5oGmqXRd/mTAN3jrtvnO0d6N+1p0snzM0uhovkzPBoknq 65mUJj2L6uAfM/qyQjLTINfWn4xPvHigiZJyDingWkprVOM06S4Swkgb4Dc5V6eXU5U1 zTFkJnCH7DC6DMGoJJw1dJpF3J+Gw4kgXaz4cVQJiUSJI7TaES0C9kTtqPo/WwE0DVqA vDO/NUc86zr+w+xVCRTi1aKGF3mBlmpSRImoixQNfOJTOtoTVgf2cnDEVuxRMf5vWaUd TYNw== X-Forwarded-Encrypted: i=1; AJvYcCV2l7M9HSIXR3uYKAqBdJFDcCJzJbc3ENApsUOV8V8N8BBhXJOS0p45rlBsh38TC0y8QLO1wOPLE6Q=@lists.xenproject.org X-Gm-Message-State: AOJu0YwE9UCOCY4G035/qH/htFTKGUaj0GPkApIQb9OGqxbFNuUdDWba 4XASkKHhpI+P2NCkPEa7NxuoAthDW3re7o1CkECrg52/D93Y/0J3LjWjFdTxEl5est8= X-Gm-Gg: ATEYQzzhjA39Ocl42c/5hKNljf0j2HSu2Hn5yLEwjPDCEakSYBWXWUF1OM2sFWg2XN5 8b1OdUJ4n48WPjbAnBcFp/ksXwRvJAc46F6hO9mDhKyhwnQjWZ8fdajJEpyDyekDraEmCKVHhMw MhzN5BHNtkSObM8Id+fGbKSyAPgyUjq7ZrEeiCSWGUa6yUwadbb8qlEvQNzyXOCSB2RizYNj+PR cDZp6/ZbV1H1n6iFOkIPJZSH0v6NrvC66chaRwe5vhxRyipS0+yo61zr1S+13cgtPBXZ081NdKV /y/DXEcxrdqo5FBOGWPzXz2nhAVTau5B5rifYyfIQ1BTGZTln20KF3p8jNDPFqPbSnOcBfpc03l uhXC0HSiKdnT9FoNPSfE4DUfZeKIiIeAPNaZBTRAEFneenbMrgu3qRPV75YUSs4dBLmAz8kGMIu EOG2HJOz3SPRmmh9u9cM6qVCol3meVEjmmF4sZhM9s8Eq6ujkCyhmVUqV2vX6OA5KFw3dK+lI56 immxd4IlEU= X-Received: by 2002:a05:6000:604:b0:435:8ad8:b7a with SMTP id ffacd0b85a97d-4396f181362mr27307810f8f.46.1771996400821; Tue, 24 Feb 2026 21:13:20 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, Pierrick Bouvier , Paolo Bonzini , xen-devel@lists.xenproject.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Magnus Kulke , Wei Liu Subject: [PATCH 2/5] accel/mshv: Forward-declare mshv_root_hvcall structure Date: Wed, 25 Feb 2026 06:13:00 +0100 Message-ID: <20260225051303.91614-3-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260225051303.91614-1-philmd@linaro.org> References: <20260225051303.91614-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1771996424384158500 Forward-declare the target-specific mshv_root_hvcall structure in order to keep 'system/mshv_int.h' target-agnostic. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- include/system/mshv_int.h | 5 ++--- accel/mshv/mshv-all.c | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/system/mshv_int.h b/include/system/mshv_int.h index ad4d001c3cd..35386c422fa 100644 --- a/include/system/mshv_int.h +++ b/include/system/mshv_int.h @@ -96,9 +96,8 @@ void mshv_arch_amend_proc_features( union hv_partition_synthetic_processor_features *features); int mshv_arch_post_init_vm(int vm_fd); =20 -#if defined COMPILING_PER_TARGET && defined CONFIG_MSHV_IS_POSSIBLE -int mshv_hvcall(int fd, const struct mshv_root_hvcall *args); -#endif +typedef struct mshv_root_hvcall mshv_root_hvcall; +int mshv_hvcall(int fd, const mshv_root_hvcall *args); =20 /* memory */ typedef struct MshvMemoryRegion { diff --git a/accel/mshv/mshv-all.c b/accel/mshv/mshv-all.c index ddc4c18cba4..d4cc7f53715 100644 --- a/accel/mshv/mshv-all.c +++ b/accel/mshv/mshv-all.c @@ -381,7 +381,7 @@ static void register_mshv_memory_listener(MshvState *s,= MshvMemoryListener *mml, } } =20 -int mshv_hvcall(int fd, const struct mshv_root_hvcall *args) +int mshv_hvcall(int fd, const mshv_root_hvcall *args) { int ret =3D 0; =20 --=20 2.52.0