Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp143017rbe; Wed, 28 Feb 2024 15:15:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXM0oonLJAmhTOZzZgM+k4oVjp0mZU5qldUtcj07wlyXyr2TirOiEJvwQnB9Lndf4zcs7s4tdEi7fPCB9/w4ZgFja7fgtYDtZQTLDIOoQ== X-Google-Smtp-Source: AGHT+IFGZnop95JxH4pvqwAw8qO2zUpyMsFM/jGuKyNeR/PWsHZRTXuZS8j7XsYNZK90r6cgwKOM X-Received: by 2002:a17:90b:914:b0:29a:7f4f:c55a with SMTP id bo20-20020a17090b091400b0029a7f4fc55amr595377pjb.7.1709162114676; Wed, 28 Feb 2024 15:15:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709162114; cv=pass; d=google.com; s=arc-20160816; b=HhkCUjOkip2SZgGg8ZwKUljQJjPtGWb27UvNKL/8I6kK9V8XmSHnVnpJC6QxigOUFb sAHFdWVlbgc5ZpIuZrq882aB4MjOTzvtuwUGsYe3XR4sbbTMLUaNQhtCOSGObsMD9EYP Mi5P25zmQYxdrch9TL4scOi8uZjDUb8RF5/oxlaXFxKomas4ciAQvGlu3cRnG7F0M5no uYNB56ls0bmlhGW3yuSQZMu+1S+yraxmDq6HbkTbCNr4o7PCxPNoDR5ONRJTzN+e8QTg /OJpAdYr4e63kk8s7B1r+3AsEN7gGQC2i6wFSCdVVpuQrRE/p2xR3Mc28nigfilTHS/T 3/iQ== 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=HopOMhsdcEXeddljk1n/xV5v9vRitHQfeTlE00H1als=; fh=eyC+1ldGeYl6fISKC//cDwyPciNRTy1hL2E1NSjuci4=; b=qloEnybAffHOmDAbHRdpIORycyMkF26cpE4aVF2bzyWVAmFevp2XNi2JmnPgIJJoVC TtCO+qX6C+ymdjJCXenO0jWDj/A5ooB5t+LXV3NNDDYZYXVmMDs7iGLR2S5hH5XmIJs2 Q1bVfMGCLiO8EMGwFQIw+Lt+UxiAD5YKKloWt7fgTEoZUM3Rxlg5hmSKNZRdiW+3dAtS nC24er1yBeYo4RRgm5GEQq/dUtrtd+VrwyQEg9105UHeQ5eUgj5kKLccRxOdydIDxmiJ 5S9hSZRi1kDWi18ArSqYFL6k75oOMVMNyLC8Od2giM1TwCDKvLC8Fogv738PEVt6utmw WRqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=rQ5RFpWq; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-85826-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85826-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i2-20020a17090ad34200b00298fdee2dfesi2176896pjx.165.2024.02.28.15.15.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 15:15:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85826-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=rQ5RFpWq; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-85826-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85826-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6299EB26283 for ; Wed, 28 Feb 2024 23:03:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A66D17D085; Wed, 28 Feb 2024 23:00:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="rQ5RFpWq" Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (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 2A3F07292D for ; Wed, 28 Feb 2024 23:00:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709161220; cv=none; b=KPVN4fe5/gDTH6BMXAqE0juJeeyHYKjAJxxyK5QRINWItmdMW7r0odqDEqoJw9rk16x1XH8q1TTAz+dHDQzQhfiZh3whBLGLpEVrFmFjLbKJkK7G4a6SNGzUDugg9F3mf6M0UGEy5PlblB03KLPwHOcw1KcPiYCIaHJVlz1oWiU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709161220; c=relaxed/simple; bh=w9b+viWMNeKfgV+J2kHVNJBYQcvE+Z5QsH2BWI8zYbo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Vxj5Vpn0Q6ZONvE01R6H3plzglYR0695jbzuv4J7diU3QCuYKFsiw4K2uy+2skUlguMabK8LK1S3w+Ha08+HW/uBIbwKteQNI98FKTAijO60MC158xFgRM3vZGGFRx7iSaTPWIJZSWaKu/vnkUyvKPpCk14uJaDRJveyMihi4cY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=rQ5RFpWq; arc=none smtp.client-ip=209.85.160.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-428405a0205so61811cf.1 for ; Wed, 28 Feb 2024 15:00:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709161218; x=1709766018; 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=HopOMhsdcEXeddljk1n/xV5v9vRitHQfeTlE00H1als=; b=rQ5RFpWqtFrYnTjUnWf/wec8CW7gfi4ss2dES6Dif/YjWa73nYL3NMBtoqtDvHHaYe ad25Xd8PiFbwN8aLkdUVX+pWEinmCLNLItCWkDCUTZQeOrvn7qHVzNJLrFxMSe1FNhuW mWR1VKR7S0cj/QK9CObk92JkQt/+P4Mpf662aBqaEgWESIuW+HlmdyYb//hIhPOhRfsq QJnq69LccTZK/kCRo/NiD6cYxXDhwFlRzVTCGo8Iv3UyLWlAVmmt21kp72T2lfblql9S UeiifBk9U6kW6fL9iU9DaPCPRSKiFtKZMDl+vn/Qa2mL+9dO+nfnAEsjjeTBpkDZS1U1 skhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709161218; x=1709766018; 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=HopOMhsdcEXeddljk1n/xV5v9vRitHQfeTlE00H1als=; b=jJZqG1FheWY2BdcIQFrewtcusOZamMuumP23ZP/6qPDbj+x0pgOWaHXTam+8ZYLyVP b5Gg4/5c+hEQVevGOL2uPFNCUIDSoS1oWJiD9kQdqzKphhNdJGd9W4iz54qETP5q5VT1 ObUXihUer94jrbxXhxjnWguttVdVf56lhCUTvEq8an6cc29Cj1rLGPoc3PHcQrFMjMJR 3tPyw7bX7BvriI6gchokU/ZPl8G+4JzMNfCW7CbLkKlozZk51mevIonv0XMoEXCYw2pM GzZZLseGqniX5ubDqkgZnZ95h/S/D45xskyafVRz1aG6zpRkYj1jbmnswzaEV8rWZcVo mt5Q== X-Forwarded-Encrypted: i=1; AJvYcCUYWyNN6kSPX6xdwKpz2G+tS+Baw15ewDq28UHDB4HNVXDCg5Pm8jMNmFDFy90/W1Xh++t/b+6SfL3WFqhyhIl7uYWmlJkFPu+VtndR X-Gm-Message-State: AOJu0Yzo5eTfZWuNJ8y6s8XSeM7ojMWYtjW7ZeNUEvQMT7kwy/0ENaSR SAsTPyrGByVvNXSVlJOH2tGi2fLtpHhrYAoS40LgS8cBzABySe5m5yWAZYPUM6u2jeMPjptcq+I 8rmfv3n9RUStAdZuAdhcDIEUYX5vOqhS59wZd X-Received: by 2002:a05:622a:250:b0:42e:b8da:1457 with SMTP id c16-20020a05622a025000b0042eb8da1457mr19090qtx.23.1709161217908; Wed, 28 Feb 2024 15:00:17 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240208204844.119326-1-thuth@redhat.com> <20240208204844.119326-4-thuth@redhat.com> <501ac94d-11ab-4765-a25d-75013c021be6@sirena.org.uk> In-Reply-To: From: Raghavendra Rao Ananta Date: Wed, 28 Feb 2024 15:00:03 -0800 Message-ID: Subject: Re: [PATCH v3 3/8] KVM: selftests: Move setting a vCPU's entry point to a dedicated API To: Oliver Upton Cc: Sean Christopherson , Mark Brown , Thomas Huth , kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Bonzini , Andrew Jones , Marc Zyngier , Aishwarya TCV , Shaoqin Huang Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey Oliver, +cc Shaoqin On Wed, Feb 28, 2024 at 1:30=E2=80=AFPM Oliver Upton wrote: > > +cc Raghavendra > > Hey, > > On Wed, Feb 28, 2024 at 01:19:48PM -0800, Sean Christopherson wrote: > > but due to a different issue that is fixed in the kvm-arm tree[*], but = not in mine, > > I built without -Werror and didn't see the new warn in the sea of GUEST= _PRINTF > > warnings. > > > > Ugh, and I still can't enable -Werror, because there are unused functio= ns in > > aarch64/vpmu_counter_access.c > > > > aarch64/vpmu_counter_access.c:96:20: error: unused function 'enable_c= ounter' [-Werror,-Wunused-function] > > static inline void enable_counter(int idx) > > ^ > > aarch64/vpmu_counter_access.c:104:20: error: unused function 'disable= _counter' [-Werror,-Wunused-function] > > static inline void disable_counter(int idx) > > ^ > > 2 errors generated. > > make: *** [Makefile:278: /usr/local/google/home/seanjc/go/src/kernel.= org/nox/tools/testing/selftests/kvm/aarch64/vpmu_counter_access.o] Error 1 > > make: *** Waiting for unfinished jobs.... > > > > Commit 49f31cff9c533d264659356b90445023b04e10fb failed to build with = 'make-clang make-arm make -j128'. > > > > Oliver/Marc, any thoughts on how you want to fix the unused function wa= rnings? > > As evidenced by this goof, being able to compile with -Werror is super = helpful. > > Are these the only remaining warnings we have in the arm64 selftests > build? > > Faster than me paging this test back in: Raghu, are we missing any test > cases upstream that these helpers were intended for? If no, mind sending > a patch to get rid of them? > I sent out a patch in the past to get rid of them [1], but Shaoqin is currently making an effort to (fix and) use them in their tests [2]. While we are still reviewing the series, we can apply [1] to unblock enabling -Werror and Shaqoqin can re-introduce the functions as needed. But, it's your call. Thank you. Raghavendra [1]: https://lore.kernel.org/lkml/d5cc3cf1-7b39-9ca3-adf2-224007c751fe@redh= at.com/T/ [2]: https://lore.kernel.org/all/20240202025659.5065-3-shahuang@redhat.com/