[PATCH] mini-os: correct memory access rights for pvh mode

2020-08-15 Thread Juergen Gross
When running as a PVH guest the memory access rights are not set correctly: _PAGE_USER should not be set and CR0.WP should be set. Especially CR0.WP is important in order to let the allocate on demand feature work, as it requires a page fault when writing to a read-only page. Signed-off-by: Juerge

Re: [PATCH] mini-os: correct memory access rights for pvh mode

2020-08-15 Thread Samuel Thibault
Juergen Gross, le sam. 15 août 2020 13:15:57 +0200, a ecrit: > When running as a PVH guest the memory access rights are not set > correctly: _PAGE_USER should not be set and CR0.WP should be set. > Especially CR0.WP is important in order to let the allocate on > demand feature work, as it requires

Re: [PATCH] mini-os: correct memory access rights for pvh mode

2020-08-17 Thread Wei Liu
On Sat, Aug 15, 2020 at 11:40:02PM +0200, Samuel Thibault wrote: > Juergen Gross, le sam. 15 août 2020 13:15:57 +0200, a ecrit: > > When running as a PVH guest the memory access rights are not set > > correctly: _PAGE_USER should not be set and CR0.WP should be set. > > Especially CR0.WP is importa