diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-01-30 09:59:27 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-01-30 09:59:27 +0000 |
commit | 03406ca94c130f948a7b8e36cfa4172600054f49 (patch) | |
tree | d99cb72e990a18538995449a3985a6864f8509b1 /xen/include/xen/xenoprof.h | |
parent | a1d430b3091bdd486816b907f2bc27b284347f34 (diff) | |
download | xen-03406ca94c130f948a7b8e36cfa4172600054f49.tar.gz xen-03406ca94c130f948a7b8e36cfa4172600054f49.tar.bz2 xen-03406ca94c130f948a7b8e36cfa4172600054f49.zip |
vmx: Enable Core 2 Duo Performance Counters in HVM guest
Signed-off-by: Haitao Shan <haitao.shan@intel.com>
Diffstat (limited to 'xen/include/xen/xenoprof.h')
-rw-r--r-- | xen/include/xen/xenoprof.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xen/include/xen/xenoprof.h b/xen/include/xen/xenoprof.h index 2e47296c7c..5616d0867f 100644 --- a/xen/include/xen/xenoprof.h +++ b/xen/include/xen/xenoprof.h @@ -69,4 +69,10 @@ int do_xenoprof_op(int op, XEN_GUEST_HANDLE(void) arg); int xenoprof_add_trace(struct domain *d, struct vcpu *v, unsigned long eip, int mode); +#define PMU_OWNER_NONE 0 +#define PMU_OWNER_XENOPROF 1 +#define PMU_OWNER_HVM 2 +int acquire_pmu_ownship(int pmu_ownership); +void release_pmu_ownship(int pmu_ownership); + #endif /* __XEN__XENOPROF_H__ */ |