[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH RFC v1 40/74] xen/x86: report domain id on cpuid
From: Roger Pau Monne <roger.pau@xxxxxxxxxx> Use the ebx register of the hypervisor leaf 1. The eax register on this leaf is already used to report the Xen major and minor versions. Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> --- xen/arch/x86/traps.c | 1 + xen/include/public/arch-x86/cpuid.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index db16a44417..42c50b1cd4 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -853,6 +853,7 @@ void cpuid_hypervisor_leaves(const struct vcpu *v, uint32_t leaf, case 1: res->a = (xen_major_version() << 16) | xen_minor_version(); + res->b = d->domain_id; break; case 2: diff --git a/xen/include/public/arch-x86/cpuid.h b/xen/include/public/arch-x86/cpuid.h index eb76875d0e..a17c8682a0 100644 --- a/xen/include/public/arch-x86/cpuid.h +++ b/xen/include/public/arch-x86/cpuid.h @@ -57,7 +57,8 @@ * Leaf 2 (0x40000x01) * EAX[31:16]: Xen major version. * EAX[15: 0]: Xen minor version. - * EBX-EDX: Reserved (currently all zeroes). + * EBX: Domain id. + * ECX-EDX: Reserved (currently all zeroes). */ /* -- 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |