[dpdk-dev] [PATCH v2] eal/x86: get hypervisor name

Thomas Monjalon thomas at monjalon.net
Wed Jan 3 09:11:02 CET 2018


02/01/2018 17:34, Stephen Hemminger:
> On Sat, 30 Dec 2017 23:47:23 +0100
> Thomas Monjalon <thomas at monjalon.net> wrote:
> 
> > The CPUID instruction is catched by hypervisor which can return
> > a flag indicating one is running, and its name.
> > 
> > Suggested-by: Stephen Hemminger <sthemmin at microsoft.com>
> > Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> > ---
> > v2 changes:
> > 	- remove C99 style declaration
> > 	- move code in rte_hypervisor.* files
> > 	- add a function to get the name string
> 
> Looks good to me.
> What about Xen?

Xen is not supported in DPDK currently.
So it will be handled as "unknown".
Xen awareness can be added later with some driver support.


More information about the dev mailing list