mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-27 06:50:37 +00:00

The vboxguest driver depends on port I/O for debug output:
include/asm-generic/io.h:626:15: error: call to '_outl' declared with attribute error: outl() requires CONFIG_HAS_IOPORT
626 | #define _outl _outl
include/asm-generic/io.h:663:14: note: in expansion of macro '_outl'
663 | #define outl _outl
| ^~~~~
drivers/virt/vboxguest/vboxguest_utils.c:102:9: note: in expansion of macro 'outl'
102 | outl(phys_req, gdev->io_port + VMMDEV_PORT_OFF_REQUEST);
| ^~~~
Most arm64 platforms don't actually support port I/O, though it is
currently enabled unconditionally. Refine the vbox dependency to allow
turning HAS_IOPORT off in the future when building for platforms without
port I/O and allow compile-testing on all architectures.
Fixes: 5cf8f938bf
("vbox: Enable VBOXGUEST and VBOXSF_FS on ARM64")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20250122065445.1469218-1-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
21 lines
860 B
Plaintext
21 lines
860 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config VBOXGUEST
|
|
tristate "Virtual Box Guest integration support"
|
|
depends on (ARM64 || X86 || COMPILE_TEST) && PCI && INPUT
|
|
depends on HAS_IOPORT
|
|
help
|
|
This is a driver for the Virtual Box Guest PCI device used in
|
|
Virtual Box virtual machines. Enabling this driver will add
|
|
support for Virtual Box Guest integration features such as
|
|
copy-and-paste, seamless mode and OpenGL pass-through.
|
|
|
|
This driver also offers vboxguest IPC functionality which is needed
|
|
for the vboxfs driver which offers folder sharing support.
|
|
|
|
If you enable this driver you should also enable the VBOXVIDEO option.
|
|
|
|
Although it is possible to build this module in, it is advised
|
|
to build this driver as a module, so that it can be updated
|
|
independently of the kernel. Select M to build this driver as a
|
|
module.
|