nixos/palace: Set up virtual IOMMU for cellar
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 17m49s

This commit is contained in:
Jack O'Sullivan 2023-12-13 11:23:47 +00:00
parent 82b24c3c55
commit 1b853d405c
3 changed files with 6 additions and 2 deletions

View File

@ -34,7 +34,7 @@ in
config = mkMerge [
{
boot = {
kernelParams = [ "console=ttyS0,115200n8" ];
kernelParams = [ "console=ttyS0,115200n8" "intel_iommu=on" ];
};
fileSystems = {

View File

@ -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

View File

@ -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 = {