numam-dpdk/lib/librte_eal/include/rte_hypervisor.h
Thomas Monjalon 9c1e0dc39a eal: move common header files
The EAL API (with doxygen documentation) is moved from
common/include/ to include/, which makes more clear that
it is the global API for all environments and architectures.

Note that the arch-specific and OS-specific include files are not
in this global include directory, but include/generic/ should
cover the doxygen documentation for them.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: David Marchand <david.marchand@redhat.com>
2020-03-31 13:08:55 +02:00

34 lines
570 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2017 Mellanox Technologies, Ltd
*/
#ifndef RTE_HYPERVISOR_H
#define RTE_HYPERVISOR_H
/**
* @file
* Hypervisor awareness.
*/
enum rte_hypervisor {
RTE_HYPERVISOR_NONE,
RTE_HYPERVISOR_KVM,
RTE_HYPERVISOR_HYPERV,
RTE_HYPERVISOR_VMWARE,
RTE_HYPERVISOR_UNKNOWN
};
/**
* Get the id of hypervisor it is running on.
*/
enum rte_hypervisor
rte_hypervisor_get(void);
/**
* Get the name of a given hypervisor id.
*/
const char *
rte_hypervisor_get_name(enum rte_hypervisor id);
#endif /* RTE_HYPERVISOR_H */