Re: [PATCH v4 18/21] VT-d: replace all-contiguous page tables by superpage mappings

2022-05-20 Thread Roger Pau Monné
On Wed, May 18, 2022 at 12:44:06PM +0200, Jan Beulich wrote: > On 11.05.2022 13:08, Roger Pau Monné wrote: > > On Mon, Apr 25, 2022 at 10:43:45AM +0200, Jan Beulich wrote: > >> When a page table ends up with all contiguous entries (including all > >> identical attributes), it can be replaced by a s

Re: [PATCH v4 18/21] VT-d: replace all-contiguous page tables by superpage mappings

2022-05-18 Thread Jan Beulich
On 11.05.2022 13:08, Roger Pau Monné wrote: > On Mon, Apr 25, 2022 at 10:43:45AM +0200, Jan Beulich wrote: >> When a page table ends up with all contiguous entries (including all >> identical attributes), it can be replaced by a superpage entry at the >> next higher level. The page table itself can

Re: [PATCH v4 18/21] VT-d: replace all-contiguous page tables by superpage mappings

2022-05-11 Thread Roger Pau Monné
On Mon, Apr 25, 2022 at 10:43:45AM +0200, Jan Beulich wrote: > When a page table ends up with all contiguous entries (including all > identical attributes), it can be replaced by a superpage entry at the > next higher level. The page table itself can then be scheduled for > freeing. > > The adjust

[PATCH v4 18/21] VT-d: replace all-contiguous page tables by superpage mappings

2022-04-25 Thread Jan Beulich
When a page table ends up with all contiguous entries (including all identical attributes), it can be replaced by a superpage entry at the next higher level. The page table itself can then be scheduled for freeing. The adjustment to LEVEL_MASK is merely to avoid leaving a latent trap for whenever