[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86 hvm: small cleanup in vpmu
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1253603098 -3600 # Node ID 473cba2fa7fe2ac625df924e5cbf0781be623fb5 # Parent f30bf6b03ce797f166d7541c3a52bcf6c282e192 x86 hvm: small cleanup in vpmu Replace the special vpmu define LVTPC_HVM_PMU with the global used define PMU_APIC_VECTOR to avoid different names for the same thing. Signed-off-by: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx> --- xen/arch/x86/hvm/vmx/vpmu_core2.c | 6 +++--- xen/include/asm-x86/hvm/vmx/vpmu.h | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff -r f30bf6b03ce7 -r 473cba2fa7fe xen/arch/x86/hvm/vmx/vpmu_core2.c --- a/xen/arch/x86/hvm/vmx/vpmu_core2.c Tue Sep 22 08:02:50 2009 +0100 +++ b/xen/arch/x86/hvm/vmx/vpmu_core2.c Tue Sep 22 08:04:58 2009 +0100 @@ -178,7 +178,7 @@ static inline void __core2_vpmu_save(str for ( i = 0; i < core2_get_pmc_count(); i++ ) rdmsrl(MSR_IA32_PERFCTR0+i, core2_vpmu_cxt->arch_msr_pair[i].counter); core2_vpmu_cxt->hw_lapic_lvtpc = apic_read(APIC_LVTPC); - apic_write(APIC_LVTPC, LVTPC_HVM_PMU | APIC_LVT_MASKED); + apic_write(APIC_LVTPC, PMU_APIC_VECTOR | APIC_LVT_MASKED); } static void core2_vpmu_save(struct vcpu *v) @@ -398,9 +398,9 @@ static int core2_vpmu_do_wrmsr(struct cp /* Setup LVTPC in local apic */ if ( vpmu->flags & VPMU_RUNNING && is_vlapic_lvtpc_enabled(vcpu_vlapic(v)) ) - apic_write_around(APIC_LVTPC, LVTPC_HVM_PMU); + apic_write_around(APIC_LVTPC, PMU_APIC_VECTOR); else - apic_write_around(APIC_LVTPC, LVTPC_HVM_PMU | APIC_LVT_MASKED); + apic_write_around(APIC_LVTPC, PMU_APIC_VECTOR | APIC_LVT_MASKED); core2_vpmu_save_msr_context(v, type, index, msr_content); if ( type != MSR_TYPE_GLOBAL ) diff -r f30bf6b03ce7 -r 473cba2fa7fe xen/include/asm-x86/hvm/vmx/vpmu.h --- a/xen/include/asm-x86/hvm/vmx/vpmu.h Tue Sep 22 08:02:50 2009 +0100 +++ b/xen/include/asm-x86/hvm/vmx/vpmu.h Tue Sep 22 08:04:58 2009 +0100 @@ -33,8 +33,6 @@ #define MSR_TYPE_GLOBAL 2 #define MSR_TYPE_ARCH_COUNTER 3 #define MSR_TYPE_ARCH_CTRL 4 - -#define LVTPC_HVM_PMU 0xf8 struct pmumsr { unsigned int num; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |