diff options
author | Joe Epstein <jepstein98@gmail.com> | 2011-01-07 11:54:40 +0000 |
---|---|---|
committer | Joe Epstein <jepstein98@gmail.com> | 2011-01-07 11:54:40 +0000 |
commit | fbbedcae8c0c5374f8c0a869f49784b37baf04bb (patch) | |
tree | 6a2a50b6ea18fef45c61f6e648f154c0138e244c /xen/include/asm-x86/mem_access.h | |
parent | a6cdb9545035b731802de41e10b2b43ef4ffd9c0 (diff) | |
download | xen-fbbedcae8c0c5374f8c0a869f49784b37baf04bb.tar.gz xen-fbbedcae8c0c5374f8c0a869f49784b37baf04bb.tar.bz2 xen-fbbedcae8c0c5374f8c0a869f49784b37baf04bb.zip |
mem_access: mem event additions for access
* Adds an ACCESS memory event type, with RESUME as the action.
* Refactors the bits in the memory event to store whether the memory event
was a read, write, or execute (for access memory events only). I used
bits sparingly to keep the structure somewhat the same size.
* Modified VMX to report the needed information in its nested page fault.
SVM is not implemented in this patch series.
Signed-off-by: Joe Epstein <jepstein98@gmail.com>
Acked-by: Keir Fraser <keir@xen.org>
Acked-by: Tim Deegan <Tim.Deegan@citrix.com>
Diffstat (limited to 'xen/include/asm-x86/mem_access.h')
-rw-r--r-- | xen/include/asm-x86/mem_access.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/xen/include/asm-x86/mem_access.h b/xen/include/asm-x86/mem_access.h new file mode 100644 index 0000000000..4f038f97b0 --- /dev/null +++ b/xen/include/asm-x86/mem_access.h @@ -0,0 +1,35 @@ +/****************************************************************************** + * include/asm-x86/mem_paging.h + * + * Memory access support. + * + * Copyright (c) 2011 Virtuata, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +int mem_access_domctl(struct domain *d, xen_domctl_mem_event_op_t *mec, + XEN_GUEST_HANDLE(void) u_domctl); + + +/* + * Local variables: + * mode: C + * c-set-style: "BSD" + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + */ |