[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v2] x86/hvm: Extend HVM cpuid leaf with vcpu id

On Thu, Nov 06, 2014 at 03:26:24PM +0000, Paul Durrant wrote:
> To perform certain hypercalls HVM guests need to use Xen's idea of
> vcpu id, which may well not match the guest OS idea of CPU id.
> This patch adds vcpu id to the HVM cpuid leaf allowing the guest
> to build a mapping.

One more tangent on this, since this is partially considered in a
Windows context. Why not use the existing Viridian virtual processor
index MSR for this, since that would work on Xen today.

> #define VIRIDIAN_MSR_VP_INDEX                   0x40000002
> ...
>        perfc_incr(mshv_rdmsr_vp_index);
>        *val = v->vcpu_id;
>        break;


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.