Skip to content
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

Add kernel config for NVIDIA DPU/ConnectX adapter #9620

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

l8huang
Copy link

@l8huang l8huang commented May 10, 2024

With Nvidia DPU or ConnectX network adapter, VF can do VFIO passthrough to guest VM in guest-kernel mode. In the guest kernel, the adapter's driver is required to claim the VFIO device and create network interface.

@katacontainersbot katacontainersbot added the size/small Small and simple task label May 10, 2024
@l8huang
Copy link
Author

l8huang commented May 10, 2024

FYI: in the guest VM:

root@localhost:/proc# lspci  -tv
-[0000:00]-+-00.0  Device 8086:29c0
           +-01.0  Device 1af4:1003
           +-02.0-[01]--
           +-03.0  Device 1af4:1004
           +-04.0  Device 1af4:1005
           +-05.0-[02]----00.0  Device 15b3:101e
           +-06.0-[03]--
           +-07.0  Device 1af4:1053
           +-08.0  Device 1af4:1009
           +-1f.0  Device 8086:2918
           +-1f.2  Device 8086:2922
           \-1f.3  Device 8086:2930

root@localhost:/proc# lspci -nn -k -s 0000:02:00.0
02:00.0 Class [0200]: Device [15b3:101e] (rev 01)
	Subsystem: Device [15b3:0063]
	Kernel driver in use: mlx5_core

root@localhost:/proc# ethtool -i eth0 
driver: mlx5_core
version: 6.1.62-nvidia-gpu
firmware-version: 24.35.3502 (MT_0000000542)
expansion-rom-version: 
bus-info: 0000:02:00.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: yes

@zvonkok zvonkok changed the title Add kernel config for Nvidia DPU/ConnectX adapter Add kernel config for NVIDIA DPU/ConnectX adapter May 13, 2024
@l8huang
Copy link
Author

l8huang commented May 17, 2024

@zvonkok PR updated, PTAL, thanks

@zvonkok zvonkok added ok-to-test area/dpu All things related to Data Processing Units area/arm Issues specific to the ARM architecture labels May 22, 2024
@zvonkok
Copy link
Contributor

zvonkok commented May 22, 2024

@l8huang You need to bump tools/packaging/kernel/kata_config_version

@l8huang l8huang force-pushed the kernel branch 2 times, most recently from 95edfb3 to 71c5f45 Compare May 22, 2024 21:31
@l8huang
Copy link
Author

l8huang commented May 22, 2024

@l8huang You need to bump tools/packaging/kernel/kata_config_version

Thanks for the heads up, version updated.

With Nvidia DPU or ConnectX network adapter, VF can do VFIO passthrough
to guest VM in `guest-kernel` mode. In the guest kernel, the adapter's
driver is required to claim the VFIO device and create network interface.

Signed-off-by: Lei Huang <leih@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/arm Issues specific to the ARM architecture area/dpu All things related to Data Processing Units ok-to-test size/small Small and simple task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants