x86/mm: suppress vm_events caused by page-walks
authorAlexandru Isaila <aisaila@bitdefender.com>
Thu, 5 Jul 2018 13:25:20 +0000 (15:25 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 5 Jul 2018 13:25:20 +0000 (15:25 +0200)
commitc5387c4d75602dbb2f0d3d961a5c4b8faf3873db
tree87f691cc7469d6afeaf07661459b1e9746ae6ddc
parent35a0e28620e13e9506f41b6bc01774dc5fde3986
x86/mm: suppress vm_events caused by page-walks

This patch is adding a way to enable/disable inguest pagefault
events. It introduces the xc_monitor_inguest_pagefault function
and adds the inguest_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 p2m_mem_access_check() we emulate so no event will get sent.

Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/include/xenctrl.h
tools/libxc/xc_monitor.c
tools/tests/xen-access/xen-access.c
xen/arch/x86/mm/mem_access.c
xen/arch/x86/monitor.c
xen/include/asm-x86/domain.h
xen/include/asm-x86/monitor.h
xen/include/public/domctl.h