> -----Original Message----- > From: Wei Liu <[email protected]> On Behalf Of Wei Liu > Sent: 18 December 2019 14:42 > To: Xen Development List <[email protected]> > Cc: Michael Kelley <[email protected]>; Durrant, Paul > <[email protected]>; Wei Liu <[email protected]>; Jan Beulich > <[email protected]>; Andrew Cooper <[email protected]>; Wei Liu > <[email protected]>; Roger Pau Monné <[email protected]> > Subject: [PATCH v2 1/6] x86: import hyperv-tlfs.h from Linux > > Take a pristine copy from Linux commit > b2d8b167e15bb5ec2691d1119c025630a247f649. > > Do the following to fix it up for Xen: > > 1. include xen/types.h and xen/bitops.h > 2. fix up invocations of BIT macro > > Signed-off-by: Wei Liu <[email protected]> > Acked-by: Jan Beulich <[email protected]> [snip] > +/* > + * The guest OS needs to register the guest ID with the hypervisor. > + * The guest ID is a 64 bit entity and the structure of this ID is > + * specified in the Hyper-V specification: > + * > + * msdn.microsoft.com/en- > us/library/windows/hardware/ff542653%28v=vs.85%29.aspx > + * > + * While the current guideline does not specify how Linux guest ID(s) > + * need to be generated, our plan is to publish the guidelines for > + * Linux and other guest operating systems that currently are hosted > + * on Hyper-V. The implementation here conforms to this yet > + * unpublished guidelines. > + * > + * > + * Bit(s) > + * 63 - Indicates if the OS is Open Source or not; 1 is Open Source > + * 62:56 - Os Type; Linux is 0x100 > + * 55:48 - Distro specific identification > + * 47:16 - Linux kernel version number > + * 15:0 - Distro specific identification > + * > + *
It might be useful to pull the declaration of union viridian_guest_os_id_msr in here since the comment is explaining the format. Paul _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
