From: Chris Lalancette <clalance@redhat.com>
To: kvm@vger.kernel.org
Subject: [PATCH][REPOST]: Fake emulate Intel perfctr MSRs
Date: Fri, 20 Jun 2008 09:51:30 +0200 [thread overview]
Message-ID: <485B6182.8060508@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 221 bytes --]
Respin of my previous patch to fake emulate the Intel perfctr MSRs. As Sheng
Yang pointed out, I didn't need an additional include, and I could use other
#define's.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
[-- Attachment #2: kvm-intel-wrmsr-emulate-2.patch --]
[-- Type: text/x-patch, Size: 709 bytes --]
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 6e4278d..f2feacf 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -917,6 +917,18 @@ static int vmx_set_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 data)
case MSR_IA32_TIME_STAMP_COUNTER:
guest_write_tsc(data);
break;
+ case MSR_P6_PERFCTR0:
+ case MSR_P6_PERFCTR1:
+ case MSR_P6_EVNTSEL0:
+ case MSR_P6_EVNTSEL1:
+ /*
+ * Just discard all writes to the performance counters; this
+ * should keep both older linux and windows 64-bit guests
+ * happy
+ */
+ pr_unimpl(vcpu, "unimplemented perfctr wrmsr: 0x%x data 0x%llx\n", msr_index, data);
+
+ break;
default:
msr = find_msr_entry(vmx, msr_index);
if (msr) {
next reply other threads:[~2008-06-20 7:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-20 7:51 Chris Lalancette [this message]
2008-06-29 9:24 ` [PATCH][REPOST]: Fake emulate Intel perfctr MSRs Avi Kivity
-- strict thread matches above, loose matches on Subject: below --
2008-06-19 7:14 [PATCH] [REPOST]: " Chris Lalancette
2008-06-19 11:37 ` Yang, Sheng
2008-06-20 7:39 ` Chris Lalancette
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=485B6182.8060508@redhat.com \
--to=clalance@redhat.com \
--cc=kvm@vger.kernel.org \
/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