From patchwork Thu Nov 23 04:42:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 746469 Delivered-To: patch@linaro.org Received: by 2002:a5d:6706:0:b0:32d:baff:b0ca with SMTP id o6csp689440wru; Wed, 22 Nov 2023 20:49:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9oc1q15uYuWMkRc99MV3HG5BbzO3QM/tfKBn87yCarEjelh00fZ3MX7rQ13pFqv2I1l2P X-Received: by 2002:ad4:5b84:0:b0:679:f342:72ac with SMTP id 4-20020ad45b84000000b00679f34272acmr4897855qvp.10.1700714949129; Wed, 22 Nov 2023 20:49:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700714949; cv=none; d=google.com; s=arc-20160816; b=zmS6N1XCt8DghTM3dQGIBXPbxrrqddsaIF5JV9OQh5l32vQbK/2HVpPmU4QdNCfh+p kccITUgfFejbq/s7URX0iMJXA8qCw98BqYSvrmN8Zg6GEQj2ZNpxf5U/kPUV9Vnm9od7 TFSDJa0RYG41yxjqu/1/pqc5Tval+D2k0P9P7iWDthF80CdcqKO9JbK96ffQTQHVYj8P 2t/7Dk3/I/FtlWy2k945kaw57VF0XFfr/F3BhofBvUrsohDRBrOr+DIPyTMoLTt87XIG 1YcgMOkZ0tl2kk/6NWfI7cnz5nyFKlJAYvcYpAwZmC+4JswgNpHVdydsCKmTlVrRN0gz 5r/g== 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=VkzgPDpougz5Puiw+xECKRO2grc7zzyhXDofA8x6EVo=; fh=9Ev+QBUhk6P6vR3LT1wYeDLexozsz44nqjfoyPajZCc=; b=qOBY+ktmzCN0iBJXiz69L63jdK+z0BXNIB7bT8H0wmiq1TNw5y4uxkGJ/+efH/8ut5 /YdjTS73m/MnKKa5Rs5+bHLmWflopMDMbn7snJ/w4DOpV1Z2ckK5LM4CbIeu7JWHbPey ESZNauYnAPedmq4kCKFk8E9LPLmTCZh12oez44AH53pCDEOP32xrLv1wTvPzUgguW6LT 37WeH7NLwMOjnV+Nw53rVPeOBiHm7//mlqWslW46DV75cpa3jrATHJeaCTteqMDgc0YQ 3UrXyTuhhJkP/1ompIYqZpS36HpE2pwjlc8PVNxEm93ICoEjhZEmzfL95yXNWi/nfU6F 7tbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KIsCGMJS; 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 y8-20020ad45308000000b0066d1e75c07csi421743qvr.195.2023.11.22.20.49.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 Nov 2023 20:49:09 -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=KIsCGMJS; 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 1r61YL-0006d0-NM; Wed, 22 Nov 2023 23:43:01 -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 1r61Y6-0006Rs-Qp for qemu-devel@nongnu.org; Wed, 22 Nov 2023 23:42:48 -0500 Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r61Y2-0006FU-A0 for qemu-devel@nongnu.org; Wed, 22 Nov 2023 23:42:45 -0500 Received: by mail-oi1-x233.google.com with SMTP id 5614622812f47-3b5714439b3so283742b6e.3 for ; Wed, 22 Nov 2023 20:42:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700714559; x=1701319359; 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=VkzgPDpougz5Puiw+xECKRO2grc7zzyhXDofA8x6EVo=; b=KIsCGMJSLmMU2uh2gWtRGgysQTCHa9m8QvpLIEWYeqXR9IVJRwNqT/eGEoEiMM7wQW nsw5K+esvnSmD5rJ8SX+DIAaJaLsNN7C30p3u0O/fniPj+F0srlpIDTe+csmRwnDFfIJ bi1jOpO2JdXE0UExME5rCpOLkDasD2eqvJOoUArDZPeV3KcChZCWWbnYBAAghqWtyKEm 2GGqEcGkTZRXUM3CEWIfe45WUfyyryYoLT+PPxIlszk1qT1SM9ZlT6ozsPUJiNnYnKYR iuKcpd1VmcNc3rr9VIs1rdmCL6pygj2HNAod2HvhDAtPJwDD43+y16zljMEo24VIin/0 qUdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700714559; x=1701319359; 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=VkzgPDpougz5Puiw+xECKRO2grc7zzyhXDofA8x6EVo=; b=R6zDUa1e4Dd5raPoWc+W1NL6QGs74BUg7kpZJEXYsAI/5UjdPbhNTxHbEIbr0jrC9R TsiVrJ++atVSX4vlU925WPTtdL/JFI3ZdYUBXKSrGU1atz9T0kdPhPeUCP16X+umoEjU pzuASYizw+JrYl0OJfYuAGOWf4N5TKus2Y9eEXpkx/bxLoGPyp/qsdXJgPY4M78JN80a ITo8OMxDRHPGs5H3hbUNiXbVa8UmFgurVHlirXiEYyfq/j4BmZqELmpPWSlzEV1uYtLU dlL1ofUADuokl3XeYshGWYW1AgWxDI8/vkY0Auis2vimzyjZ5R2tlvqCA99EMJT5l+xc Uf3A== X-Gm-Message-State: AOJu0YzXfxXEXFx94rnjjlzeHbzp5mWJIdpoWqnqNgDRzwQoILVCz6dH BBzykNNVtXwyi3ii29lOe2Y55Tvzb0eSQcaGvUKLLcXN X-Received: by 2002:a05:6808:16ab:b0:3a9:cfb5:462a with SMTP id bb43-20020a05680816ab00b003a9cfb5462amr5140144oib.36.1700714558778; Wed, 22 Nov 2023 20:42:38 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id i7-20020a056808030700b003b8347de3c2sm73888oie.19.2023.11.22.20.42.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 20:42:38 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 17/21] target/arm/kvm: Unexport kvm_arm_init_cpreg_list Date: Wed, 22 Nov 2023 22:42:15 -0600 Message-Id: <20231123044219.896776-18-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::233; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x233.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 | 10 ++++++++-- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/target/arm/kvm_arm.h b/target/arm/kvm_arm.h index 9b630a1631..350ba6cb96 100644 --- a/target/arm/kvm_arm.h +++ b/target/arm/kvm_arm.h @@ -39,18 +39,6 @@ void kvm_arm_register_device(MemoryRegion *mr, uint64_t devid, uint64_t group, uint64_t attr, int dev_fd, uint64_t addr_ormask); -/** - * kvm_arm_init_cpreg_list: - * @cpu: ARMCPU - * - * Initialize the ARMCPU cpreg list according to the kernel's - * definition of what CPU registers it knows about (and throw away - * the previous TCG-created cpreg list). - * - * Returns: 0 if success, else < 0 error code - */ -int kvm_arm_init_cpreg_list(ARMCPU *cpu); - /** * write_list_to_kvmstate: * @cpu: ARMCPU diff --git a/target/arm/kvm.c b/target/arm/kvm.c index 20d8c81667..bc4ba7628b 100644 --- a/target/arm/kvm.c +++ b/target/arm/kvm.c @@ -789,11 +789,17 @@ static bool kvm_arm_reg_syncs_via_cpreg_list(uint64_t regidx) } } -/* Initialize the ARMCPU cpreg list according to the kernel's +/** + * kvm_arm_init_cpreg_list: + * @cpu: ARMCPU + * + * Initialize the ARMCPU cpreg list according to the kernel's * definition of what CPU registers it knows about (and throw away * the previous TCG-created cpreg list). + * + * Returns: 0 if success, else < 0 error code */ -int kvm_arm_init_cpreg_list(ARMCPU *cpu) +static int kvm_arm_init_cpreg_list(ARMCPU *cpu) { struct kvm_reg_list rl; struct kvm_reg_list *rlp;