On Thu, Jan 30, 2020 at 09:57:17AM +0000, Durrant, Paul wrote: > > -static const struct hypervisor_ops ops = { > > - .name = "Hyper-V", > > -}; > > +static uint64_t generate_guest_id(void) > > +{ > > + uint64_t id; > > + > > + id = (uint64_t)HV_XEN_VENDOR_ID << 48; > > + id |= (xen_major_version() << 16) | xen_minor_version(); > > + > > + return id; > > I think this should use the hv_guest_os_id union. You can then set the > values using the bit-fields and return the raw.
NP. Wei. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel