Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp310641rdb; Mon, 22 Jan 2024 05:08:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjTkvcpwoCA2z8ve9FLX5Q8Ou0VZU0BqbwiYHkRRddX6F9adtqp7Pk837DuKv5d09Hnr97 X-Received: by 2002:a17:906:3c4f:b0:a30:80a5:e3eb with SMTP id i15-20020a1709063c4f00b00a3080a5e3ebmr377427ejg.101.1705928924598; Mon, 22 Jan 2024 05:08:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705928924; cv=pass; d=google.com; s=arc-20160816; b=Etn159MoEMdUDz0HJgDcU9Jww98l+VG2dzU96m13rKluvlwHtrPc/d8IE5S1J6ZtUY kI4Njq15iTV3DaOlT/YJCP1Q0MUNGncQA+xCr3pTQ3d7cRbsUiAU0xJ4KjBMn7bN2cPW DAAXSh9DAUp+b1/+xJoD9yz56MLgKGwycADaPneRer3AaUs+pY2U6u/6tMYFJDfASjp0 EGDUke/jCGqCcaT5PpFEQoECB8V3BI2wqNdAPAv4M7t7HO8upOH6Sq/pgbG8HUeCWLq2 KLcKpLzK4ZPtIW5m5anc9Bm2fxHp7Ec224r4xUjScuxufvFlzbV+vAFF/MEq8ZX25t/k T4+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=+I4p4d7+rP24cbQOhthF3qkqodnNh9+wAcSbkAH/bzs=; fh=ul9sVUrM2Q8aaJrdP/ivjzEDj75tvBhKTevP6pTuTp8=; b=l1wlf2fLgwI7KaXV63Tm9xrI1A0ncbLoqKICf3dEK6StEg2GwGuCVB+O/4vUDfrDxS h4l8mI7BjHewrzHl3dHO2c+lTW1UTohyk8DrFxNiBawymoP6pKaMVx1n5/se0Z8mpVXf sWIFx4HSzZlrRl3wNP/7VQ60y9qYnz7QqAxjnsThwow4CQnriomOa5GWps/7u9+Hdj6X XUFGTNQvah32yF5bh2FRIbYDvcldpBjeL5X2oTMcDEqfFjCZCVzkbCupBHhBWGnrNJo2 3YxZOT5Pnu/Q0IEQlgSjx+0kJhV/pM0J80AdZqrHrzjn6VnZ8HXbxR2S0hgbfSoPh6lR j60w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XM61iyv+; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-33070-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33070-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id p16-20020a17090635d000b00a3033cedacasi1182737ejb.141.2024.01.22.05.08.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 05:08:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33070-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XM61iyv+; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-33070-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33070-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5C9A81F24679 for ; Mon, 22 Jan 2024 13:08:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 045F03A8F8; Mon, 22 Jan 2024 13:08:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XM61iyv+" Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 96ECB3A8D5; Mon, 22 Jan 2024 13:08:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705928912; cv=none; b=BdU98VdGykRuTFSwgK9FEW4Ev9zO/vNxkBfF94CByTJ3FwCS54dY7iCW8keYh4/HojDtUEA+Tp7bfIxsSt7jHclQuad0o3tMg5Z5M5kJQ2/NuHdHdOxlswnTgSN5rGkRSo+mqgCF2jVdD5P1w4SqYjZLkz+4Q4fb2zUwEjcXtzE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705928912; c=relaxed/simple; bh=unKyj7OUQ0UO9RiD13jB29hlqPZ5XOiLoEIykUQJAqg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=YQbXuKYQMEd3MOzN9OD10cJVE0E8xkZhczC518GlAyFybF7VDntOwRKWGaYEKtBBMLdRLl7Y2BNw95Up3acjT34k5kbupnWo0GD/vVhhFEMg0Z8Gw2A1qUvDFvVmMSA9nXtzc/zE89zNpg0kgzwXf0RhaMMJtDm3wdrCp5BNpdI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=XM61iyv+; arc=none smtp.client-ip=209.85.167.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-50edf4f478eso3990705e87.3; Mon, 22 Jan 2024 05:08:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705928908; x=1706533708; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+I4p4d7+rP24cbQOhthF3qkqodnNh9+wAcSbkAH/bzs=; b=XM61iyv+bQ3ugmaeU70jCGVBc378R3gMpdcMhXbf+9eIKNQEUUVMu9wXdve4KprG8f qvFlTzHkYCI9+ikMDKp7+W7gB/IPXDeTtAZKxXXVgwDsgStX6vNaI5cldHMfKGVz+51Q Uy9gImVH0nzP4i4XSFCVZANpdPl4JZPJ+y8O64uX+MBjjffpVeonCkdiqm9iL+bpHAjz AsJKh7jrbDX2NKItJMJsapc7g9JfVxR2nZ4MfUTWypFM/DdMwhs8v2j5/RVcjoM/6vpd kvz21PrKeVXjtRa5rgnaIwGFyBzeJuiYESvcZVvgSStivrHROJjdJUqgEjdGtqWUPbxW WVRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705928908; x=1706533708; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+I4p4d7+rP24cbQOhthF3qkqodnNh9+wAcSbkAH/bzs=; b=bA9Hm+uHeRA5gdeQk8BWhVw7gBvFG4OIhABV8fiGGxEnixqVytmqcbz1vmonisBmg2 SrIeN2M0b6w+21ub//A83Y3RUk4MtHo1k8XNECQslLPNiGbvZNwdbDPvsm2oegbeV2Tc leINwgQq8baKTeuXtdXSxe3yqd/RgW2BBqUVeWf2BH31wLPzbvmbO939ijA7xBHBmWYQ dS0lziReoamCRJDTSBaAtlk0A3nu384GPfBsa48iGeFyDavalJWNnx3AQCeU6NKN8CLE AyypMikT/StX3g8q35jCqOK2BeDHfuXLnB5uZ1o2ifiVu1+qidNiSFaB76UHtS3OmwR1 cQlg== X-Gm-Message-State: AOJu0YzyExPKbi9WHv+dsHuRq2bXWEvphS7WBzfvIK80TdpbVYJ84Pd/ MH9UQKYUItJ/fHZCZLDyitITlkVnIUgZkf6EcycalyUWKDHAz0BTR+tgm5POlt1wgh10Cotdqtb 4O4tztyCPCuG+zTjC1RsALj6S31M= X-Received: by 2002:a19:690d:0:b0:50e:abd1:bfca with SMTP id e13-20020a19690d000000b0050eabd1bfcamr1596377lfc.128.1705928908378; Mon, 22 Jan 2024 05:08:28 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <173c9b64c4c43cd585f6b177a7d434dcedc905fa.1705916069.git.haibo1.xu@intel.com> <20240122-0ddedacdeb64808477a7911d@orel> In-Reply-To: <20240122-0ddedacdeb64808477a7911d@orel> From: Haibo Xu Date: Mon, 22 Jan 2024 21:08:16 +0800 Message-ID: Subject: Re: [PATCH v5 02/12] KVM: arm64: selftests: Data type cleanup for arch_timer test To: Andrew Jones Cc: Haibo Xu , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jan 22, 2024 at 8:21=E2=80=AFPM Andrew Jones wrote: > > 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/t= esting/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 =3D { > > .offset =3D { .reserved =3D 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 Thanks!