Re: [PATCH 04/35] dmem: let pat recognize dmem

2020-10-13 Thread yulei zhang
On Tue, Oct 13, 2020 at 3:27 PM Paolo Bonzini wrote: > > On 08/10/20 09:53, yulei.ker...@gmail.com wrote: > > From: Yulei Zhang > > > > x86 pat uses 'struct page' by only checking if it's system ram, > > however it is not true if dmem is used, let's teach pat to > > recognize this case if it is r

Re: [PATCH 04/35] dmem: let pat recognize dmem

2020-10-13 Thread Paolo Bonzini
On 08/10/20 09:53, yulei.ker...@gmail.com wrote: > From: Yulei Zhang > > x86 pat uses 'struct page' by only checking if it's system ram, > however it is not true if dmem is used, let's teach pat to > recognize this case if it is ram but it is !pfn_valid() > > We always use WB for dmem and any at

[PATCH 04/35] dmem: let pat recognize dmem

2020-10-08 Thread yulei . kernel
From: Yulei Zhang x86 pat uses 'struct page' by only checking if it's system ram, however it is not true if dmem is used, let's teach pat to recognize this case if it is ram but it is !pfn_valid() We always use WB for dmem and any attempt to change this behavior will be rejected and WARN_ON is t