All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Radim Krčmář" <rkrcmar@redhat.com>
To: Ladi Prosek <lprosek@redhat.com>
Cc: kvm@vger.kernel.org, joro@8bytes.org
Subject: Re: [PATCH] KVM: x86: Add MSR_AMD64_DC_CFG to the list of ignored MSRs
Date: Wed, 12 Apr 2017 21:16:40 +0200	[thread overview]
Message-ID: <20170412191639.GF20145@potion> (raw)
In-Reply-To: <20170406132220.17178-1-lprosek@redhat.com>

2017-04-06 15:22+0200, Ladi Prosek:
> Hyper-V writes 0x800000000000 to MSR_AMD64_DC_CFG when running on AMD CPUs
> as recommended in erratum 383, analogous to our svm_init_erratum_383.
> 
> By ignoring the MSR, this patch enables running Hyper-V in L1 on AMD.
> 
> Signed-off-by: Ladi Prosek <lprosek@redhat.com>
> ---

Dirty, but I don't see a reason to overengineer this ...

Applied to kvm/queue, thanks.

> diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
> @@ -2417,6 +2418,7 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
>  	case MSR_FAM10H_MMIO_CONF_BASE:
>  	case MSR_AMD64_BU_CFG2:
>  	case MSR_IA32_PERF_CTL:
> +	case MSR_AMD64_DC_CFG:

This will change L1 KVM's behavior to set erratum_383_found, but L0 will
kill it anyway after hitting the errata in L2.

      parent reply	other threads:[~2017-04-12 19:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-06 13:22 [PATCH] KVM: x86: Add MSR_AMD64_DC_CFG to the list of ignored MSRs Ladi Prosek
2017-04-06 14:11 ` David Hildenbrand
2017-04-12 19:16 ` Radim Krčmář [this message]

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=20170412191639.GF20145@potion \
    --to=rkrcmar@redhat.com \
    --cc=joro@8bytes.org \
    --cc=kvm@vger.kernel.org \
    --cc=lprosek@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.