From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 19EC2CEB2C9 for ; Mon, 30 Sep 2024 21:58:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:To:From:Subject :Message-ID:References:Mime-Version:In-Reply-To:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=PntPBodbq4krAqAL/kXN8N5SHx+RiWW9dX81Z4mrKcI=; b=rkJfuBE5evyfOpSJB3aRdXDU2f NS2oQ0NSmca/B5gRHUSWJZao+TjNb/IusaZpwJfvObx+c6Su0tP/ehBNp9kfUqNjiVtas1fT5cacQ eyuWJYHObV15gzodd1fc6sE8TcUgvetbh2GXkQybAPGo/iO8Eyi4wGZAFyNLw4yeJ1ehR2/jfL8jx HOmtxbWJPo6oCkLWXiurhYjS2zJ4Ccmsuq8cqbGWIPTRludByBZwC7086X2qfxHqBRXbD1cfWnGsS nxTXtd3kuAeT83Nb8gzTTN5dyMckNoOxyZ8gACrlCGy4FKLZ7M6+BiTo9AUbk2LeZ/XxufazyDJha mtmG+0Hw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svOPB-00000000yGS-3nKr; Mon, 30 Sep 2024 21:58:09 +0000 Received: from mail-pl1-x649.google.com ([2607:f8b0:4864:20::649]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svONx-00000000xyP-2G7f for linux-arm-kernel@lists.infradead.org; Mon, 30 Sep 2024 21:56:55 +0000 Received: by mail-pl1-x649.google.com with SMTP id d9443c01a7336-20b485e3314so44369885ad.1 for ; Mon, 30 Sep 2024 14:56:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1727733412; x=1728338212; darn=lists.infradead.org; h=to:from:subject:message-id:references:mime-version:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=PntPBodbq4krAqAL/kXN8N5SHx+RiWW9dX81Z4mrKcI=; b=lGWrbJWP0OTtld+ZPEcP/tv+5bu9mD/zWWVcwuBjcChL4Y/pSAm//ms4Kvm58ZnvTK hq8xbgmcDcJgd/GUi7Rg2Ny2W/QD1MWSCWq8ek0glFEM9bkJTpVMNWci7SxrGyds3Jwr 6dNmhQVPSZQrpQAKkWd49PdDuqV+NobJWdmgLLNUc4MzdlZL5lZrZZzfh84AkMFSavrk Z5XSGchTfrEhS/Md5JW7gMqhl/siY9tYO++6tANiLnxcrqdGKzMRUvjy4aZDUnu42bNv pxPSZqOZY9L769yh3O5Ar5ykPcg2xbSg7Sf31wEpOr8uDqP1jQc0T/x87FFNuVxQ8oRD GthQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727733412; x=1728338212; h=to:from:subject:message-id:references:mime-version:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PntPBodbq4krAqAL/kXN8N5SHx+RiWW9dX81Z4mrKcI=; b=ZPL+djcDcs3BOJv5mebJQCNBCCA3OEPe2QiIO8jECJpzVmqP4h2JvPudga5RMJyRLV we3hkLRKc3ZW+Duz2UF55slR30xCUB9RFSWmnl9GAxlPR9SxYsv+fcnqZKsk0ML63FtV 2MLTcep4OWVR4cx5peC8sw5h3vLthq7q6pwfyMdz3P9hoO0rCGYpMmwnO0axvTkuxBss 29hJpHhfLhjLmvqml4emQYJEzCizKHScadrQCJxao7uvniJm3e0mfKu1RI4Fg7LiNOWv L1dWKEERFEK39ZtjE3nXv24wKkQ0I0lia7wZVEQJp5LQjWC7PpKPCx3kTDJeTpB5UZil sOSg== X-Forwarded-Encrypted: i=1; AJvYcCWZCCAfGcj8ClygbNSF+MoVIToGatktiBklrHTaLJm+MeXvPUothkiHJli7QZ0cxUiS+W1PBc3sDG2edtXKfx8u@lists.infradead.org X-Gm-Message-State: AOJu0Yy4Z257HI0F1CtxQuhbCZTSyQOCJh8luQfJ/Jek3SOsBf921Af2 1OXMJs3T6sk0AFnEC9hmL8OOqys4Cm4TDwSt9tr+gOqWroAygPDtAZ4adJLkO3WAu8hiKZhCG8/ ALA== X-Google-Smtp-Source: AGHT+IFa/3NUudFCuE72HcCwi+hM+UVm+5oAl6XGWfqHgohNP2i/0xjhJQmHwp45qjEiLZEOk9HWi9na7w8= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:902:f691:b0:20b:aed1:bf77 with SMTP id d9443c01a7336-20baed1c097mr62225ad.7.1727733411419; Mon, 30 Sep 2024 14:56:51 -0700 (PDT) Date: Mon, 30 Sep 2024 14:56:49 -0700 In-Reply-To: <20240911204158.2034295-4-seanjc@google.com> Mime-Version: 1.0 References: <20240911204158.2034295-1-seanjc@google.com> <20240911204158.2034295-4-seanjc@google.com> Message-ID: Subject: Re: [PATCH v2 03/13] KVM: selftests: Fudge around an apparent gcc bug in arm64's PMU test From: Sean Christopherson To: Marc Zyngier , Oliver Upton , Anup Patel , Paolo Bonzini , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, James Houghton Content-Type: text/plain; charset="us-ascii" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240930_145653_583974_0E503E8D X-CRM114-Status: UNSURE ( 9.74 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Sep 11, 2024, Sean Christopherson wrote: > Use u64_replace_bits() instead of u64p_replace_bits() to set PMCR.N in > arm64's vPMU counter access test to fudge around what appears to be a gcc > bug. With the recent change to have vcpu_get_reg() return a value in lieu > of an out-param, some versions of gcc completely ignore the operation > performed by set_pmcr_n(), i.e. ignore the output param. Filed a gcc bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116912 I'll report back if anything interesting comes out of that bug.