summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index e77a57479..770cbbdde 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -1481,6 +1481,16 @@ sub is_hyperv() {
virt_technology() eq 'microsoft';
}
+=item is_qemu()
+
+Are we running under Qemu hypervisor?
+
+=cut
+
+sub is_qemu() {
+ virt_technology() eq 'microsoft';
+}
+
=item is_virtualbox()
Are we running under VirtualBox hypervisor?
@@ -1560,6 +1570,7 @@ sub matching_types() {
mips_st_ls2f => is_mips_st_ls2f(),
numpa => hasNumpad(),
touchpad => hasTouchpad(),
+ qemu => is_qemu(),
virtualbox => is_virtualbox(),
vmware => is_vmware(),
wireless => to_bool(get_wireless_interface() || probe_category('network/wireless')),