]> git.proxmox.com Git - ceph.git/blob - ceph/src/seastar/dpdk/lib/librte_eal/common/eal_common_hypervisor.c
import 15.2.0 Octopus source
[ceph.git] / ceph / src / seastar / dpdk / lib / librte_eal / common / eal_common_hypervisor.c
1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2017 Mellanox Technologies, Ltd
3 */
4
5 #include "rte_hypervisor.h"
6
7 const char *
8 rte_hypervisor_get_name(enum rte_hypervisor id)
9 {
10 switch (id) {
11 case RTE_HYPERVISOR_NONE:
12 return "none";
13 case RTE_HYPERVISOR_KVM:
14 return "KVM";
15 case RTE_HYPERVISOR_HYPERV:
16 return "Hyper-V";
17 case RTE_HYPERVISOR_VMWARE:
18 return "VMware";
19 default:
20 return "unknown";
21 }
22 }