From: Avi Kivity <avi@redhat.com>
To: Jes.Sorensen@redhat.com
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH] Emulate MSR_EBC_FREQUENCY_ID
Date: Thu, 09 Sep 2010 11:12:42 +0300 [thread overview]
Message-ID: <4C8896FA.1040103@redhat.com> (raw)
In-Reply-To: <1284017626-30542-1-git-send-email-Jes.Sorensen@redhat.com>
On 09/09/2010 10:33 AM, Jes.Sorensen@redhat.com wrote:
> From: Jes Sorensen<Jes.Sorensen@redhat.com>
>
> Some operating systems store data about the host processor at the
> time of installation, and when booted on a more uptodate cpu tries
> to read MSR_EBC_FREQUENCY_ID. This has been found with XP.
>
>
> index f47db25..78fa8a0 100644
> --- a/arch/x86/kvm/x86.c
> +++ b/arch/x86/kvm/x86.c
> @@ -1641,6 +1641,14 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata)
> case MSR_K8_INT_PENDING_MSG:
> case MSR_AMD64_NB_CFG:
> case MSR_FAM10H_MMIO_CONF_BASE:
> + /*
> + * MSR_EBC_FREQUENCY_ID
> + * Conservative value valid for even the basic CPU models.
> + * Models 0,1: 000 in bits 23:21 indicating a bus speed of
> + * 100MHz, model 2 000 in bits 18:16 indicating 100MHz,
> + * and 266MHz for model 3, or 4.
> + */
> + case MSR_EBC_FREQUENCY_ID:
> data = 0;
> break;
> case MSR_MTRRcap:
From the spec:
> 31:24 Core Clock Frequency to System
> Bus Frequency Ratio. (R)
> The processor core clock
> frequency to system bus
> frequency ratio observed at the
> de-assertion of the reset pin.
A frequency ratio of 0 might be unexpected by some guests.
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
next prev parent reply other threads:[~2010-09-09 8:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-09 7:33 [PATCH] Emulate MSR_EBC_FREQUENCY_ID Jes.Sorensen
2010-09-09 8:12 ` Avi Kivity [this message]
2010-09-09 8:29 ` Jes Sorensen
2010-09-09 8:55 ` Jes Sorensen
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=4C8896FA.1040103@redhat.com \
--to=avi@redhat.com \
--cc=Jes.Sorensen@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