Hello,

The virtualbox modules do not compile on a kernel configured with CONFIG_X86_FRED but without CONFIG_KVM_INTEL. Some people attempted this combination on AMD CPUs.

I'm attaching a trivial patch to fix this.

See also bugs.gentoo.org/981233

Regards,
Viorel

https://bugs.gentoo.org/981233

Fix building with CONFIG_X86_FRED and !CONFIG_KVM_INTEL.

--- a/vboxdrv/linux/SUPDrv-linux.c
+++ b/vboxdrv/linux/SUPDrv-linux.c
@@ -261,7 +261,7 @@ static __typeof__(cr4_read_shadow)              *g_pfnCr4ReadShadow;
 #if defined(CONFIG_X86_FRED)
 /** Flag whether the system is running with FRED enabled. */
 static bool                                      g_fFredActive = false;
-# if RTLNX_VER_MIN(7,1,0)
+# if RTLNX_VER_MIN(7,1,0) && IS_ENABLED(CONFIG_KVM_INTEL)
 /** Function pointer to x86_entry_from_kvm(). */
 static __typeof__(x86_entry_from_kvm)           *g_pfnX86EntryFromKvm = NULL;
 #  define MY_FRED_ENTRY_FROM_KVM                "x86_entry_from_kvm"

Attachment: OpenPGP_0x67992BD27934AEA4.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
vbox-dev mailing list
[email protected]
https://www.virtualbox.org/mailman/listinfo/vbox-dev

Reply via email to