nixos/palace: Set up virtual IOMMU for cellar
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				CI / Check, build and cache Nix flake (push) Successful in 17m49s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	CI / Check, build and cache Nix flake (push) Successful in 17m49s
				
			This commit is contained in:
		@@ -34,7 +34,7 @@ in
 | 
			
		||||
        config = mkMerge [
 | 
			
		||||
          {
 | 
			
		||||
            boot = {
 | 
			
		||||
              kernelParams = [ "console=ttyS0,115200n8" ];
 | 
			
		||||
              kernelParams = [ "console=ttyS0,115200n8" "intel_iommu=on" ];
 | 
			
		||||
            };
 | 
			
		||||
 | 
			
		||||
            fileSystems = {
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@ in
 | 
			
		||||
    my = {
 | 
			
		||||
      spdk = {
 | 
			
		||||
        enable = true;
 | 
			
		||||
        extraArgs = "--mem-channels 2 --cpumask 0xffff";
 | 
			
		||||
        extraArgs = "--mem-channels 2 --cpumask 0x3";
 | 
			
		||||
        debugCommands = ''
 | 
			
		||||
          spdk-rpc bdev_nvme_attach_controller -t pcie -a 02:00.0 -b NVMe0
 | 
			
		||||
          spdk-rpc bdev_nvme_attach_controller -t pcie -a 03:00.0 -b NVMe1
 | 
			
		||||
 
 | 
			
		||||
@@ -113,6 +113,10 @@
 | 
			
		||||
                hostBDF = "43:00.0";
 | 
			
		||||
              };
 | 
			
		||||
            };
 | 
			
		||||
            qemuFlags = [
 | 
			
		||||
              "machine kernel-irqchip=split"
 | 
			
		||||
              "device intel-iommu,caching-mode=on,device-iotlb=on,intremap=on"
 | 
			
		||||
            ];
 | 
			
		||||
          };
 | 
			
		||||
 | 
			
		||||
          river = {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user