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:
parent
82b24c3c55
commit
1b853d405c
@ -34,7 +34,7 @@ in
|
|||||||
config = mkMerge [
|
config = mkMerge [
|
||||||
{
|
{
|
||||||
boot = {
|
boot = {
|
||||||
kernelParams = [ "console=ttyS0,115200n8" ];
|
kernelParams = [ "console=ttyS0,115200n8" "intel_iommu=on" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
|
@ -13,7 +13,7 @@ in
|
|||||||
my = {
|
my = {
|
||||||
spdk = {
|
spdk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraArgs = "--mem-channels 2 --cpumask 0xffff";
|
extraArgs = "--mem-channels 2 --cpumask 0x3";
|
||||||
debugCommands = ''
|
debugCommands = ''
|
||||||
spdk-rpc bdev_nvme_attach_controller -t pcie -a 02:00.0 -b NVMe0
|
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
|
spdk-rpc bdev_nvme_attach_controller -t pcie -a 03:00.0 -b NVMe1
|
||||||
|
@ -113,6 +113,10 @@
|
|||||||
hostBDF = "43:00.0";
|
hostBDF = "43:00.0";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
qemuFlags = [
|
||||||
|
"machine kernel-irqchip=split"
|
||||||
|
"device intel-iommu,caching-mode=on,device-iotlb=on,intremap=on"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
river = {
|
river = {
|
||||||
|
Loading…
Reference in New Issue
Block a user