From nobody Wed Nov 27 00:26:53 2024 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=1703013731; cv=none; d=zohomail.com; s=zohoarc; b=YERuoil8AmBtdg5h05fn+tSu5AAEx6EiVXPyoyJ0O5paxQaTFKOjFvInDtlIRM170JKgaYQ65WJyajafp9CLFr4GyZasL7NS556Ju4WBCo0Ezka+qea/Vs0raEf2xoCNCiltmQ9I9F+9okGNy5vHmVTWzySIBnBnNnys1tdP9/4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1703013731; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=Ak4CxhUk6h6TwjSSh7FmGz1AnjJa6mERKfsGXTlTv5I=; b=X2jAg6fTYx7aCgf3PEhzv5zgN8+dKnIucSVdyoSf6P3tkTV1it/SLKeU4hroc1bIClweSzbRme2gDOtOyM9csJTTD41BeYpogvZljIsiRwPz+jQnx3xfi3SqY2ksgLqETXAi7XeZRcPRwXHa1HaJDC//GpdVE7gpKO2N+P5qDYI= 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 1703013731026992.3416154235849; Tue, 19 Dec 2023 11:22:11 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rFfWv-0001ve-H8; Tue, 19 Dec 2023 14:13:25 -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 1rFfWs-0001sx-35 for qemu-devel@nongnu.org; Tue, 19 Dec 2023 14:13:22 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rFfWp-0001oG-MS for qemu-devel@nongnu.org; Tue, 19 Dec 2023 14:13:21 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-40c580ba223so61798725e9.3 for ; Tue, 19 Dec 2023 11:13:19 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id f5-20020a5d5685000000b0033657376b62sm12007754wrv.105.2023.12.19.11.13.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 11:13:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703013198; x=1703617998; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Ak4CxhUk6h6TwjSSh7FmGz1AnjJa6mERKfsGXTlTv5I=; b=iU+Oe0L0YTfviGJej6mIaV3BOcQ+AfabeQf621bU6Qc6Px8izwf/H18YdN3vlrNBm6 z7eJfzmKYDHtYlPQaAaWpkARMwS5sLtRFT7iURpGaXwMkyGJcr2CaAbre05rj9lDh/9a 0LgqWR52huOm+nH8JDLuYLgEdpXfs8hrfqeLSN7tKgzw2RzfBbqvFV0+enjhF9aunl6F Spfh22bvSyK4t+oHb8haE20SpIJKGRsOLfBx6EmnPlpFz+hIkw7+nDl6ImuHhEZf2ZO6 uMZ2ZpUIqQO3ibReaQipd3ViZQ33jFzrkULLWwx9lmjsPO1DaFNbc7JXV7gjNRrfGFAJ 9+1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703013198; x=1703617998; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ak4CxhUk6h6TwjSSh7FmGz1AnjJa6mERKfsGXTlTv5I=; b=Wxd+3ZcSV8DEWd8MJT6fXe5HRxqSHr6djmE1Eeqid8w/GiGnPxB4sPZqj17hfb1OQo +z6lv/kLQvVoiZc618RTcOIflitLgvaqeqy2Q6sTXdmyNtWpdrBHQYbxXl3+3m5gbxFt oQSzd/AUm8hMBkx5CYXdAFhW7d0xohB/KyAs5v/X6pO6gcQcYxj/DnP0HX7lLvUccx/y pfNL7E2P7O7It0V3hijEVOSaozauzrE6jkQFo60L2UI1sjw1yP4cbC33ijzc3jenoUZP qsu6jmPYx/K72DhL4sb+bUnVabF0csN3ekfh6ovq5ZeDegc3oSMwzFwxEMRXMh+SyFPb 6Ycg== X-Gm-Message-State: AOJu0Yyp504XNOyaNwFg1rM1YzYqKqj5w+LKw+4u8ToF7PpAG++lFNMr cUyNqiJ59HuE4Q9uQ31RVylsg2UKWuBZQ8kMrm0= X-Google-Smtp-Source: AGHT+IFmHy3p7qwNlY0O4aKm/sjXp2uxScOWuHVBYJjCmw/ukrmTSPWZ5QskBFzguwQJU0oKqelXxw== X-Received: by 2002:a05:600c:450e:b0:40c:3508:b409 with SMTP id t14-20020a05600c450e00b0040c3508b409mr10051256wmo.111.1703013198419; Tue, 19 Dec 2023 11:13:18 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 19/43] target/arm/kvm: Unexport kvm_{get,put}_vcpu_events Date: Tue, 19 Dec 2023 19:12:43 +0000 Message-Id: <20231219191307.2895919-20-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231219191307.2895919-1-peter.maydell@linaro.org> References: <20231219191307.2895919-1-peter.maydell@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 client-ip=2a00:1450:4864:20::32f; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32f.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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1703013731487100001 From: Richard Henderson Signed-off-by: Richard Henderson Reviewed-by: Gavin Shan Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Peter Maydell --- target/arm/kvm_arm.h | 20 -------------------- target/arm/kvm.c | 20 ++++++++++++++++++-- 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/target/arm/kvm_arm.h b/target/arm/kvm_arm.h index 1ec2476de7b..b4339d49d11 100644 --- a/target/arm/kvm_arm.h +++ b/target/arm/kvm_arm.h @@ -98,26 +98,6 @@ void kvm_arm_cpu_post_load(ARMCPU *cpu); */ void kvm_arm_reset_vcpu(ARMCPU *cpu); =20 -/** - * kvm_get_vcpu_events: - * @cpu: ARMCPU - * - * Get VCPU related state from kvm. - * - * Returns: 0 if success else < 0 error code - */ -int kvm_get_vcpu_events(ARMCPU *cpu); - -/** - * kvm_put_vcpu_events: - * @cpu: ARMCPU - * - * Put VCPU related state to kvm. - * - * Returns: 0 if success else < 0 error code - */ -int kvm_put_vcpu_events(ARMCPU *cpu); - #ifdef CONFIG_KVM /** * kvm_arm_create_scratch_host_vcpu: diff --git a/target/arm/kvm.c b/target/arm/kvm.c index 4a5553864a0..b8923fe1776 100644 --- a/target/arm/kvm.c +++ b/target/arm/kvm.c @@ -1090,7 +1090,15 @@ static void kvm_arm_put_virtual_time(CPUState *cs) cpu->kvm_vtime_dirty =3D false; } =20 -int kvm_put_vcpu_events(ARMCPU *cpu) +/** + * kvm_put_vcpu_events: + * @cpu: ARMCPU + * + * Put VCPU related state to kvm. + * + * Returns: 0 if success else < 0 error code + */ +static int kvm_put_vcpu_events(ARMCPU *cpu) { CPUARMState *env =3D &cpu->env; struct kvm_vcpu_events events; @@ -1119,7 +1127,15 @@ int kvm_put_vcpu_events(ARMCPU *cpu) return ret; } =20 -int kvm_get_vcpu_events(ARMCPU *cpu) +/** + * kvm_get_vcpu_events: + * @cpu: ARMCPU + * + * Get VCPU related state from kvm. + * + * Returns: 0 if success else < 0 error code + */ +static int kvm_get_vcpu_events(ARMCPU *cpu) { CPUARMState *env =3D &cpu->env; struct kvm_vcpu_events events; --=20 2.34.1