[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <02057050-c280-43df-8965-73555fb3c41a@intel.com>
Date: Wed, 22 Oct 2025 21:07:44 -0700
From: Reinette Chatre <reinette.chatre@...el.com>
To: Tony Luck <tony.luck@...el.com>, Fenghua Yu <fenghuay@...dia.com>, "Maciej
Wieczor-Retman" <maciej.wieczor-retman@...el.com>, Peter Newman
<peternewman@...gle.com>, James Morse <james.morse@....com>, Babu Moger
<babu.moger@....com>, Drew Fustini <dfustini@...libre.com>, Dave Martin
<Dave.Martin@....com>, Chen Yu <yu.c.chen@...el.com>
CC: <x86@...nel.org>, <linux-kernel@...r.kernel.org>,
<patches@...ts.linux.dev>
Subject: Re: [PATCH v12 01/31] x86,fs/resctrl: Improve domain type checking
Hi Tony,
On 10/13/25 3:33 PM, Tony Luck wrote:
> Every resctrl resource has a list of domain structures. struct rdt_ctrl_domain
> and struct rdt_mon_domain both begin with struct rdt_domain_hdr with
> rdt_domain_hdr::type used in validity checks before accessing the domain of a
> particular type.
>
> Add the resource id to struct rdt_domain_hdr in preparation for a new monitoring
> domain structure that will be associated with a new monitoring resource. Improve
> existing domain validity checks with a new helper domain_header_is_valid()
> that checks both domain type and resource id. domain_header_is_valid() should
> be used before every call to container_of() that accesses a domain structure.
>
> Signed-off-by: Tony Luck <tony.luck@...el.com>
> ---
Reviewed-by: Reinette Chatre <reinette.chatre@...el.com>
Reinette
Powered by blists - more mailing lists