From patchwork Thu Nov 23 04:42:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 746466 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp688980wru; Wed, 22 Nov 2023 20:46:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+RMoDgjvtLgVP7qammZuEYDdxQC8i8EHsb2hSavLXyMET0WD88dcUVmyCI17VIBpRoxOP X-Received: by 2002:a05:6214:20c7:b0:65a:feb1:ec46 with SMTP id 7-20020a05621420c700b0065afeb1ec46mr2951750qve.6.1700714816712; Wed, 22 Nov 2023 20:46:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700714816; cv=none; d=google.com; s=arc-20160816; b=jshpNR2I9afZ9D2Cv4BmkjHQVMZ4EAl/y6KQHVpoNCIVAnGv6Bny1PZ0DHh7m+Lq5s 60VEXl9h9PMpXD4x8QHzoMbB2S0z3rGAyHpM6Fyt48l41r4jeZsRuAWFO483hoS2Ihcj LKLQVf7AT6hQHy5xcJ34MNoMUxLBEQSVtC1iazLZepOdYvTx//7iwW4rKkJzMumi4Eno kRaCcS+XmkxvJJQFAKi82FY5pAV7kWUrut07XnwuF4c+2M9hn37Nq8YCSjuUdY4Y7B3o ha/G7vkxEp/vzdnEzR3ebck5lQoHeZLRhlOXEkmm+LjrWwa9o7mdNyaOQ/0v65ypojp9 BcpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=z9sYIWas5f3L9LVklxkBAZhldZmGtqlfaE/Pn9tmcPw=; fh=9Ev+QBUhk6P6vR3LT1wYeDLexozsz44nqjfoyPajZCc=; b=kvBK+U2LcE6pQ8t00WsYbw1AV2h6sv0u205UdUcJ6T3I/mnoGdjGMDHoAnUtp3A+Os H7u8eZ+XZ2VWppXS7qCQRnnumWNhj6z64v6qQK3ERkVqthy8rBY+DykcAwTFh0pg97Pu x8Zu5HbNCTUQvmLa3Ts5G7Uf9IEfckAQaz5Urx1mwbUT1n4X4G6ZUge748cHYN1bxozM n7R5hi4NOTxP48FbeNa2IYyTUvK2LNND7iInTagTFeIrOI0fxBtXvWF4iL6t84tlR5Yw 3aiA94Z/jOwLv6z1CneaB6VFE3ESPSRDCbIhQAHG/MqUc9B+ugC3lFHxwMHkE/CryP3u JhCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="aJRXV/Ty"; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id dw13-20020a0562140a0d00b0065d41a41e7esi407312qvb.537.2023.11.22.20.46.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 Nov 2023 20:46:56 -0800 (PST) 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="aJRXV/Ty"; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r61YK-0006br-T8; Wed, 22 Nov 2023 23:43:00 -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 1r61Y5-0006QL-Mg for qemu-devel@nongnu.org; Wed, 22 Nov 2023 23:42:46 -0500 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r61Y0-0006EW-Kl for qemu-devel@nongnu.org; Wed, 22 Nov 2023 23:42:45 -0500 Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-6d7f665285aso267195a34.1 for ; Wed, 22 Nov 2023 20:42:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700714557; x=1701319357; 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=z9sYIWas5f3L9LVklxkBAZhldZmGtqlfaE/Pn9tmcPw=; b=aJRXV/Ty+5lgI16quwOq0JbaOvc3Qcfp1rJsLB5GCVW1pD+ce52Y50FH3yFgQLZmLR Ca0TiuKrNl/5SUpsHnozh1g90bUJd2bxMLKOEsHnDUJCmWSSKw2VCM/GcwOPgWOH61Ba IWhNqkQqNzbbf77Hxf6Oxf4bqAOcRcbVrAwSVtJwGih3G3jx1dntz2GM8lnfdBKBUZE7 CIfBiUYw62axht9dIOJuvzVhE2UBt0zrZWU1pVD9u0SUsTgT7I4tLmT843k/XxrZfxpH 1JCRbyhHngj9usP3CsGzVUSL+ETkqLPpZET9ls4aumybJ+LaKHc8KSp+26I4QhHy0LSI xsOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700714557; x=1701319357; 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=z9sYIWas5f3L9LVklxkBAZhldZmGtqlfaE/Pn9tmcPw=; b=cAwLQsF6DS8Lb5kNN24juLzqYiRFhj2nA9c79M0NWhv1PSlS016FvZPY47QXSrBhhh kklkUXmjBlkTWL2RRlZiwatn/5sNyFricZKix5tXMGR5UrVJyyDu69Lt9JXt4vZc3kuK nowohw/fCVOgvZ5SI/1pXRcVzcS3SLiI6OgSNYBqf3DO1E94TmZGJkOPcuC8uLywnuZC gfluWyl9IkRbEBy6WanLVnhDGyje44aRR9s5ZDt8eEJFmYyTnF/RgPGQmN7CE96E4Sqv czA13O2182esTfz5MOHJ77lOlGTTovTZsnVGdYJpsdyOxX2+IbyATeOndzTS6vfv0mxu l9pg== X-Gm-Message-State: AOJu0Yyecjuu3C4n/QqiejbR16VLnf4K2EdN0AzNGSDg5gLvAwnMzE08 G16y0duxW+YqpnjTzuxqpoCbderCMvX9HJZHRRFxnr8g X-Received: by 2002:a05:6808:209b:b0:3af:a80c:420 with SMTP id s27-20020a056808209b00b003afa80c0420mr850846oiw.7.1700714557171; Wed, 22 Nov 2023 20:42:37 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id i7-20020a056808030700b003b8347de3c2sm73888oie.19.2023.11.22.20.42.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 20:42:36 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 15/21] target/arm/kvm: Unexport kvm_arm_vcpu_init Date: Wed, 22 Nov 2023 22:42:13 -0600 Message-Id: <20231123044219.896776-16-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231123044219.896776-1-richard.henderson@linaro.org> References: <20231123044219.896776-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::330; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x330.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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 Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Gavin Shan --- target/arm/kvm_arm.h | 12 ------------ target/arm/kvm.c | 12 +++++++++++- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/target/arm/kvm_arm.h b/target/arm/kvm_arm.h index 1043123cc7..b96ff35e34 100644 --- a/target/arm/kvm_arm.h +++ b/target/arm/kvm_arm.h @@ -18,18 +18,6 @@ #define KVM_ARM_VGIC_V2 (1 << 0) #define KVM_ARM_VGIC_V3 (1 << 1) -/** - * kvm_arm_vcpu_init: - * @cs: CPUState - * - * Initialize (or reinitialize) the VCPU by invoking the - * KVM_ARM_VCPU_INIT ioctl with the CPU type and feature - * bitmask specified in the CPUState. - * - * Returns: 0 if success else < 0 error code - */ -int kvm_arm_vcpu_init(CPUState *cs); - /** * kvm_arm_vcpu_finalize: * @cs: CPUState diff --git a/target/arm/kvm.c b/target/arm/kvm.c index 466b848156..a864d0852f 100644 --- a/target/arm/kvm.c +++ b/target/arm/kvm.c @@ -58,7 +58,17 @@ typedef struct ARMHostCPUFeatures { static ARMHostCPUFeatures arm_host_cpu_features; -int kvm_arm_vcpu_init(CPUState *cs) +/** + * kvm_arm_vcpu_init: + * @cs: CPUState + * + * Initialize (or reinitialize) the VCPU by invoking the + * KVM_ARM_VCPU_INIT ioctl with the CPU type and feature + * bitmask specified in the CPUState. + * + * Returns: 0 if success else < 0 error code + */ +static int kvm_arm_vcpu_init(CPUState *cs) { ARMCPU *cpu = ARM_CPU(cs); struct kvm_vcpu_init init;