-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passthrough Jetson Orin WiFi card and Intel NUC Wifi Card to NetVM #107
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,16 @@ | |
|
||
# For lsusb: | ||
usbutils | ||
|
||
# Useful in NetVM | ||
ethtool | ||
|
||
# Basic monitors | ||
htop | ||
iftop | ||
iotop | ||
|
||
traceroute | ||
dig | ||
]; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
diff --git a/nvidia/platform/t23x/concord/kernel-dts/Makefile b/nvidia/platform/t23x/concord/kernel-dts/Makefile | ||
index 1be5b3f76bf8..01d3dea90cb5 100644 | ||
--- a/nvidia/platform/t23x/concord/kernel-dts/Makefile | ||
+++ b/nvidia/platform/t23x/concord/kernel-dts/Makefile | ||
@@ -23,6 +23,9 @@ dtb-$(BUILD_ENABLE) += tegra234-p3701-0000-as-p3767-0001-p3737-0000.dtb | ||
dtb-$(BUILD_ENABLE) += tegra234-p3701-0000-as-pxxxx-p3737-0000.dtb | ||
dtb-$(BUILD_ENABLE) += tegra234-p3701-0000-p3737-0000-kexec.dtb | ||
dtb-$(BUILD_ENABLE) += tegra234-p3701-0004-p3737-0000.dtb | ||
+ | ||
+dtb-$(BUILD_ENABLE) += tegra234-p3701-host-passthrough.dtb | ||
+ | ||
dtbo-$(BUILD_ENABLE) += tegra234-p3737-a03-overlay.dtbo | ||
dtbo-$(BUILD_ENABLE) += tegra234-p3737-a04-overlay.dtbo | ||
dtbo-$(BUILD_ENABLE) += tegra234-p3737-overlay-pcie.dtbo | ||
diff --git a/nvidia/platform/t23x/concord/kernel-dts/tegra234-p3701-host-passthrough.dts b/nvidia/platform/t23x/concord/kernel-dts/tegra234-p3701-host-passthrough.dts | ||
new file mode 100644 | ||
index 000000000000..e4656287da82 | ||
--- /dev/null | ||
+++ b/nvidia/platform/t23x/concord/kernel-dts/tegra234-p3701-host-passthrough.dts | ||
@@ -0,0 +1,12 @@ | ||
+/dts-v1/; | ||
+#include "tegra234-p3701-0000-p3737-0000.dts" | ||
+ | ||
+/* | ||
+ * Update the pci-e wifi to be accessible from vfio/guest | ||
+ */ | ||
+&pcie_c1_rp { | ||
+ interconnect-names = "dma-mem", "write"; | ||
+ /delete-property/ iommus; | ||
+ /delete-property/ msi-parent; | ||
+ /delete-property/ msi-map; | ||
+}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,16 +27,48 @@ | |
../modules/graphics/weston.nix | ||
|
||
formatModule | ||
|
||
{ | ||
boot.kernelParams = [ | ||
"intel_iommu=on,igx_off,sm_on" | ||
"iommu=pt" | ||
|
||
# Passthrough Intel WiFi card | ||
"vfio-pci.ids=8086:a0f0" | ||
]; | ||
} | ||
] | ||
++ extraModules; | ||
}; | ||
netvm = "netvm-${name}-${variant}"; | ||
in { | ||
inherit hostConfiguration netvm; | ||
name = "${name}-${variant}"; | ||
netvmConfiguration = import ../microvmConfigurations/netvm { | ||
inherit nixpkgs microvm system; | ||
}; | ||
netvmConfiguration = | ||
(import ../microvmConfigurations/netvm { | ||
inherit nixpkgs microvm system; | ||
}) | ||
.extendModules { | ||
modules = [ | ||
{ | ||
microvm.devices = [ | ||
{ | ||
bus = "pci"; | ||
path = "0000:00:14.3"; | ||
} | ||
]; | ||
|
||
# For WLAN firmwares | ||
hardware.enableRedistributableFirmware = true; | ||
|
||
networking.wireless = { | ||
enable = true; | ||
|
||
# networks."SSID_OF_NETWORK".psk = "WPA_PASSWORD"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SSID / password we could also refactor like authentication.nix - would also support .gitignore for developer local secrets until we develop proper way to support these. |
||
}; | ||
} | ||
]; | ||
}; | ||
package = hostConfiguration.config.system.build.${hostConfiguration.config.formatAttr}; | ||
}; | ||
debugModules = [../modules/development/intel-nuc-getty.nix]; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VM specific development modules I’d rather break to VM specific based on categories eventually. It would reduce VM/host size in development mode (think tools useful in GUIVM).