]> git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/dpdk/lib/librte_eal/common/include/rte_hypervisor.h
bump version to 15.2.11-pve1
[ceph.git] / ceph / src / spdk / dpdk / lib / librte_eal / common / include / rte_hypervisor.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2017 Mellanox Technologies, Ltd
3 */
4
5 #ifndef RTE_HYPERVISOR_H
6 #define RTE_HYPERVISOR_H
7
8 /**
9 * @file
10 * Hypervisor awareness.
11 */
12
13 enum rte_hypervisor {
14 RTE_HYPERVISOR_NONE,
15 RTE_HYPERVISOR_KVM,
16 RTE_HYPERVISOR_HYPERV,
17 RTE_HYPERVISOR_VMWARE,
18 RTE_HYPERVISOR_UNKNOWN
19 };
20
21 /**
22 * Get the id of hypervisor it is running on.
23 */
24 enum rte_hypervisor
25 rte_hypervisor_get(void);
26
27 /**
28 * Get the name of a given hypervisor id.
29 */
30 const char *
31 rte_hypervisor_get_name(enum rte_hypervisor id);
32
33 #endif /* RTE_HYPERVISOR_H */