Searched refs:hvtype (Results 1 – 1 of 1) sorted by relevance
97 _cleanup_free_ char *hvtype = NULL; in detect_vm_device_tree() local100 r = read_one_line_file("/proc/device-tree/hypervisor/compatible", &hvtype); in detect_vm_device_tree()129 log_debug("Virtualization %s found in /proc/device-tree/hypervisor/compatible", hvtype); in detect_vm_device_tree()130 if (streq(hvtype, "linux,kvm")) in detect_vm_device_tree()132 else if (strstr(hvtype, "xen")) in detect_vm_device_tree()134 else if (strstr(hvtype, "vmware")) in detect_vm_device_tree()348 _cleanup_free_ char *hvtype = NULL; in detect_vm_hypervisor() local351 r = read_one_line_file("/sys/hypervisor/type", &hvtype); in detect_vm_hypervisor()357 log_debug("Virtualization %s found in /sys/hypervisor/type", hvtype); in detect_vm_hypervisor()359 if (streq(hvtype, "xen")) in detect_vm_hypervisor()