diff options
author | volth <volth@volth.com> | 2019-04-18 19:35:51 +0000 |
---|---|---|
committer | volth <volth@volth.com> | 2020-01-15 23:35:00 +0000 |
commit | 2bd296a7e9551fcc74330460d6bf47810a8f9555 (patch) | |
tree | cb6c0bdddbda63095eab08b995dec7731a47d186 /nixos/tests | |
parent | a991de49f2aa3ab8716c73f6bfba722df23a3b50 (diff) | |
download | nixlib-2bd296a7e9551fcc74330460d6bf47810a8f9555.tar nixlib-2bd296a7e9551fcc74330460d6bf47810a8f9555.tar.gz nixlib-2bd296a7e9551fcc74330460d6bf47810a8f9555.tar.bz2 nixlib-2bd296a7e9551fcc74330460d6bf47810a8f9555.tar.lz nixlib-2bd296a7e9551fcc74330460d6bf47810a8f9555.tar.xz nixlib-2bd296a7e9551fcc74330460d6bf47810a8f9555.tar.zst nixlib-2bd296a7e9551fcc74330460d6bf47810a8f9555.zip |
runInLinuxVM, test-driver: pass host's cpu type to guest vm
'kvm64' is the most generic CPU, which does not support SSE4.2, AVX and other ISA extentions.
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/installer.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/installer.nix b/nixos/tests/installer.nix index eb1f4f192dd1..024445b01b6c 100644 --- a/nixos/tests/installer.nix +++ b/nixos/tests/installer.nix @@ -74,7 +74,7 @@ let # FIXME don't duplicate the -enable-kvm etc. flags here yet again! qemuFlags = (if system == "x86_64-linux" then "-m 768 " else "-m 512 ") + - (optionalString (system == "x86_64-linux") "-cpu kvm64 ") + + (optionalString (system == "x86_64-linux") "-cpu host ") + (optionalString (system == "aarch64-linux") "-enable-kvm -machine virt,gic-version=host -cpu host "); hdFlags = ''hda => "vm-state-machine/machine.qcow2", hdaInterface => "${iface}", '' |