xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@eu.citrix.com>
To: xen-devel@lists.xensource.com
Cc: george.dunlap@eu.citrix.com
Subject: [PATCH 1 of 2] trace: Reinstate tracing for emualted MSR reads and writes
Date: Thu, 8 Jul 2010 17:33:28 +0100	[thread overview]
Message-ID: <be013c2c88d7dfac28c0.1278606808@gdunlap-desktop> (raw)
In-Reply-To: <patchbomb.1278606807@gdunlap-desktop>

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>

diff -r 9d965ac1b0db -r be013c2c88d7 xen/arch/x86/hvm/hvm.c
--- a/xen/arch/x86/hvm/hvm.c	Mon Jul 05 08:40:26 2010 +0100
+++ b/xen/arch/x86/hvm/hvm.c	Thu Jul 08 17:32:51 2010 +0100
@@ -2103,6 +2103,8 @@
         }
     }
 
+    HVMTRACE_3D(MSR_READ, (uint32_t)*msr_content, (uint32_t)(*msr_content >> 32), msr);
+
     return X86EMUL_OKAY;
 
 gp_fault:
@@ -2117,6 +2119,8 @@
     uint32_t cpuid[4];
     int ret;
 
+    HVMTRACE_3D(MSR_WRITE, (uint32_t)msr_content, (uint32_t)(msr_content >> 32), msr);
+
     hvm_cpuid(1, &cpuid[0], &cpuid[1], &cpuid[2], &cpuid[3]);
     mtrr = !!(cpuid[3] & bitmaskof(X86_FEATURE_MTRR));

  reply	other threads:[~2010-07-08 16:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-08 16:33 [PATCH 0 of 2] Minor tracing updates George Dunlap
2010-07-08 16:33 ` George Dunlap [this message]
2010-07-08 16:33 ` [PATCH 2 of 2] trace: Trace emulated RDTSC values George Dunlap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=be013c2c88d7dfac28c0.1278606808@gdunlap-desktop \
    --to=george.dunlap@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).