Re: [Xen-devel] [PATCH v2] x86/mm: Suppresses vm_events caused by page-walks

2018-09-19 Thread Jan Beulich
>>> On 19.09.18 at 15:41, wrote: > On 19/09/18 09:53, Jan Beulich wrote: > On 18.09.18 at 20:20, wrote: >>> On 18/09/18 11:17, Jan Beulich wrote: >>> On 18.09.18 at 11:47, wrote: > On Thu, 2018-09-13 at 08:17 -0600, Jan Beulich wrote: > On 12.09.18 at 11:47, wrote: >>> T

Re: [Xen-devel] [PATCH v2] x86/mm: Suppresses vm_events caused by page-walks

2018-09-19 Thread Andrew Cooper
On 19/09/18 09:53, Jan Beulich wrote: On 18.09.18 at 20:20, wrote: >> On 18/09/18 11:17, Jan Beulich wrote: >> On 18.09.18 at 11:47, wrote: On Thu, 2018-09-13 at 08:17 -0600, Jan Beulich wrote: On 12.09.18 at 11:47, wrote: >> The original version of the patch emulated

Re: [Xen-devel] [PATCH v2] x86/mm: Suppresses vm_events caused by page-walks

2018-09-19 Thread Jan Beulich
>>> On 18.09.18 at 20:20, wrote: > On 18/09/18 11:17, Jan Beulich wrote: > On 18.09.18 at 11:47, wrote: >>> On Thu, 2018-09-13 at 08:17 -0600, Jan Beulich wrote: >>> On 12.09.18 at 11:47, wrote: > The original version of the patch emulated the current instruction > (which, as a s

Re: [Xen-devel] [PATCH v2] x86/mm: Suppresses vm_events caused by page-walks

2018-09-18 Thread Razvan Cojocaru
On 9/18/18 9:20 PM, Andrew Cooper wrote: > On 18/09/18 11:17, Jan Beulich wrote: > On 18.09.18 at 11:47, wrote: >>> On Thu, 2018-09-13 at 08:17 -0600, Jan Beulich wrote: >>> On 12.09.18 at 11:47, wrote: > The original version of the patch emulated the current instruction > (which,

Re: [Xen-devel] [PATCH v2] x86/mm: Suppresses vm_events caused by page-walks

2018-09-18 Thread Andrew Cooper
On 18/09/18 11:17, Jan Beulich wrote: On 18.09.18 at 11:47, wrote: >> On Thu, 2018-09-13 at 08:17 -0600, Jan Beulich wrote: >> On 12.09.18 at 11:47, wrote: The original version of the patch emulated the current instruction (which, as a side-effect, emulated the page-walk as wel

Re: [Xen-devel] [PATCH v2] x86/mm: Suppresses vm_events caused by page-walks

2018-09-18 Thread Jan Beulich
>>> On 18.09.18 at 11:47, wrote: > On Thu, 2018-09-13 at 08:17 -0600, Jan Beulich wrote: >> > > > On 12.09.18 at 11:47, wrote: >> > >> > The original version of the patch emulated the current instruction >> > (which, as a side-effect, emulated the page-walk as well), however >> > we >> > need fi

Re: [Xen-devel] [PATCH v2] x86/mm: Suppresses vm_events caused by page-walks

2018-09-18 Thread Isaila Alexandru
On Thu, 2018-09-13 at 08:17 -0600, Jan Beulich wrote: > > > > On 12.09.18 at 11:47, wrote: > > > > The original version of the patch emulated the current instruction > > (which, as a side-effect, emulated the page-walk as well), however > > we > > need finer-grained control. We want to emulate th

Re: [Xen-devel] [PATCH v2] x86/mm: Suppresses vm_events caused by page-walks

2018-09-13 Thread Jan Beulich
>>> On 12.09.18 at 11:47, wrote: > The original version of the patch emulated the current instruction > (which, as a side-effect, emulated the page-walk as well), however we > need finer-grained control. We want to emulate the page-walk, but still > get an EPT violation event if the current instru

[Xen-devel] [PATCH v2] x86/mm: Suppresses vm_events caused by page-walks

2018-09-12 Thread Alexandru Isaila
The original version of the patch emulated the current instruction (which, as a side-effect, emulated the page-walk as well), however we need finer-grained control. We want to emulate the page-walk, but still get an EPT violation event if the current instruction would trigger one. This patch perfor

Re: [Xen-devel] [PATCH v2] x86/mm: Suppresses vm_events caused by page-walks

2018-02-26 Thread Jan Beulich
>>> On 23.02.18 at 18:46, wrote: > On Mon, Jan 08, 2018 at 02:49:44PM +0200, Alexandru Isaila wrote: >> --- >> tools/libxc/include/xenctrl.h | 2 ++ >> tools/libxc/xc_monitor.c | 14 ++ > > These changes look sensible to me. > >> xen/arch/x86/mm/mem_access.c | 27

Re: [Xen-devel] [PATCH v2] x86/mm: Suppresses vm_events caused by page-walks

2018-02-23 Thread Razvan Cojocaru
On 02/24/2018 12:31 AM, Tamas K Lengyel wrote: > On Fri, Feb 23, 2018 at 3:25 PM, Razvan Cojocaru > wrote: >> On 02/24/2018 12:06 AM, Tamas K Lengyel wrote: >>> On Mon, Jan 8, 2018 at 5:49 AM, Alexandru Isaila >>> wrote: This patch is adding a way to enable/disable nested pagefault even

Re: [Xen-devel] [PATCH v2] x86/mm: Suppresses vm_events caused by page-walks

2018-02-23 Thread Tamas K Lengyel
On Fri, Feb 23, 2018 at 3:25 PM, Razvan Cojocaru wrote: > On 02/24/2018 12:06 AM, Tamas K Lengyel wrote: >> On Mon, Jan 8, 2018 at 5:49 AM, Alexandru Isaila >> wrote: >>> This patch is adding a way to enable/disable nested pagefault >>> events. It introduces the xc_monitor_nested_pagefault functi

Re: [Xen-devel] [PATCH v2] x86/mm: Suppresses vm_events caused by page-walks

2018-02-23 Thread Razvan Cojocaru
On 02/24/2018 12:06 AM, Tamas K Lengyel wrote: > On Mon, Jan 8, 2018 at 5:49 AM, Alexandru Isaila > wrote: >> This patch is adding a way to enable/disable nested pagefault >> events. It introduces the xc_monitor_nested_pagefault function >> and adds the nested_pagefault_disabled in the monitor str

Re: [Xen-devel] [PATCH v2] x86/mm: Suppresses vm_events caused by page-walks

2018-02-23 Thread Tamas K Lengyel
On Mon, Jan 8, 2018 at 5:49 AM, Alexandru Isaila wrote: > This patch is adding a way to enable/disable nested pagefault > events. It introduces the xc_monitor_nested_pagefault function > and adds the nested_pagefault_disabled in the monitor structure. > This is needed by the introspection so it wi

Re: [Xen-devel] [PATCH v2] x86/mm: Suppresses vm_events caused by page-walks

2018-02-23 Thread Wei Liu
On Mon, Jan 08, 2018 at 02:49:44PM +0200, Alexandru Isaila wrote: > This patch is adding a way to enable/disable nested pagefault > events. It introduces the xc_monitor_nested_pagefault function > and adds the nested_pagefault_disabled in the monitor structure. > This is needed by the introspection

[Xen-devel] [PATCH v2] x86/mm: Suppresses vm_events caused by page-walks

2018-01-08 Thread Alexandru Isaila
This patch is adding a way to enable/disable nested pagefault events. It introduces the xc_monitor_nested_pagefault function and adds the nested_pagefault_disabled in the monitor structure. This is needed by the introspection so it will only get gla faults and not get spammed with other faults. In