[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] vpmu: cleanup structures


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>
  • Date: Wed, 29 Feb 2012 10:52:04 +0100
  • Delivery-date: Wed, 29 Feb 2012 09:52:39 +0000
  • Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:From:To:Subject:Date:Message-ID: User-Agent:MIME-Version:Content-Transfer-Encoding: Content-Type; b=Y+ZnYAOEEKOjpbD4ycr4l9KzK0WvqpAaQFgyqzAleAmJFRN6yK+bD7aQ 0GB04jH0hecMo0AP6pHuxv4/XvFA1YWlRBTiQX5KYxWevRHoy37J4+EeY g4EFmtdC3VC0XaBJVmwOl9Le1oK06lX/uzcLFLTSv04+3nGMAPjXAmk2z no8nBEHVjojgJjyovkMmTxZcwYt34Q+0Xm4pr3V1bHdpIYLj3nTBM66SH bMt5KoeYIKeW1RzTEri/+bJJMd9L7;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

Hi,

a small cleanup of vpmu structures:

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

Dietmar.


Signed-off-by: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>


# HG changeset patch
# Parent a7bacdc5449a2f7bb9c35b2a1334b463fe9f29a9

diff -r a7bacdc5449a xen/arch/x86/hvm/vmx/vpmu_core2.c
--- a/xen/arch/x86/hvm/vmx/vpmu_core2.c Mon Feb 27 17:05:18 2012 +0000
+++ b/xen/arch/x86/hvm/vmx/vpmu_core2.c Wed Feb 29 10:42:56 2012 +0100
@@ -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
diff -r a7bacdc5449a xen/include/asm-x86/hvm/vpmu.h
--- a/xen/include/asm-x86/hvm/vpmu.h    Mon Feb 27 17:05:18 2012 +0000
+++ b/xen/include/asm-x86/hvm/vpmu.h    Wed Feb 29 10:42:56 2012 +0100
@@ -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 {

-- 
Company details: http://ts.fujitsu.com/imprint.html

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.