Skip to content

feat: enable VFIO also on amd64 - #854

Merged
talos-bot merged 1 commit into
siderolabs:mainfrom
yoctozepto:amd64-add-vfio
Dec 18, 2023
Merged

talos-bot merged 1 commit into
siderolabs:mainfrom
yoctozepto:amd64-add-vfio

Conversation

@yoctozepto

Copy link
Copy Markdown
Contributor

On arm64 platform, the relevant VFIO configs are enabled already. This patch synchronizes both.

@yoctozepto

yoctozepto commented Dec 18, 2023

Copy link
Copy Markdown
Contributor Author

I had a thought - would it more preferable modularised instead of builtin?

Not that VFIO does anything by default in either case (it must be let to control a device, otherwise it just sits there).

As @smira has pointed out on Slack, VFIO actually does get picked up for certain virtual functions (see https://cateee.net/lkddb/web-lkddb/VFIO.html). On the other hand, it is often used for other devices where it needs to be manually configured to pick them up.

@smira

smira commented Dec 18, 2023

Copy link
Copy Markdown
Member
263a264,270
> ./lib/modules/6.1.67-talos/kernel/drivers/vfio
> ./lib/modules/6.1.67-talos/kernel/drivers/vfio/pci
> ./lib/modules/6.1.67-talos/kernel/drivers/vfio/pci/vfio-pci-core.ko
> ./lib/modules/6.1.67-talos/kernel/drivers/vfio/pci/vfio-pci.ko
> ./lib/modules/6.1.67-talos/kernel/drivers/vfio/vfio_iommu_type1.ko
> ./lib/modules/6.1.67-talos/kernel/drivers/vfio/vfio.ko
> ./lib/modules/6.1.67-talos/kernel/drivers/vfio/vfio_virqfd.ko
301c308
< 109 directories, 190 files
---
> 111 directories, 195 files

Size:

            │   │   ├── [4.0K]  vfio
            │   │   │   ├── [4.0K]  pci
            │   │   │   │   ├── [155K]  vfio-pci-core.ko
            │   │   │   │   └── [ 23K]  vfio-pci.ko
            │   │   │   ├── [ 83K]  vfio_iommu_type1.ko
            │   │   │   ├── [ 90K]  vfio.ko
            │   │   │   └── [ 15K]  vfio_virqfd.ko

On arm64 platform, the relevant VFIO configs are enabled already.
This patch synchronizes both.

Signed-off-by: Radosław Piliszek <radoslaw.piliszek@gmail.com>
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
@yoctozepto

Copy link
Copy Markdown
Contributor Author

I approve from my side. This is in vein with the Talos approach as I see it. Thanks.

@smira smira left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reworked to use modules on both architectures

@smira

smira commented Dec 18, 2023

Copy link
Copy Markdown
Member

/m

@smira

smira commented Dec 18, 2023

Copy link
Copy Markdown
Member

/m

@talos-bot
talos-bot merged commit 6af1691 into siderolabs:main Dec 18, 2023
smira added a commit to smira/talos that referenced this pull request Dec 18, 2023
See:

* siderolabs/pkgs#854
* siderolabs/pkgs#855

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/talos that referenced this pull request Dec 19, 2023
See:

* siderolabs/pkgs#854
* siderolabs/pkgs#855

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants