lkml.org 
[lkml]   [2021]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC Part2 PATCH 05/30] x86: define RMP violation #PF error code
From
Date
On 3/25/21 7:32 AM, Brijesh Singh wrote:
>>> enum x86_pf_error_code {
>>> X86_PF_PROT = 1 << 0,
>>> @@ -21,6 +22,7 @@ enum x86_pf_error_code {
>>> X86_PF_INSTR = 1 << 4,
>>> X86_PF_PK = 1 << 5,
>>> X86_PF_SGX = 1 << 15,
>>> + X86_PF_RMP = 1ull << 31,
>>> };
...
>> Could we at least start declaring these with BIT()?
>
> Sure, I can bit the BIT() macro to define the bits. Do you want me to
> update all of the fault codes to use BIT() or just the one I am adding
> in this patch ?

Please update all of them for consistency.

\
 
 \ /
  Last update: 2021-03-25 15:36    [W:0.084 / U:3.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site