Skip to contentSkip to conversation

vpmu: cleanup structures

PATCH New Dietmar Hahn 1 participant 1 message Feb 29, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vpmu: cleanup structures

Hi,

a small cleanup of vpmu structures:

- struct msr_load_store_entry is unused
- struct pmumsr is only used in the vmx part

Dietmar.

# HG changeset patch
# Parent a7bacdc5449a2f7bb9c35b2a1334b463fe9f29a9

xen/arch/x86/hvm/vmx/vpmu_core2.c +5 -0
diff -r a7bacdc5449a xen/arch/x86/hvm/vmx/vpmu_core2.c
@@ -112,6 +112,11 @@ u32 core2_ctrls_msr[] = {
     MSR_IA32_PEBS_ENABLE,
     MSR_IA32_DS_AREA};
 
+struct pmumsr {
+    unsigned int num;
+    u32 *msr;
+};
+
 struct pmumsr core2_counters = {
     3,
     core2_counters_msr
xen/include/asm-x86/hvm/vpmu.h +0 -10
diff -r a7bacdc5449a xen/include/asm-x86/hvm/vpmu.h
@@ -34,16 +34,6 @@
 #define MSR_TYPE_ARCH_COUNTER       3
 #define MSR_TYPE_ARCH_CTRL          4
 
-struct pmumsr {
-    unsigned int num;
-    u32 *msr;
-};
-
-struct msr_load_store_entry {
-    u32 msr_index;
-    u32 msr_reserved;
-    u64 msr_data;
-};
 
 /* Arch specific operations shared by all vpmus */
 struct arch_vpmu_ops {
Signature · 1 line
Company details: http://ts.fujitsu.com/imprint.html