Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp304569rdb; Mon, 22 Jan 2024 05:00:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IF78kuD2i4VGengEj76bpkMtY6FahSKaJthk2H6XQTSO0l7B1PQVdb3Y5kgXsQnc4dXR9Ur X-Received: by 2002:a05:6a00:21c9:b0:6db:9e9f:6a55 with SMTP id t9-20020a056a0021c900b006db9e9f6a55mr2047030pfj.25.1705928414960; Mon, 22 Jan 2024 05:00:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705928414; cv=pass; d=google.com; s=arc-20160816; b=oRrbvvSANldcczkzTrpKVMRyJwcXdW75B5TlVes61ub6UsbwfC+zb7akaxXv9HZoxs JXJE1jV29h7s1ObkGTqQqqlkfatMtsfjFxm1Omv5wMdIk3Xyyw8WG5rOgXaBzkVebCfR 4EF63jQbLYMe0e14VzvTA9NE2LH7BYvI0FCpP6O18L6PHFt33tOk0Vf2sD3NFw380Y8z AjgBhoZkct9BwOS31ZRJLbDIr663U0jo1MuIgMEVvL7Hl7+6cKvhHA7JWvs37kKNmoKJ HNDxNd2qpEPSLLoTx5hiI+yRVQP37zW7MTW+ZfkxBNKzpApNSSMK76lGqGIoYH/de/Ii IPvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pNyn/qnqC01DO5aYO0gaP3LnuG+kGrelMJHPp637j+Q=; fh=BV71oJUtoYMJ7zykTw58ns+EZgMNaoVvLDQAuAUHSLM=; b=tvh0qSti4QXe3inPheajNaWRt4JnouJXzNm3Ssewuo0KSgKsvlf8ejUrExwNUQ3cKd xnwVxK+jHKAk5QR4xkz2gR6ycBx61NKCymEoQdGFTj7lSmq8rICMHTg1251b8bR04X+v kGtwFCBcx0n9I4AT6bbQS68M87LPg/fcGqqVgwDftOGDLfJaR1Tclk20BEpyCKC+TEeT WI+vEFAnM0/6N3GzL4nEJCBbJ/gxrXhEtarsk8aJA17pxS6xLAZMA+6ezgPOyMV3Sh14 Bj3+ctMs9XKREw0C+nvIaNo4M4YKQVhvlMGaKnKrp2pYXtGBgzS3HWh0aNqCFNhoHUSI UI7w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=NB8KyfIb; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-33007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33007-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k2-20020aa788c2000000b006db663fc753si10101519pff.231.2024.01.22.05.00.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 05:00:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=NB8KyfIb; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-33007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33007-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 83A8728B789 for ; Mon, 22 Jan 2024 12:24:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E4E0B3CF75; Mon, 22 Jan 2024 12:21:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="NB8KyfIb" Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BA203BB21 for ; Mon, 22 Jan 2024 12:21:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705926100; cv=none; b=ms+gLFILakAjTdY4W7iMiyjpVi/3TeIeyaFYKIQKQxwFW6Qo07k3k+AlMKnBWNvGWLGnr+q8SVf7eUuBo4h2JEn5mSN66UPwLiF1kQDQyOpryOKcb3yenXbQG+sDKBl7uOgasAZx3NxcM/ySe8cI0WNnCWwAElVMVNTRNVQHzus= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705926100; c=relaxed/simple; bh=vNrKTN+Psy0M2VFW5VqZf+0AB0x8oBNn3f2wlhE/7W8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=a2tVl8jJwSjqTAQ3VqlTiPBFHfKwaVkMXLi6VnbeGviuZCOrQCRli4yvhCdxJwVk1ZiQBqf/+MmikqzF9oGsLIbVmpNvlKf2cny8IOr+mgpIwige2AwYHk0LO6q5DViQgSr8antUxAqD62vBDAvY8ZtOELI9FShXeWdnc2ib5pU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=NB8KyfIb; arc=none smtp.client-ip=209.85.221.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-337cf4ac600so2897080f8f.3 for ; Mon, 22 Jan 2024 04:21:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1705926095; x=1706530895; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=pNyn/qnqC01DO5aYO0gaP3LnuG+kGrelMJHPp637j+Q=; b=NB8KyfIbFNBVYQ1ufr3ciONyyzqZnvIv3ZeQMM709cDbP6zdSH4PN4XqLfchyAGs8u 962FohRvql4G37TQ1wcv1IWqA1UPMsZOM53AM9XHPXhwxP0qsKIX0tF3JDpidGXe96to SiJ+TxzV/JykIbZiNn2fJsJiOBqQwttiPU/1rCExbi1N4Ggh3wy12MjvWZH9Thg7qk7I 2NJdeNfxc+8O56Wf6sokLJmvXCm09OtQ6ThZuG1rV1BampBdDG5vcaMrgQ9IsKiMetRR XWhrnPBPM5qX3wdmbQ/2/pdxDePIAA10H8XLv7q+bvtuA/I0foyQ3uEydrfr7NUZm2UW pEMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705926095; x=1706530895; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=pNyn/qnqC01DO5aYO0gaP3LnuG+kGrelMJHPp637j+Q=; b=r8RCX9XBL04XMnfdyLCPBaVYTJjiphlErK98OVGU9zSjn8b0n+dpaQ+N664uw3+OOu 1mwn4vZNLoTNcy6R4jtqjvMtRVr2dzn0uOc+ony0TJmoQaeEIyGyONR6mLF4rJOB8XuE aBn2QzLWDliLBCbfAeoaodYf2rNhKnjH/1XTk6075z4hNi/r/EeGR6TyFVMDeGqoHknY 0FNgYFZSlEGa/X1caOKNUV8Z4vv9yHt3AWGw3TeTxUnSoUPwvs5heNz4gL/OjZgnu+0U 8y8wUnh/Rl+vyIB75bKJfYu7OmF6QqO96lcoKcWFE8o3kV5YNWmd6qUsERmFU6xuNqDW gA5Q== X-Gm-Message-State: AOJu0Yzxaa93XZRe0CKeN2HmtZ5YjSjS/iQNQv1nppUfqHrd6vXZLQUd K3g6Nv8zlZ7Txcz8kLvvwBOQfU4VokGyrsI1T16ffdyNeSOw/w4GNQwJRbD4LZc= X-Received: by 2002:a5d:44ce:0:b0:337:c538:6db with SMTP id z14-20020a5d44ce000000b00337c53806dbmr1979837wrr.2.1705926095352; Mon, 22 Jan 2024 04:21:35 -0800 (PST) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id bw12-20020a0560001f8c00b00337cef427f8sm11306084wrb.70.2024.01.22.04.21.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 04:21:34 -0800 (PST) Date: Mon, 22 Jan 2024 13:21:33 +0100 From: Andrew Jones To: Haibo Xu Cc: xiaobo55x@gmail.com, Paul Walmsley , Palmer Dabbelt , Albert Ou , Paolo Bonzini , Shuah Khan , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Anup Patel , Atish Patra , Guo Ren , Conor Dooley , Mayuresh Chitale , wchen , Daniel Henrique Barboza , Samuel Holland , Jisheng Zhang , Minda Chen , Sean Christopherson , Peter Xu , Like Xu , Vipin Sharma , Aaron Lewis , Thomas Huth , Maciej Wieczor-Retman , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org Subject: Re: [PATCH v5 02/12] KVM: arm64: selftests: Data type cleanup for arch_timer test Message-ID: <20240122-0ddedacdeb64808477a7911d@orel> References: <173c9b64c4c43cd585f6b177a7d434dcedc905fa.1705916069.git.haibo1.xu@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <173c9b64c4c43cd585f6b177a7d434dcedc905fa.1705916069.git.haibo1.xu@intel.com> On Mon, Jan 22, 2024 at 05:58:32PM +0800, Haibo Xu wrote: > Change signed type to unsigned in test_args struct which > only make sense for unsigned value. > > Suggested-by: Andrew Jones > Signed-off-by: Haibo Xu > --- > tools/testing/selftests/kvm/aarch64/arch_timer.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/tools/testing/selftests/kvm/aarch64/arch_timer.c b/tools/testing/selftests/kvm/aarch64/arch_timer.c > index 274b8465b42a..3260fefcc1b3 100644 > --- a/tools/testing/selftests/kvm/aarch64/arch_timer.c > +++ b/tools/testing/selftests/kvm/aarch64/arch_timer.c > @@ -42,10 +42,10 @@ > #define TIMER_TEST_MIGRATION_FREQ_MS 2 > > struct test_args { > - int nr_vcpus; > - int nr_iter; > - int timer_period_ms; > - int migration_freq_ms; > + uint32_t nr_vcpus; > + uint32_t nr_iter; > + uint32_t timer_period_ms; > + uint32_t migration_freq_ms; > struct kvm_arm_counter_offset offset; > }; > > @@ -57,7 +57,7 @@ static struct test_args test_args = { > .offset = { .reserved = 1 }, > }; > > -#define msecs_to_usecs(msec) ((msec) * 1000LL) > +#define msecs_to_usecs(msec) ((msec) * 1000ULL) > > #define GICD_BASE_GPA 0x8000000ULL > #define GICR_BASE_GPA 0x80A0000ULL > @@ -72,7 +72,7 @@ enum guest_stage { > > /* Shared variables between host and guest */ > struct test_vcpu_shared_data { > - int nr_iter; > + uint32_t nr_iter; > enum guest_stage guest_stage; > uint64_t xcnt; > }; > -- > 2.34.1 > Reviewed-by: Andrew Jones