-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Like vfio-pci, there's also a base module here where vfio-amba depends on vfio-platform, when really it only needs vfio-platform-base. Create a sub-menu for platform drivers and a nested menu for reset drivers. Cleanup Makefile to make use of new CONFIG_VFIO_PLATFORM_BASE for building the shared modules and traversing reset modules. Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Link: https://lore.kernel.org/r/20230614193948.477036-3-alex.williamson@redhat.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
- Loading branch information
Alex Williamson
committed
Jun 16, 2023
1 parent
8cc7518
commit 8bee6f0
Showing
4 changed files
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,35 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
config VFIO_PLATFORM | ||
tristate "VFIO support for platform devices" | ||
menu "VFIO support for platform devices" | ||
depends on ARM || ARM64 || COMPILE_TEST | ||
|
||
config VFIO_PLATFORM_BASE | ||
tristate | ||
select VFIO_VIRQFD | ||
|
||
config VFIO_PLATFORM | ||
tristate "Generic VFIO support for any platform device" | ||
select VFIO_PLATFORM_BASE | ||
help | ||
Support for platform devices with VFIO. This is required to make | ||
use of platform devices present on the system using the VFIO | ||
framework. | ||
|
||
If you don't know what to do here, say N. | ||
|
||
if VFIO_PLATFORM | ||
config VFIO_AMBA | ||
tristate "VFIO support for AMBA devices" | ||
depends on ARM_AMBA || COMPILE_TEST | ||
select VFIO_PLATFORM_BASE | ||
help | ||
Support for ARM AMBA devices with VFIO. This is required to make | ||
use of ARM AMBA devices present on the system using the VFIO | ||
framework. | ||
|
||
If you don't know what to do here, say N. | ||
|
||
menu "VFIO platform reset drivers" | ||
depends on VFIO_PLATFORM_BASE | ||
|
||
source "drivers/vfio/platform/reset/Kconfig" | ||
endif | ||
endmenu | ||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
vfio-platform-base-y := vfio_platform_common.o vfio_platform_irq.o | ||
vfio-platform-y := vfio_platform.o | ||
obj-$(CONFIG_VFIO_PLATFORM_BASE) += vfio-platform-base.o | ||
obj-$(CONFIG_VFIO_PLATFORM_BASE) += reset/ | ||
|
||
vfio-platform-y := vfio_platform.o | ||
obj-$(CONFIG_VFIO_PLATFORM) += vfio-platform.o | ||
obj-$(CONFIG_VFIO_PLATFORM) += vfio-platform-base.o | ||
obj-$(CONFIG_VFIO_PLATFORM) += reset/ | ||
|
||
vfio-amba-y := vfio_amba.o | ||
|
||
obj-$(CONFIG_VFIO_AMBA) += vfio-amba.o | ||
obj-$(CONFIG_VFIO_AMBA) += vfio-platform-base.o | ||
obj-$(CONFIG_VFIO_AMBA) += reset/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters