Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 642b122

Browse files
vboxdrv: Introduce initial support for kernel 6.16, bugref:10908.
svn:sync-xref-src-repo-rev: r169194
1 parent f4055d9 commit 642b122

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

‎src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: SUPDrv-linux.c 109469 2025-05-08 09:13:54Z knut.osmundsen@oracle.com $ */
1+
/* $Id: SUPDrv-linux.c 109840 2025-06-12 11:20:54Z vadim.galitsyn@oracle.com $ */
22
/** @file
33
* VBoxDrv - The VirtualBox Support Driver - Linux specifics.
44
*/
@@ -112,6 +112,12 @@
112112
# define VBOX_EXTRA_VERSION_STRING ""
113113
#endif
114114

115+
/* Macro was renamed in 6.16. */
116+
# if RTLNX_VER_MIN(6,16,0)
117+
# define VBOX_RDMSR_SAFE rdmsrq_safe
118+
# else
119+
# define VBOX_RDMSR_SAFE rdmsrl_safe
120+
# endif
115121

116122
/*********************************************************************************************************************************
117123
* Structures and Typedefs *
@@ -1579,7 +1585,7 @@ static DECLCALLBACK(void) supdrvLnxMsrProberModifyOnCpu(RTCPUID idCpu, void *pvU
15791585
if (!fFaster)
15801586
ASMWriteBackAndInvalidateCaches();
15811587

1582-
rcBefore = rdmsrl_safe(uMsr, &uBefore);
1588+
rcBefore = VBOX_RDMSR_SAFE(uMsr, &uBefore);
15831589
if (rcBefore >= 0)
15841590
{
15851591
register uint64_t uRestore = uBefore;
@@ -1588,7 +1594,7 @@ static DECLCALLBACK(void) supdrvLnxMsrProberModifyOnCpu(RTCPUID idCpu, void *pvU
15881594
uWritten |= pReq->u.In.uArgs.Modify.fOrMask;
15891595

15901596
rcWrite = wrmsr_safe(uMsr, RT_LODWORD(uWritten), RT_HIDWORD(uWritten));
1591-
rcAfter = rdmsrl_safe(uMsr, &uAfter);
1597+
rcAfter = VBOX_RDMSR_SAFE(uMsr, &uAfter);
15921598
rcRestore = wrmsr_safe(uMsr, RT_LODWORD(uRestore), RT_HIDWORD(uRestore));
15931599

15941600
if (!fFaster)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /