Expand Minimize

HV_X64_MSR_GUEST_OS_ID_CONTENTS union

The HV_X64_MSR_GUEST_OS_ID_CONTENTS union describes the encoding of the MSR that is used to identify a guest operating system.

Syntax


typedef union _HV_X64_MSR_GUEST_OS_ID_CONTENTS {
  UINT64 AsUINT64;
  struct {
    UINT64 BuildNumber  :16;
    UINT64 ServiceVersion  :8;
    UINT64 MinorVersion  :8;
    UINT64 MajorVersion  :8;
    UINT64 OsId  :8;
    UINT64 VendorId  :16;
  };
} HV_X64_MSR_GUEST_OS_ID_CONTENTS, *PHV_X64_MSR_GUEST_OS_ID_CONTENTS;

Members

AsUINT64

A member in the union that can hold one 64-bit value that describes the encoding of the MSR that is used to identify a guest operating system.

BuildNumber

A UINT64 value that indicates the build number of the guest operating system. The build number is set in bits 0 through 15 of the 64-bit AsUINT64 member (0x000000000000FFFF).

ServiceVersion

A UINT64 value that indicates the service-pack number of the guest operating system. Setting the service-pack number in this member is equivalent to setting the service-pack number in bits 16 through 23 (0x0000000000FF0000) of the 64-bit AsUINT64 member.

MinorVersion

A UINT64 value that indicates the minor version number of the guest operating system. Setting the minor version number in this member is equivalent to setting the minor version number in bits 24 through 31 (0x00000000FF000000) of the 64-bit AsUINT64 member.

MajorVersion

A UINT64 value that indicates the major version number of the guest operating system. Setting the major version number in this member is equivalent to setting the major version number in bits 32 through 39 (0x000000FF00000000) of the 64-bit AsUINT64 member.

OsId

A UINT64 value that identifies the guest operating system. For Microsoft operating systems, this member is set to a value from the HV_GUEST_OS_MICROSOFT_IDS enumeration. Setting the guest identifier in this member is equivalent to setting the guest identifier in bits 40 through 47 (0x0000FF0000000000) of the 64-bit AsUINT64 member.

VendorId

A UINT64 value that identifies the vendor of the guest operating system. This member is set to a value from the HV_GUEST_OS_VENDOR enumeration. Setting the vendor identifier in this member is equivalent to setting the vendor identifier in bits 48 through 63 (0xFFFF000000000000) of the 64-bit AsUINT64 member.

Remarks

The MSR that is used to identify the guest operating system is defined as follows:


#define HV_X64_MSR_GUEST_OS_ID 0x40000000

For more information about how the guest operating system encodes this MSR, see Reporting the Identity of a Guest Operating System.

Requirements

Header

Hvgdk.h (include Hvgdk.h)

See also

HV_GUEST_OS_MICROSOFT_IDS
HV_GUEST_OS_VENDOR

 

 

Send comments about this topic to Microsoft

Build date: 11/16/2013

Show:
© 2014 Microsoft. All rights reserved.