[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1fcab4ed-eee5-4fa8-9171-01ab35cde11e@intel.com>
Date: Thu, 30 Oct 2025 20:56:47 -0700
From: Reinette Chatre <reinette.chatre@...el.com>
To: Sagi Shahar <sagis@...gle.com>, <linux-kselftest@...r.kernel.org>, "Paolo
Bonzini" <pbonzini@...hat.com>, Shuah Khan <shuah@...nel.org>, "Sean
Christopherson" <seanjc@...gle.com>, Ackerley Tng <ackerleytng@...gle.com>,
Ryan Afranji <afranji@...gle.com>, Andrew Jones <ajones@...tanamicro.com>,
Isaku Yamahata <isaku.yamahata@...el.com>, Erdem Aktas
<erdemaktas@...gle.com>, Rick Edgecombe <rick.p.edgecombe@...el.com>, "Roger
Wang" <runanwang@...gle.com>, Binbin Wu <binbin.wu@...ux.intel.com>, "Oliver
Upton" <oliver.upton@...ux.dev>, "Pratik R. Sampat"
<pratikrajesh.sampat@....com>, Ira Weiny <ira.weiny@...el.com>, Chao Gao
<chao.gao@...el.com>, Chenyi Qiang <chenyi.qiang@...el.com>
CC: <linux-kernel@...r.kernel.org>, <kvm@...r.kernel.org>
Subject: Re: [PATCH v12 07/23] KVM: selftests: Add kbuild definitons
Hi Sagi,
typo in subject: definitons -> definitions
This is not actually a KVM selftest change though but an addition to
core tools. I do not know if such an addition can flow via the KVM tree but I
really do not think that it should be disguised as a KVM change as the
subject implies.
On 10/28/25 2:20 PM, Sagi Shahar wrote:
> Add kbuild.h that can be used by files under tools/
Similar to earlier feedback this is obvious from the patch self.
>
> Definitions are taken from the original definitions at
> include/linux/kbuild.h
Always write in imperative mood.
>
> This is needed to expose values from c code to assembly code.
I do not think this description is a strong motivation.
Another draft for consideration:
Add the kbuild definitions to enable a tool to use
the kbuild filechk_offset script to generate C header files
containing structure member offset information.
Tools depending on assembly code that operates on structures
need to hardcode the offsets of structure members. The kernel's
kbuild scripts can instead generate C header files with offset
information for inclusion into assembly code.
Reinette
Powered by blists - more mailing lists