diff options
author | Dietmar Hahn <dietmar.hahn@ts.fujitsu.com> | 2012-02-09 06:08:02 -0800 |
---|---|---|
committer | Dietmar Hahn <dietmar.hahn@ts.fujitsu.com> | 2012-02-09 06:08:02 -0800 |
commit | f0d14d7fdbf4a9ea2d02989230d15577670092c7 (patch) | |
tree | 546599f22acd7251f84988073063376628ccf029 /xen/arch/x86/hvm/vpmu.c | |
parent | 5873f70310c716846dd017cd53d5ac2fa7e024e7 (diff) | |
download | xen-f0d14d7fdbf4a9ea2d02989230d15577670092c7.tar.gz xen-f0d14d7fdbf4a9ea2d02989230d15577670092c7.tar.bz2 xen-f0d14d7fdbf4a9ea2d02989230d15577670092c7.zip |
vpmu: Use macros to access struct vpmu_struct.flags
This patch introduces some macros realising the access to the item
'flags' in the struct vpmu_struct (see
xen/include/asm-x86/hvm/vpmu.h). Only bits within 'flags' are
set/reset/checked.
Signed-off-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/hvm/vpmu.c')
-rw-r--r-- | xen/arch/x86/hvm/vpmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/hvm/vpmu.c b/xen/arch/x86/hvm/vpmu.c index bae6eedcf4..1c52aad9c6 100644 --- a/xen/arch/x86/hvm/vpmu.c +++ b/xen/arch/x86/hvm/vpmu.c @@ -86,7 +86,7 @@ void vpmu_initialise(struct vcpu *v) if ( !opt_vpmu_enabled ) return; - if ( vpmu->flags & VPMU_CONTEXT_ALLOCATED ) + if ( vpmu_is_set(vpmu, VPMU_CONTEXT_ALLOCATED) ) vpmu_destroy(v); switch ( vendor ) @@ -110,7 +110,7 @@ void vpmu_initialise(struct vcpu *v) if ( vpmu->arch_vpmu_ops != NULL ) { - vpmu->flags = 0; + vpmu_clear(vpmu); vpmu->context = NULL; vpmu->arch_vpmu_ops->arch_vpmu_initialise(v); } |