From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (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 74EE128C854 for ; Wed, 13 May 2026 04:16:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778645804; cv=none; b=Wcd+UKWb9qGBJfq9ZEa9a4z+lH/IugIqix5u/TFy+HaQFutx/iCW2+IlPBeX99nXAXUrvoxzUBUIHTKEAu/eiAfBxM+JfKGOPxbhpkkfCzHhIG0gSt3ZfRgMa/ou3kppXlFwR6UjtrjwlxqxLMpK38ybLDKhoxCt9qVB1LeNcd4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778645804; c=relaxed/simple; bh=I2sKcS1znbnZn7Yi8wg3SUvDOeBnhN2M7+U6nZ8wptQ=; h=From:To:Cc:Subject:In-Reply-To:Date:Message-ID:References: MIME-version:Content-type; b=j2CXZl4/s8pUy2pdF8VA8UKGnsljlHh5NDYywZIcq/9Rx35Aqz/VbTYdkKdBAyggG0LOQ9Lz66ISGdQ5pA7Sq+ke+yDIw0cdZ7FOrw8JT6mDptA6rZG8bQ1NW2a/hpzkl75SD14rOTjlxNETDGth8ru61rTRVIDFxo8Fov2+4E0= 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=C6cJ4nY0; arc=none smtp.client-ip=209.85.216.50 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="C6cJ4nY0" Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-365e20fe3b8so3628917a91.3 for ; Tue, 12 May 2026 21:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778645803; x=1779250603; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:message-id:date :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=dgwjs4Wmc3SmAqImPeb+QvEd0ROSS5ez6gLjaZVs7/o=; b=C6cJ4nY0klYq1tYgUPqNVZcM/9uV1g18WIT102Y6YC6jIEg61rMU9BaZnVhjas7D1P v08LTlZmOdx0Ih+O/2o1yTDm9lSTHgktT2KqZrw6ageS6Hpdz1hthDlFOS3o+Yc5VOmI rG4bjpvzerUxQuFPHr+osAyJnZNCyWETrSLVDIzUsdF39k2QjBvy1NWPS+3GuSkZHxxx shhEB7D1iWfG8eck3qhgk2h6J35epQ/tJmLbo3pag86KjNCdEw1ZIP7EDMtK53Q3t4qZ LLRVeODBMT1jnmxfWx48/0jI4b8fDh6uK2gIIS5i13DAJUTx+0K2BKEbpreh9zpS2LQl ShJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778645803; x=1779250603; h=content-transfer-encoding:mime-version:references:message-id:date :in-reply-to:subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=dgwjs4Wmc3SmAqImPeb+QvEd0ROSS5ez6gLjaZVs7/o=; b=euw4rnmoCadHlcpPmB+Th1IrZvZujuAPw6dFqCteyny0jiLJfXtxC6MOT9K9BgvSeh jwlGj7IXZ+Rh2uvHZ2HsPiKyXBMj0+XfOl7fL/S0+qOQtIHs91CxHiqozRES/DoK/TS7 FEtUg3yD70JkLZkkW1eewjxiMVHZ258aLulhtmmg6ydPytz1AimWEtKQH3jKI4AE+obE J66IYzA/qywgJIxIwPF19GjKnlprJ38+aV9ktBoCJr/6iDBxoLeg/getEjeuny46KgxS SWVboiIGL/p4J7gS4lh1jeN+YliUAjAdgsAB1GLfsgdpb2C/bvjXnT7r599dvVs2IMI/ oUMw== X-Forwarded-Encrypted: i=1; AFNElJ+SdLnsJGQGgYjpg+cGuRkL6B4kHI9Te7L8V85ZDWJ3wY5F0geQB7caAJQoDqu40G2pQR/5O9v7TMEjnsU=@vger.kernel.org X-Gm-Message-State: AOJu0YynDuNtjWZzoKm3YgKS+KDI+/Aen8IgcqTGtD/bSMCo0qWM9L6E ZcN3IM30bWjY6vL2nlJZ+bHuBlSe1sxXYGjrUMAEN39zA/fUElqWczDB X-Gm-Gg: Acq92OFj12E6eObJoRhkP8nc7uvrzfKSLpYaTfJA6sAEpjQzUxlmJTqsDfUVMddttIO k+S9KBUDYHkPNf40RR8lFBpEbFbBOrNWhuooS3s5FaehTSdnMvUHx3RJW9zRaFwDqgpVkwQ5T4g akApRJ0GsqFhjRnikMvzdyyeZPzRCbb5VKijHI5ht0LjIiEh5EahhOIKKnH6wn1+GHG8dqC/dmL tJGCmL3K7eSI0BuSTY8sCYxSfmTa2+WbUODCMUY4O4nypUE7FhfpoORNGU++Vx/rPKzN2HvYe48 lQbqBk/jw/Yy7CvprGO2WHTk7ZKAcWx7H9tm0J6N5C/HSEeqOXsQSVpAX9qel7QNsgDYUP6Aq9O oo46YuMea41qdw7AMReySzhZdyWwy8YxnZkC/Y5dK+U+jGgjM15dS2eNme0HyhRjzLdc7exAqXV J/lAmHe28ejE3Ji3lQxQMQ7g== X-Received: by 2002:a17:90b:134d:b0:366:3ac:f725 with SMTP id 98e67ed59e1d1-368f409cefbmr1683736a91.25.1778645802683; Tue, 12 May 2026 21:16:42 -0700 (PDT) Received: from pve-server ([49.205.216.49]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c826771b19csm13145401a12.22.2026.05.12.21.16.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2026 21:16:42 -0700 (PDT) From: Ritesh Harjani (IBM) To: Gautam Menghani , Ian Rogers Cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, namhyung@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, adrian.hunter@intel.com, james.clark@linaro.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, maddy@linux.ibm.com Subject: Re: [PATCH] perf kvm stat: Update the exit reason mappings In-Reply-To: Date: Wed, 13 May 2026 09:33:10 +0530 Message-ID: References: <20260512120408.59332-1-gautam@linux.ibm.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=utf-8 Content-Transfer-Encoding: 8bit ++ linuxppc-dev Gautam Menghani writes: > On Tue, May 12, 2026 at 08:25:08AM -0700, Ian Rogers wrote: >> On Tue, May 12, 2026 at 5:04 AM Gautam Menghani wrote: >> > >> > Sync the exit reason mappings with the mappings in trace_book3s.h >> >> I see: >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/powerpc/kvm/trace_book3s.h >> Would it make sense to have a copy in perf and use the check headers >> code to keep them in sync? >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/perf/check-headers.sh > > I'll take a look at this, thanks > >> >> Could you add the commits that add the H_VIRT and H_FAC_UNAVAIL >> definitions? I don't see them in Linus' tree yet. > > I posted that patch earlier today - https://lore.kernel.org/linuxppc-dev/20260512115724.59299-1-gautam@linux.ibm.com/ > should've pasted the link in the patch > For patches not yet merged and having such a dependency, this could cause confusion. What I generally tend to do in such case is, group this patch (changes in tools/perf/util/kvm-stat-arch/book3s_hv_exits.h) into the same series which adds H_FAC_UNAVAIL to trace_book3s.h [1]. This way it is easier for everyone to keep track of the dependencies. [1]: https://lore.kernel.org/linuxppc-dev/20260512115724.59299-1-gautam@linux.ibm.com/ Note, that we should still cc the relevant mailing lists, reviewers and maintainers to get an Acked-by. Since the changes in this patch are largely powerpc specific, so IMO, it should be ok even if it goes via powerpc tree via a common series, as long as everyone agrees. -ritesh