Re: [Xen-devel] [v2 11/11] p2m/ept: enable PML in p2m-ept for log-dirty

2015-04-17 Thread Jan Beulich
>>> On 17.04.15 at 09:10, wrote: > On 04/17/2015 02:28 PM, Jan Beulich wrote: > On 17.04.15 at 04:40, wrote: >>> On 04/16/2015 11:54 PM, Jan Beulich wrote: >>> On 15.04.15 at 09:03, wrote: > This patch firstly enables EPT A/D bits if PML is used, as PML depends on >>> EPT > A/D b

Re: [Xen-devel] [v2 11/11] p2m/ept: enable PML in p2m-ept for log-dirty

2015-04-17 Thread Kai Huang
On 04/17/2015 02:28 PM, Jan Beulich wrote: On 17.04.15 at 04:40, wrote: On 04/16/2015 11:54 PM, Jan Beulich wrote: On 15.04.15 at 09:03, wrote: This patch firstly enables EPT A/D bits if PML is used, as PML depends on EPT A/D bits to work. A bit is set for all present leaf p2m types, D b

Re: [Xen-devel] [v2 11/11] p2m/ept: enable PML in p2m-ept for log-dirty

2015-04-16 Thread Jan Beulich
>>> On 17.04.15 at 04:40, wrote: > On 04/16/2015 11:54 PM, Jan Beulich wrote: > On 15.04.15 at 09:03, wrote: >>> This patch firstly enables EPT A/D bits if PML is used, as PML depends on > EPT >>> A/D bits to work. A bit is set for all present leaf p2m types, D bit is set > for >>> all writ

Re: [Xen-devel] [v2 11/11] p2m/ept: enable PML in p2m-ept for log-dirty

2015-04-16 Thread Kai Huang
On 04/16/2015 11:54 PM, Jan Beulich wrote: On 15.04.15 at 09:03, wrote: This patch firstly enables EPT A/D bits if PML is used, as PML depends on EPT A/D bits to work. A bit is set for all present leaf p2m types, D bit is set for all writable types, except log-dirty type. I think the tying o

Re: [Xen-devel] [v2 11/11] p2m/ept: enable PML in p2m-ept for log-dirty

2015-04-16 Thread Jan Beulich
>>> On 15.04.15 at 09:03, wrote: > This patch firstly enables EPT A/D bits if PML is used, as PML depends on EPT > A/D bits to work. A bit is set for all present leaf p2m types, D bit is set > for > all writable types, except log-dirty type. I think the tying of "leaf" to the A bit part of the d

[Xen-devel] [v2 11/11] p2m/ept: enable PML in p2m-ept for log-dirty

2015-04-15 Thread Kai Huang
This patch firstly enables EPT A/D bits if PML is used, as PML depends on EPT A/D bits to work. A bit is set for all present leaf p2m types, D bit is set for all writable types, except log-dirty type. With PML, for 4K pages, instead of setting EPT entry to read-only, we just need to clear D bit in