Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1838590pxb; Thu, 7 Oct 2021 16:40:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAlsqZl7EWCt2oibB82gkAMj7+GIJ5Xajm5DqqUh82nyRVimvor0XYG2XiFDcN0qZgYvy0 X-Received: by 2002:a05:6402:358c:: with SMTP id y12mr10435051edc.13.1633650005768; Thu, 07 Oct 2021 16:40:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633650005; cv=none; d=google.com; s=arc-20160816; b=XBUNR5pMWcJe14FeSG3veVBOJ2UJwHv096MGjndXa5g3gkoUDXoncj9vPXhcnmRiNj 5Wouv5YgJjwyeQsgQnTLrrQh2p2bpxUoqYx2qL54L2AUaf1KgJXCEs9RzkKjqLw3MeO2 +DevdRbmcVl5zHGATHcaCFD8+CuuGft6bVQZQanhdEvD57+0VpVAGG0YPhiS9k3reQ8u J1OqJgmAk8igyOoI9tHQp8RjPqr6j4aO54nw4ulYeUy4sWIbax5JV+sDdTmG8LczMGl8 Lk24noZRHtT38OsIhI5FxJuM3tA3K/mmw0pKiBLeYgB3JhgMVkXFINT0OP9uCxC0VZ7c kDAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=3YTqSaquht49DYwV2xuwN1X0OlaTExbB3K3aGCLZvU4=; b=f0wgYAu7L65t4lELCZcAXZ/qLeMr9Kw8jtgYV5/z6I6oPfCMy7j9OJLsVZECvRyuDD SB54ayOyDh/RKHW5HY3HQxz3EoKLSFZk6RsCwj7h/XrkQByhfDFw2zjIe720EVvBo0fI uYqc1kNXhvr17CzqzYJQaftOAWzkdLq/DzUaqUX+TYu1+PqFc/RWWPtkXL0ojGekxdpq 357wxBOZuJK7VmZgzed4jhd569Poqm8Qh5QL0eYv/QyNd1p3MbZLQtM3S7YM8OefaPy1 +1ZY0hYx8DWqekLS89pQlrixtpvXDDbLWBcdq9Zflu5V1IxxW7olKoFj/FQK9pZFQDKd 6lNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=iWyDlCyt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x44si1120184ede.131.2021.10.07.16.39.42; Thu, 07 Oct 2021 16:40:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=iWyDlCyt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242073AbhJGXhV (ORCPT + 99 others); Thu, 7 Oct 2021 19:37:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241508AbhJGXhE (ORCPT ); Thu, 7 Oct 2021 19:37:04 -0400 Received: from mail-pj1-x104a.google.com (mail-pj1-x104a.google.com [IPv6:2607:f8b0:4864:20::104a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B984EC06176E for ; Thu, 7 Oct 2021 16:35:09 -0700 (PDT) Received: by mail-pj1-x104a.google.com with SMTP id x61-20020a17090a6c4300b0019f789f61bdso6471845pjj.0 for ; Thu, 07 Oct 2021 16:35:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=3YTqSaquht49DYwV2xuwN1X0OlaTExbB3K3aGCLZvU4=; b=iWyDlCyt++mvNVjpsszZMVe3mrpU8G5zxbRwKZBxglKbMvcprMFNqT75wIu/ofn5d5 lu0nTdWxnEubwCSc3gXsnw4gCeRt7s8eKxarEEnfGimMtNYqqtsALGYqmHmUt0+OA7BR EoHYaeNjZjRscVlw6dAkXJNM6chFPwlREiYoYa4lXmK9YrEt2CqjrnBVEUNVvufovVi9 FLJ5zJpLGVEnIHwMhk7WUnxjoxA1Qk0eJYfTmg8XdDxsBYpB6g5WeTMyn4HeNjo4FGrP Ey/66+bshubWicxpL1Og+qwaNfnRpVZs9/n8t1uok9Gc8LZQ40TRSDMJ+vkH75eG6mQs 4NXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=3YTqSaquht49DYwV2xuwN1X0OlaTExbB3K3aGCLZvU4=; b=J8iiMk54EH8rnDIYLHzIhKekRl/tlZ0ww/CZX+VtPG5EApfkGMwFol0zunjXkRRBAh /kFsB8Ti1jo2Jdv36IX2FD2rMKDLksvuXPWJBNsXNVjL/D2bawgwndGN41L8Ub7mtiW4 FCvkznhEyF1pac5s16XSZKcW+Aj6YvpPmsEfKbIA1Pfvl8M77N2D8gF4X97bPuZ3nIlJ A3C8gfJxjy8TCwR7qh0zZXXMh7kdW4boxlGBlCJPlqYT4/REYhy2o9FX+hXXTThmz0yL mt4inwGH/M/JKI22W+YCM8QfqKXp2HRph55DlnhqFXQVYgqoCRTUAGP5ti2wwe75lFRd qbCQ== X-Gm-Message-State: AOAM531+RVH+/Vv8pgDBZlxxQ7NZViBKBlI20oosCOuLvzo+ukM0a2mz gk72cmFqn8cJ4dWsFw5kRgvmaOxa+lPT X-Received: from rananta-virt.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1bcc]) (user=rananta job=sendgmr) by 2002:a63:cd48:: with SMTP id a8mr2038837pgj.180.1633649709219; Thu, 07 Oct 2021 16:35:09 -0700 (PDT) Date: Thu, 7 Oct 2021 23:34:33 +0000 In-Reply-To: <20211007233439.1826892-1-rananta@google.com> Message-Id: <20211007233439.1826892-10-rananta@google.com> Mime-Version: 1.0 References: <20211007233439.1826892-1-rananta@google.com> X-Mailer: git-send-email 2.33.0.882.g93a45727a2-goog Subject: [PATCH v8 09/15] KVM: arm64: selftests: Maintain consistency for vcpuid type From: Raghavendra Rao Ananta To: Paolo Bonzini , Marc Zyngier , Andrew Jones , James Morse , Alexandru Elisei , Suzuki K Poulose Cc: Catalin Marinas , Will Deacon , Peter Shier , Ricardo Koller , Oliver Upton , Reiji Watanabe , Jing Zhang , Raghavendra Rao Anata , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The prototype of aarch64_vcpu_setup() accepts vcpuid as 'int', while the rest of the aarch64 (and struct vcpu) carries it as 'uint32_t'. Hence, change the prototype to make it consistent throughout the board. Signed-off-by: Raghavendra Rao Ananta Reviewed-by: Andrew Jones --- tools/testing/selftests/kvm/include/aarch64/processor.h | 2 +- tools/testing/selftests/kvm/lib/aarch64/processor.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/kvm/include/aarch64/processor.h b/tools/testing/selftests/kvm/include/aarch64/processor.h index 515d04a3c27d..27d8e1bb5b36 100644 --- a/tools/testing/selftests/kvm/include/aarch64/processor.h +++ b/tools/testing/selftests/kvm/include/aarch64/processor.h @@ -63,7 +63,7 @@ static inline void set_reg(struct kvm_vm *vm, uint32_t vcpuid, uint64_t id, uint vcpu_ioctl(vm, vcpuid, KVM_SET_ONE_REG, ®); } -void aarch64_vcpu_setup(struct kvm_vm *vm, int vcpuid, struct kvm_vcpu_init *init); +void aarch64_vcpu_setup(struct kvm_vm *vm, uint32_t vcpuid, struct kvm_vcpu_init *init); void aarch64_vcpu_add_default(struct kvm_vm *vm, uint32_t vcpuid, struct kvm_vcpu_init *init, void *guest_code); diff --git a/tools/testing/selftests/kvm/lib/aarch64/processor.c b/tools/testing/selftests/kvm/lib/aarch64/processor.c index db64ee206064..34f6bd47661f 100644 --- a/tools/testing/selftests/kvm/lib/aarch64/processor.c +++ b/tools/testing/selftests/kvm/lib/aarch64/processor.c @@ -212,7 +212,7 @@ void virt_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent) } } -void aarch64_vcpu_setup(struct kvm_vm *vm, int vcpuid, struct kvm_vcpu_init *init) +void aarch64_vcpu_setup(struct kvm_vm *vm, uint32_t vcpuid, struct kvm_vcpu_init *init) { struct kvm_vcpu_init default_init = { .target = -1, }; uint64_t sctlr_el1, tcr_el1; -- 2.33.0.882.g93a45727a2-goog