From nobody Fri May 3 09:38:29 2024 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; 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=fail(p=none dis=none) header.from=arm.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1625567381719398.6752903963735; Tue, 6 Jul 2021 03:29:41 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.151001.279116 (Exim 4.92) (envelope-from ) id 1m0iK8-0005Y9-6T; Tue, 06 Jul 2021 10:29:04 +0000 Received: by outflank-mailman (output) from mailman id 151001.279116; Tue, 06 Jul 2021 10:29:04 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1m0iK8-0005Y2-1o; Tue, 06 Jul 2021 10:29:04 +0000 Received: by outflank-mailman (input) for mailman id 151001; Tue, 06 Jul 2021 10:29:02 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1m0iK6-0005Xw-LF for xen-devel@lists.xenproject.org; Tue, 06 Jul 2021 10:29:02 +0000 Received: from foss.arm.com (unknown [217.140.110.172]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id faaf77c9-de44-11eb-8483-12813bfff9fa; Tue, 06 Jul 2021 10:29:01 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A64031FB; Tue, 6 Jul 2021 03:29:00 -0700 (PDT) Received: from e123311-lin.arm.com (unknown [10.57.8.167]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6BB993F5A1; Tue, 6 Jul 2021 03:28:59 -0700 (PDT) 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: faaf77c9-de44-11eb-8483-12813bfff9fa From: Michal Orzel To: xen-devel@lists.xenproject.org Cc: Stefano Stabellini , Julien Grall , Volodymyr Babchuk , bertrand.marquis@arm.com, Jan Beulich Subject: [PATCH] arm: Fix arch_initialise_vcpu to be unsupported Date: Tue, 6 Jul 2021 12:28:53 +0200 Message-Id: <20210706102853.10251-1-michal.orzel@arm.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1625567391492100001 Content-Type: text/plain; charset="utf-8" Function arch_initialise_vcpu is not reachable as the VCPUOP_initialise is an unsupported operation on arm. Modify the function by adding ASSERT_UNREACHABLE() and returning -EOPNOTSUPP. Suggested-by: Jan Beulich Signed-off-by: Michal Orzel Acked-by: Julien Grall Reviewed-by: Bertrand Marquis --- xen/arch/arm/domain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/domain.c b/xen/arch/arm/domain.c index c021a03c61..a2aa8b77ad 100644 --- a/xen/arch/arm/domain.c +++ b/xen/arch/arm/domain.c @@ -923,7 +923,8 @@ int arch_set_info_guest( =20 int arch_initialise_vcpu(struct vcpu *v, XEN_GUEST_HANDLE_PARAM(void) arg) { - return default_initialise_vcpu(v, arg); + ASSERT_UNREACHABLE(); + return -EOPNOTSUPP; } =20 int arch_vcpu_reset(struct vcpu *v) --=20 2.29.0