lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 16 Mar 2022 14:50:57 -0700
From:   Reinette Chatre <reinette.chatre@...el.com>
To:     James Morse <james.morse@....com>, <x86@...nel.org>,
        <linux-kernel@...r.kernel.org>
CC:     Fenghua Yu <fenghua.yu@...el.com>,
        Thomas Gleixner <tglx@...utronix.de>,
        Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
        H Peter Anvin <hpa@...or.com>,
        Babu Moger <Babu.Moger@....com>,
        <shameerali.kolothum.thodi@...wei.com>,
        Jamie Iles <jamie@...iainc.com>,
        "D Scott Phillips OS" <scott@...amperecomputing.com>,
        <lcherian@...vell.com>, <bobo.shaobowang@...wei.com>,
        <tan.shaopeng@...itsu.com>
Subject: Re: [PATCH v3 14/21] x86/recstrl: Allow per-rmid arch private storage
 to be reset

Hi James,

Note the subject line: "x86/recstrl" -> "x86/resctrl"

On 2/17/2022 10:21 AM, James Morse wrote:
> To abstract the rmid counters into a helper that returns the number
> of bytes counted, architecture specific per-rmid state is needed.
> 
> It needs to be possible to reset this hidden state, as the values
> may outlive the life of an rmid, or the mount time of the filesystem.
> 
> mon_event_read() is called with first = true when an rmid is first
> allocated in mkdir_mondata_subdir(). Add resctrl_arch_reset_rmid()
> and call it from __mon_event_count()'s rr->first check.
> 
> Reviewed-by: Shaopeng Tan <tan.shaopeng@...itsu.com>
> Signed-off-by: James Morse <james.morse@....com>

Reinette

Powered by blists - more mailing lists