Re: [PATCH v3 for-6.0 1/2] tcg: Do not set guard pages on the rx portion of code_gen_buffer

2021-03-22 Thread Richard Henderson
On 3/22/21 7:56 AM, Roman Bolshakov wrote: - What does mean that rx might be covered by huge pages? (perhaps I'm missing some context) Huge pages are where a single level (n-1) page table entry covers the entire span that would be covered by m * level n page table entries. On x86, this

Re: [PATCH v3 for-6.0 1/2] tcg: Do not set guard pages on the rx portion of code_gen_buffer

2021-03-22 Thread Roman Bolshakov
On Sat, Mar 20, 2021 at 10:57:19AM -0600, Richard Henderson wrote: > The rw portion of the buffer is the only one in which overruns > can be generated. Allow the rx portion to be more completely > covered by huge pages. > > Signed-off-by: Richard Henderson > --- > tcg/tcg.c | 12 +--- >

[PATCH v3 for-6.0 1/2] tcg: Do not set guard pages on the rx portion of code_gen_buffer

2021-03-20 Thread Richard Henderson
The rw portion of the buffer is the only one in which overruns can be generated. Allow the rx portion to be more completely covered by huge pages. Signed-off-by: Richard Henderson --- tcg/tcg.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.