Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1062147pxb; Tue, 14 Sep 2021 15:34:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJi1iIyxXZLLxYKSMNkk7XfVSVD84PL39NojYui6b/LOXwHNHQe7qfrp73SzbadIzD5PQg X-Received: by 2002:a05:6638:2395:: with SMTP id q21mr16738731jat.122.1631658860183; Tue, 14 Sep 2021 15:34:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631658860; cv=none; d=google.com; s=arc-20160816; b=C6nDamPjB+BVFSKtqkqBTWGo5Deu6NGu/LzCZJkJEcmt9VyFg4SZIbAevW+3E1su/q uZaVh8PB3nJnS+YdiGLbLr22GHEBKH+RvhYdOI2qNdZUsneqe0HyWhojT6+srTMPache kOomIcg/2Wp4w/7YJQjMPrX8TR+26o+Un0e7nw4LCgMVgRqOVozn6LzKsC8jCSdf+b/O 4jOqoOIz4uvyt72hQVAF0c+FcoYgMAEdLOPkeaUeeHDVcFImBumbga38MQmP5Oit6+xd SIIVcGp4pzQIase+cPdE6Q79Y+zYyK0xCLUio9/nfJXPbNPlzZFeOlFHWz7iGR3OFTry l2Gg== 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=wauNwIwmja2q2Jg5bPFVhyVB/9NFZO9dAmOByqwKIHE=; b=QhOitFla87xcSohJ1TSZANCOW2RW4a4tDcMebx2vuanI7YeZR5179i8KwqkWIsD29B wLVn9dvwwdHZUHnSIwZAp5/I+zEHLvQmiuP48IJSirvCuyKH0ntuu2PDr8F0+/97YJQm 0tuoGywqu+57n1J9kEyQmcO5gQbJNtkvIEH4bdoJY2A6bGJcnK1HEVFDjngqHcNwNiCd Yb2DEpfc8xjAp+SvsMv6pa/P8rJ7C1Ey+TDng9/CEcuGPihXVEsufWEQqpHxOmjaMRBr kGVW8341iytsp0wZSvF+GbeNzAQdXax/jrlokTASQnwbcAohA2B8d6E7iTQGY2V2s4x/ euew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=GxzJdEKo; 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 x8si12707840jaq.91.2021.09.14.15.34.09; Tue, 14 Sep 2021 15:34:20 -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=GxzJdEKo; 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 S235656AbhINWeD (ORCPT + 99 others); Tue, 14 Sep 2021 18:34:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235925AbhINWdE (ORCPT ); Tue, 14 Sep 2021 18:33:04 -0400 Received: from mail-pf1-x44a.google.com (mail-pf1-x44a.google.com [IPv6:2607:f8b0:4864:20::44a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05994C0613D8 for ; Tue, 14 Sep 2021 15:31:43 -0700 (PDT) Received: by mail-pf1-x44a.google.com with SMTP id l124-20020a622582000000b00415b9d86203so365734pfl.23 for ; Tue, 14 Sep 2021 15:31:43 -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=wauNwIwmja2q2Jg5bPFVhyVB/9NFZO9dAmOByqwKIHE=; b=GxzJdEKoi4NpRi08FJiVjpv24DdGyPJUWcN9gW/uSdAhLxMXXuhGlshuhdAsJd+XCH C1RUeXk46jm2J3liTO0ZWgSU4wk16C4LWyjvtoxQSK96FEpWoMuuSpCQ6isi86tGeho5 icu9UaD+sm3/wKOkzhwl0tju2R7f6yqM4P+yRI2lQDh7mWSd4FDAfeSTJC6ncz9K9pk3 7aOlXYiEj7dmRldEnnLZQytgtEk4nLw8iTNyN9bAvmfkzSvMqqqwfgScuRYEK3S65cYH +IRTfdqQ+l0DdJ7RJ0cp38Quez2Ux0KsGHpD64jaUFzwPVC0jHxDGjKCAwWA1M2pbdKt hvzQ== 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=wauNwIwmja2q2Jg5bPFVhyVB/9NFZO9dAmOByqwKIHE=; b=ss6rbxDH+dU1qOwuDfzfCclEOuLgFl0/DQJs7WQ0HkcIi+iOB8V9y//vlrrD3CjZ7M Ci1jgTrXa/5phlJAuUq44lZRJG9a63CoBfNVJgFvylrSOAc3yllUCfRKsFRQbtRecPDS bffeT/qfrZbd3UcbQWsQLaTJXIw8gC5pqrwIWbAhZr7B9U6TrNscs9vJkETjaeNVOVIl twTXzmDHIcSLBGUw5jhZDqAKy9sHNJUTJ1Bip6fxeClEB5hP0WHYMtKne935VHC69t5p tkPpsLmJJaJXzXaPqRHSLuqSOnUCdzkDt1h/x/aZsB7Z4qYsTNyD84hFzBIfBST7AaRL 5NAg== X-Gm-Message-State: AOAM533f5vShnykpdyVQRoR657S1FMQ3qa9pupWyc2kN6YIQCygLRu3A 7PDZRsrdac4nLCZjS7FcXeYlZHBR1T+9 X-Received: from rananta-virt.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1bcc]) (user=rananta job=sendgmr) by 2002:a17:90b:3909:: with SMTP id ob9mr663472pjb.151.1631658702532; Tue, 14 Sep 2021 15:31:42 -0700 (PDT) Date: Tue, 14 Sep 2021 22:31:08 +0000 In-Reply-To: <20210914223114.435273-1-rananta@google.com> Message-Id: <20210914223114.435273-10-rananta@google.com> Mime-Version: 1.0 References: <20210914223114.435273-1-rananta@google.com> X-Mailer: git-send-email 2.33.0.309.g3052b89438-goog Subject: [PATCH v7 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 --- 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.309.g3052b89438-goog