On 06/11/18 16:31, Roger Pau Monné wrote: > On Mon, Nov 05, 2018 at 11:21:03AM +0000, Andrew Cooper wrote: >> This will shortly be wanted by the userspace emulator harnesses as well. >> >> Consolidate the cpuid{,_count}_leaf() helpers beside the structure >> definition, >> rather than having them scattered throughout Xen. >> >> Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com> > Reviewed-by: Roger Pau Monné <roger....@citrix.com> > > I'm slightly worried about the _native prefix in the function name, if > this is run on Dom0 userspace the _native part of this is dubious, > since the policy returned is going to be provided by Xen, and thus > might not match the host one. I don't have a better name > recommendation, so I'm fine with this.
Well - it is a native instruction, whether or not there is a outer hypervisor or masking/faulting configuration playing with the values seen. I'll see about mentioning this in the function documentation. ~Andrew _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel