Re: [PATCH 1/2] kvm/x86: Move MSR_K7_HWCR to svm.c

From: Borislav Petkov
Date: Mon Mar 25 2019 - 15:38:48 EST


On Mon, Mar 25, 2019 at 12:21:11PM -0700, Sean Christopherson wrote:
> Generally speaking, the goal is to support cross-vendor VMs without having
> to modify the guest kernel, i.e. exact emulation is out of scope. This
> means "emulating" cross-vendor MSRs that the guest expects to exist to the
> point where the guest won't explode, e.g. in the case of MSR_K7_HWCR, Linux
> expects the MSR to exist on all AMD platforms and AFAICT will die during
> boot if it doesn't.
>
> The rule of thumb for "what MSRs can a guest reasonably expect to exist"
> is fluid.

Ok, I'll keep it in the common MSR accessors in the next version.

Thx for confirming what I was suspecting.

--
Regards/Gruss,
Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.