summaryrefslogtreecommitdiffstats
path: root/nixos/lib/qemu-flags.nix
AgeCommit message (Collapse)Author
2021-03-05nixos/qemu-flags: add ppc64Ryan Burns
* PPC uses ttyAMA0 as its serial device, similar to ARM. * PowerNV is a typical platform for testing and distro development
2020-08-21runInLinuxVM, test-driver: use -cpu max instead of -cpu hostMatthew Bauer
This appears to avoid requiring KVM when it’s not available. This is what I originally though -cpu host did. Unfortunately not much documentation available from the QEMU side on this, but this appears to square with help: $ qemu-system-x86 -cpu help ... x86 host KVM processor with all supported host features x86 max Enables all features supported by the accelerator in the current host ... Whether we actually want to support this not clear, since this only happens when your CPU doesn’t have full KVM support. Some Nix builders are lying about kvm support though. Things aren’t too slow without it though. Fixes https://github.com/NixOS/nixpkgs/issues/85394 Alternative to https://github.com/NixOS/nixpkgs/pull/83920
2020-07-20lib: toHex -> toHexString & toBase -> toBaseDigitsBas van Dijk
This makes the type of these functions more apparent from the name.
2020-07-20nixos/tests/networking.nix: test the services.dhcpd4.machines optionBas van Dijk
This modifies the `router` to not give out a range of IP addresses but only give out a fixed address based on the MAC address using the `services.dhcpd4.machines` option. To get access to the MAC address the `qemuNicMac` function is defined and exported from `qemu-flags.nix`.
2020-07-20nixos/tests: support up to 255 nodes in NixOS testsBas van Dijk
2020-01-15runInLinuxVM, test-driver: pass host's cpu type to guest vmvolth
'kvm64' is the most generic CPU, which does not support SSE4.2, AVX and other ISA extentions.
2019-08-26treewide: remove redundant quotesvolth
2018-08-30reewide: Purge all uses `stdenv.system` and top-level `system`John Ericson
It is deprecated and will be removed after 18.09.
2018-08-20qemu: 2.12.1 -> 3.0.0volth
2018-05-31qemu-flags: default to qemu-kvmMatthew Bauer
this is the "generic" version & should work everywhere. also add darwin case
2018-04-25treewide: isArm -> isAarch32John Ericson
Following legacy packing conventions, `isArm` was defined just for 32-bit ARM instruction set. This is confusing to non packagers though, because Aarch64 is an ARM instruction set. The official ARM overview for ARMv8[1] is surprisingly not confusing, given the overall state of affairs for ARM naming conventions, and offers us a solution. It divides the nomenclature into three levels: ``` ISA: ARMv8 {-A, -R, -M} / \ Mode: Aarch32 Aarch64 | / \ Encoding: A64 A32 T32 ``` At the top is the overall v8 instruction set archicture. Second are the two modes, defined by bitwidth but differing in other semantics too, and buttom are the encodings, (hopefully?) isomorphic if they encode the same mode. The 32 bit encodings are mostly backwards compatible with previous non-Thumb and Thumb encodings, and if so we can pun the mode names to instead mean "sets of compatable or isomorphic encodings", and then voilà we have nice names for 32-bit and 64-bit arm instruction sets which do not use the word ARM so as to not confused either laymen or experienced ARM packages. [1]: https://developer.arm.com/products/architecture/a-profile
2018-01-30runInLinuxVM: Use QEMU command line that works on other architecturesTuomas Tynkkynen
... by moving the existing definition to qemu-flags.nix and reusing that.
2018-01-30nixos/qemu: Deduplicate QEMU serialDevice into qemu-flags.nixTuomas Tynkkynen
2018-01-30nixos/qemu-flags: Take a 'pkgs' parameterTuomas Tynkkynen
I'm gonna use it in the next commit.
2013-10-10Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra