git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/qemu-vm: Pass gic-version=host for AArch64

This is required on the ThunderX CPUs on the Packet.net Type-2A machines that have a GICv3. For some reason the default is to create a GICv2 independent of the host hardware...

commitb2e315f97f645fc70627febd43ddd62dd4de1412 authorTuomas Tynkkynen <tuomas.tynkkynen@iki.fi> dateWed 6 Dec 2017, 17:27 (9 years ago) parent019131c
1 file changed+1−1
nixos/modules/virtualisation/qemu-vm.nix+1−1
nixos/modules/virtualisation/qemu-vm.nix+1−1
@@ -18,7 +18,7 @@ let
1818 "i686-linux" = "${qemu}/bin/qemu-kvm";
1919 "x86_64-linux" = "${qemu}/bin/qemu-kvm -cpu kvm64";
2020 "armv7l-linux" = "${qemu}/bin/qemu-system-arm -enable-kvm -machine virt -cpu host";
21− "aarch64-linux" = "${qemu}/bin/qemu-system-aarch64 -enable-kvm -machine virt -cpu host";
21+ "aarch64-linux" = "${qemu}/bin/qemu-system-aarch64 -enable-kvm -machine virt,gic-version=host -cpu host";
2222 }.${pkgs.stdenv.system};
2323
2424 # FIXME: figure out a common place for this instead of copy pasting