ia64/xen-unstable

view xen/common/compat/xenoprof.c @ 17062:0769835cf50f

x86 shadow: Reduce scope of shadow lock.

emulate_map_dest doesn't require holding lock, since
only shadow related operation possibly involved is to
remove shadow which is less frequent and can acquire
lock inside. Rest are either guest table walk or
per-vcpu monitor table manipulation

Signed-off-by Kevin Tian <kevin.tian@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Feb 14 10:33:12 2008 +0000 (2008-02-14)
parents 62f3df867d0e
children 44ec075760b6
line source
1 /*
2 * compat/xenoprof.c
3 */
5 #include <compat/xenoprof.h>
7 #define COMPAT
9 #define do_xenoprof_op compat_xenoprof_op
11 #define xen_oprof_init xenoprof_init
12 CHECK_oprof_init;
13 #undef xen_oprof_init
15 #define xenoprof_get_buffer compat_oprof_get_buffer
16 #define xenoprof_op_get_buffer compat_oprof_op_get_buffer
18 #define xen_domid_t domid_t
19 #define compat_domid_t domid_compat_t
20 CHECK_TYPE(domid);
21 #undef compat_domid_t
22 #undef xen_domid_t
24 #define xen_oprof_passive xenoprof_passive
25 CHECK_oprof_passive;
26 #undef xen_oprof_passive
28 #define xenoprof_counter compat_oprof_counter
30 #include "../xenoprof.c"
32 /*
33 * Local variables:
34 * mode: C
35 * c-set-style: "BSD"
36 * c-basic-offset: 4
37 * tab-width: 4
38 * indent-tabs-mode: nil
39 * End:
40 */