summary refs log blame commit diff
path: root/pkgs/os-specific/linux/spectrum/linux/vm.nix
blob: f456053dc99f2ed66c3ac63bc4d190c90aa3e45a (plain) (tree)
1
2
3
4
5
6
7
8
                              



                


                                                                 















                                                            
                        


                  
{ lib, linux, kernelPatches }:

with lib.kernel;

linux.override {
  # Fix hotplugging with cloud-hypervisor.
  kernelPatches = linux.kernelPatches ++ [ kernelPatches.evged ];

  structuredExtraConfig = {
    VIRTIO_PCI = yes;
    VIRTIO_BLK = yes;
    VIRTIO_WL = yes;
    VIRTIO_NET = yes;
    DEVTMPFS_MOUNT = yes;
    SQUASHFS = yes;

    # VOP is needed to work around a Kconfig bug:
    # https://lore.kernel.org/lkml/87wob4tf9b.fsf@alyssa.is/
    VOP = yes;
    VOP_BUS = yes;
    HW_RANDOM = yes;
    HW_RANDOM_VIRTIO = yes;

    NET_9P = yes;
    NET_9P_VIRTIO = yes;
    "9P_FS" = yes;
  };
}