Skip to content

Commit 8f9982e

Browse files
committed
patches: update for version 20240617
1 parent 2377c8a commit 8f9982e

12 files changed

+1220
-98
lines changed

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ your problem as detailed as possible.
160160

161161
## Licensing
162162

163-
This source code is released under the same license terms as the original
164-
VirtualBox Open Source release it is derived from. See the upstream `COPYING` file
165-
for details. Make sure to follow [licensing conditions](https://www.virtualbox.org/wiki/Licensing_FAQ)
166-
when redistributing.
163+
This source code is released under the GPLv3, the same license terms as the
164+
original VirtualBox Open Source release it is derived from. See the `LICENSE`
165+
file and the upstream `COPYING` file for details. Make sure to follow
166+
[licensing conditions](https://www.virtualbox.org/wiki/Licensing_FAQ) when
167+
redistributing.

patches/0001-NEM-Implement-KVM-backend.patch

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ account for the CPUID values VBox wants to offer to the guest.
309309
create mode 100644 vboxsrc/src/VBox/VMM/VMMR3/GIMHvOnKvm.cpp
310310

311311
diff --git a/Config.kmk b/Config.kmk
312-
index abcef4ad2..9808e0a1a 100644
312+
index abcef4ad23..9808e0a1af 100644
313313
--- a/Config.kmk
314314
+++ b/Config.kmk
315315
@@ -1587,6 +1587,19 @@ ifdef VBOX_HEADLESS
@@ -357,7 +357,7 @@ index abcef4ad2..9808e0a1a 100644
357357
VBOX_GCC_std := -std=c++11
358358
# else if "$(VBOX_GCC_VERSION_CXX)" vge 70000 # Language feature P0512R0 was v8, rest v7 or earlier. Most lib stuff present in 7, complete in v12.
359359
diff --git a/configure b/configure
360-
index 4b69712cd..22709bf93 100755
360+
index 4b69712cd6..22709bf934 100755
361361
--- a/configure
362362
+++ b/configure
363363
@@ -86,6 +86,7 @@ SETUP_WINE=
@@ -395,7 +395,7 @@ index 4b69712cd..22709bf93 100755
395395
[ $WITH_LIBTPMS -eq 0 ] && cnf_append "VBOX_WITH_LIBTPMS" ""
396396
[ $WITH_LIBLZMA -eq 0 ] && cnf_append "VBOX_WITH_LIBLZMA" ""
397397
diff --git a/include/VBox/vmm/nem.h b/include/VBox/vmm/nem.h
398-
index 0d960a7ee..860329785 100644
398+
index 0d960a7eee..8603297854 100644
399399
--- a/include/VBox/vmm/nem.h
400400
+++ b/include/VBox/vmm/nem.h
401401
@@ -43,6 +43,14 @@
@@ -565,7 +565,7 @@ index 0d960a7ee..860329785 100644
565565
* @{ */
566566
/** Set if the range is replacing RAM rather that unused space. */
567567
diff --git a/include/VBox/vmm/pdmdev.h b/include/VBox/vmm/pdmdev.h
568-
index f895eb86f..525d82e03 100644
568+
index f895eb86f5..525d82e030 100644
569569
--- a/include/VBox/vmm/pdmdev.h
570570
+++ b/include/VBox/vmm/pdmdev.h
571571
@@ -64,6 +64,49 @@
@@ -711,7 +711,7 @@ index f895eb86f..525d82e03 100644
711711
uint32_t u32TheEnd;
712712
} PDMIOAPICHLP;
713713
diff --git a/include/iprt/mangling.h b/include/iprt/mangling.h
714-
index 0c8c027f1..7b27bba35 100644
714+
index 0c8c027f1b..7b27bba35d 100644
715715
--- a/include/iprt/mangling.h
716716
+++ b/include/iprt/mangling.h
717717
@@ -2555,6 +2555,7 @@
@@ -723,7 +723,7 @@ index 0c8c027f1..7b27bba35 100644
723723
# define RTThreadPreemptDisable RT_MANGLER(RTThreadPreemptDisable) /* r0drv */
724724
# define RTThreadPreemptIsEnabled RT_MANGLER(RTThreadPreemptIsEnabled) /* r0drv */
725725
diff --git a/include/iprt/thread.h b/include/iprt/thread.h
726-
index 7d9257ec4..243d76de7 100644
726+
index 7d9257ec4c..243d76de75 100644
727727
--- a/include/iprt/thread.h
728728
+++ b/include/iprt/thread.h
729729
@@ -555,6 +555,12 @@ RTDECL(int) RTThreadPoke(RTTHREAD hThread);
@@ -740,7 +740,7 @@ index 7d9257ec4..243d76de7 100644
740740
# ifdef IN_RING0
741741

742742
diff --git a/include/iprt/x86.h b/include/iprt/x86.h
743-
index 95ab7b439..96c7d1b01 100644
743+
index 95ab7b439a..96c7d1b019 100644
744744
--- a/include/iprt/x86.h
745745
+++ b/include/iprt/x86.h
746746
@@ -667,6 +667,8 @@ typedef const X86CPUIDFEATEDX *PCX86CPUIDFEATEDX;
@@ -775,7 +775,7 @@ index 95ab7b439..96c7d1b01 100644
775775
* IBPB command in IA32_PRED_CMD. */
776776
#define X86_CPUID_STEXT_FEATURE_EDX_IBRS_IBPB RT_BIT_32(26)
777777
diff --git a/src/VBox/Devices/PC/DevACPI.cpp b/src/VBox/Devices/PC/DevACPI.cpp
778-
index abf2ba5e2..672b9afae 100644
778+
index abf2ba5e25..672b9afae0 100644
779779
--- a/src/VBox/Devices/PC/DevACPI.cpp
780780
+++ b/src/VBox/Devices/PC/DevACPI.cpp
781781
@@ -812,7 +812,11 @@ struct ACPITBLISO
@@ -866,7 +866,7 @@ index abf2ba5e2..672b9afae 100644
866866
madt.header_addr()->u8Checksum = acpiR3Checksum(madt.data(), madt.size());
867867
acpiR3PhysCopy(pDevIns, addr, madt.data(), madt.size());
868868
diff --git a/src/VBox/Devices/PC/DevIoApic.cpp b/src/VBox/Devices/PC/DevIoApic.cpp
869-
index a69d8e3f0..f56c66725 100644
869+
index a69d8e3f02..f56c66725d 100644
870870
--- a/src/VBox/Devices/PC/DevIoApic.cpp
871871
+++ b/src/VBox/Devices/PC/DevIoApic.cpp
872872
@@ -32,6 +32,14 @@
@@ -1199,7 +1199,7 @@ index a69d8e3f0..f56c66725 100644
11991199
* Validate and read the configuration.
12001200
*/
12011201
diff --git a/src/VBox/Devices/PC/DevPIC.cpp b/src/VBox/Devices/PC/DevPIC.cpp
1202-
index b4e195952..f44e2c6f7 100644
1202+
index b4e195952e..f44e2c6f73 100644
12031203
--- a/src/VBox/Devices/PC/DevPIC.cpp
12041204
+++ b/src/VBox/Devices/PC/DevPIC.cpp
12051205
@@ -366,6 +366,16 @@ static DECLCALLBACK(void) picSetIrq(PPDMDEVINS pDevIns, int iIrq, int iLevel, ui
@@ -1296,7 +1296,7 @@ index b4e195952..f44e2c6f7 100644
12961296
return VINF_SUCCESS;
12971297
}
12981298
diff --git a/src/VBox/HostDrivers/Support/Makefile.kmk b/src/VBox/HostDrivers/Support/Makefile.kmk
1299-
index 46c2784cc..9f9ad3c9c 100644
1299+
index 46c2784cc4..9f9ad3c9c7 100644
13001300
--- a/src/VBox/HostDrivers/Support/Makefile.kmk
13011301
+++ b/src/VBox/HostDrivers/Support/Makefile.kmk
13021302
@@ -191,6 +191,7 @@ SUPR3_DEFS = \
@@ -1308,7 +1308,7 @@ index 46c2784cc..9f9ad3c9c 100644
13081308
VBOX_PERMIT_EVEN_MORE
13091309
SUPR3_INCS := $(PATH_SUB_CURRENT)
13101310
diff --git a/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp b/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp
1311-
index 5bdcda63c..61ffb906d 100644
1311+
index 5bdcda63c4..61ffb906da 100644
13121312
--- a/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp
13131313
+++ b/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp
13141314
@@ -255,6 +255,10 @@ DECLHIDDEN(int) suplibOsPageAlloc(PSUPLIBDATA pThis, size_t cPages, uint32_t fFl
@@ -1323,7 +1323,7 @@ index 5bdcda63c..61ffb906d 100644
13231323
if ( !pThis->fSysMadviseWorks
13241324
&& (fFlags & (SUP_PAGE_ALLOC_F_FOR_LOCKING | SUP_PAGE_ALLOC_F_LARGE_PAGES)) == SUP_PAGE_ALLOC_F_FOR_LOCKING)
13251325
diff --git a/src/VBox/Main/Makefile.kmk b/src/VBox/Main/Makefile.kmk
1326-
index 5711816d7..6f5d1a707 100644
1326+
index 5711816d74..6f5d1a7071 100644
13271327
--- a/src/VBox/Main/Makefile.kmk
13281328
+++ b/src/VBox/Main/Makefile.kmk
13291329
@@ -1088,7 +1088,9 @@ if !defined(VBOX_ONLY_SDK) && !defined(VBOX_ONLY_EXTPACKS) # Note this goes on f
@@ -1338,7 +1338,7 @@ index 5711816d7..6f5d1a707 100644
13381338
$(PATH_SDK_$(VBOX_WINPSDK)_LIB)/psapi.lib \
13391339
$(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
13401340
diff --git a/src/VBox/Runtime/r3/posix/thread-posix.cpp b/src/VBox/Runtime/r3/posix/thread-posix.cpp
1341-
index cd621ce0a..c89c600e4 100644
1341+
index cd621ce0a1..c89c600e46 100644
13421342
--- a/src/VBox/Runtime/r3/posix/thread-posix.cpp
13431343
+++ b/src/VBox/Runtime/r3/posix/thread-posix.cpp
13441344
@@ -727,6 +727,10 @@ RTDECL(int) RTThreadControlPokeSignal(RTTHREAD hThread, bool fEnable)
@@ -1353,7 +1353,7 @@ index cd621ce0a..c89c600e4 100644
13531353
#endif
13541354

13551355
diff --git a/src/VBox/Runtime/testcase/Makefile.kmk b/src/VBox/Runtime/testcase/Makefile.kmk
1356-
index c3a097b82..4ecc3e535 100644
1356+
index c3a097b821..4ecc3e535a 100644
13571357
--- a/src/VBox/Runtime/testcase/Makefile.kmk
13581358
+++ b/src/VBox/Runtime/testcase/Makefile.kmk
13591359
@@ -559,6 +559,7 @@ ifdef VBOX_WITH_TESTCASES # The whole file
@@ -1365,7 +1365,7 @@ index c3a097b82..4ecc3e535 100644
13651365
$(QUIET)$(SED) -n -e 's/^ *LOG_GROUP_\([A-Z0-9_]*\),.*$(DOLLAR)/{ LOG_GROUP_\1, "\1" },/p' --output "$@" "$<"
13661366
endif # !VBOX_ONLY_VALIDATIONKIT
13671367
diff --git a/src/VBox/VMM/Makefile.kmk b/src/VBox/VMM/Makefile.kmk
1368-
index 1d87ac3f2..43c8b5318 100644
1368+
index 1d87ac3f2b..43c8b53185 100644
13691369
--- a/src/VBox/VMM/Makefile.kmk
13701370
+++ b/src/VBox/VMM/Makefile.kmk
13711371
@@ -137,7 +137,8 @@ VBoxVMM_SOURCES = \
@@ -1389,7 +1389,7 @@ index 1d87ac3f2..43c8b5318 100644
13891389
VMMAll/TMAll.cpp \
13901390
VMMAll/TMAllCpu.cpp \
13911391
diff --git a/src/VBox/VMM/VMMAll/APICAll.cpp b/src/VBox/VMM/VMMAll/APICAll.cpp
1392-
index 6041a8433..e2df2ec20 100644
1392+
index 6041a8433a..e2df2ec202 100644
13931393
--- a/src/VBox/VMM/VMMAll/APICAll.cpp
13941394
+++ b/src/VBox/VMM/VMMAll/APICAll.cpp
13951395
@@ -2726,6 +2726,16 @@ VMM_INT_DECL(VBOXSTRICTRC) APICLocalInterrupt(PVMCPUCC pVCpu, uint8_t u8Pin, uin
@@ -1411,7 +1411,7 @@ index 6041a8433..e2df2ec20 100644
14111411
if (APICIsEnabled(pVCpu))
14121412
diff --git a/src/VBox/VMM/VMMAll/GIMAllHvOnKvm.cpp b/src/VBox/VMM/VMMAll/GIMAllHvOnKvm.cpp
14131413
new file mode 100644
1414-
index 000000000..94870277d
1414+
index 0000000000..94870277df
14151415
--- /dev/null
14161416
+++ b/src/VBox/VMM/VMMAll/GIMAllHvOnKvm.cpp
14171417
@@ -0,0 +1,134 @@
@@ -1550,7 +1550,7 @@ index 000000000..94870277d
15501550
+ AssertLogRelMsgReturn(false, ("%s", __PRETTY_FUNCTION__), VERR_NOT_SUPPORTED);
15511551
+}
15521552
diff --git a/src/VBox/VMM/VMMAll/PGMAllBth.h b/src/VBox/VMM/VMMAll/PGMAllBth.h
1553-
index 50b7a30e8..9d4bd8ca6 100644
1553+
index 50b7a30e84..9d4bd8ca62 100644
15541554
--- a/src/VBox/VMM/VMMAll/PGMAllBth.h
15551555
+++ b/src/VBox/VMM/VMMAll/PGMAllBth.h
15561556
@@ -5046,7 +5046,10 @@ PGM_BTH_DECL(int, MapCR3)(PVMCPUCC pVCpu, RTGCPHYS GCPhysCR3)
@@ -1565,7 +1565,7 @@ index 50b7a30e8..9d4bd8ca6 100644
15651565
# if PGM_GST_TYPE == PGM_TYPE_PAE
15661566
if ( !pVCpu->pgm.s.CTX_SUFF(fPaePdpesAndCr3Mapped)
15671567
diff --git a/src/VBox/VMM/VMMAll/TMAll.cpp b/src/VBox/VMM/VMMAll/TMAll.cpp
1568-
index 677decdd8..8edc178af 100644
1568+
index 677decdd81..8edc178af1 100644
15691569
--- a/src/VBox/VMM/VMMAll/TMAll.cpp
15701570
+++ b/src/VBox/VMM/VMMAll/TMAll.cpp
15711571
@@ -208,7 +208,10 @@ VMMDECL(void) TMNotifyEndOfExecution(PVMCC pVM, PVMCPUCC pVCpu, uint64_t uTsc)
@@ -1581,7 +1581,7 @@ index 677decdd8..8edc178af 100644
15811581
uint64_t cNsExecutingDelta;
15821582
if (uCpuHz < _4G)
15831583
diff --git a/src/VBox/VMM/VMMAll/TMAllVirtual.cpp b/src/VBox/VMM/VMMAll/TMAllVirtual.cpp
1584-
index 9244bd850..2e34aeaf6 100644
1584+
index 9244bd850b..2e34aeaf6d 100644
15851585
--- a/src/VBox/VMM/VMMAll/TMAllVirtual.cpp
15861586
+++ b/src/VBox/VMM/VMMAll/TMAllVirtual.cpp
15871587
@@ -952,7 +952,11 @@ VMM_INT_DECL(uint64_t) TMVirtualSyncGetWithDeadlineNoCheck(PVMCC pVM, uint64_t *
@@ -1597,7 +1597,7 @@ index 9244bd850..2e34aeaf6 100644
15971597
}
15981598

15991599
diff --git a/src/VBox/VMM/VMMR3/APIC.cpp b/src/VBox/VMM/VMMR3/APIC.cpp
1600-
index 6753ac608..b5ff86cc7 100644
1600+
index 6753ac6080..b5ff86cc7f 100644
16011601
--- a/src/VBox/VMM/VMMR3/APIC.cpp
16021602
+++ b/src/VBox/VMM/VMMR3/APIC.cpp
16031603
@@ -36,6 +36,7 @@
@@ -1664,7 +1664,7 @@ index 6753ac608..b5ff86cc7 100644
16641664
APIC_REG_COUNTER(&pApicCpu->StatPostIntrCnt, "%u", "APIC/VCPU stats / number of apicPostInterrupt calls.");
16651665
for (size_t i = 0; i < RT_ELEMENTS(pApicCpu->aStatVectors); i++)
16661666
diff --git a/src/VBox/VMM/VMMR3/CPUM.cpp b/src/VBox/VMM/VMMR3/CPUM.cpp
1667-
index 7e0fbd32f..f906332e7 100644
1667+
index 7e0fbd32fb..f906332e72 100644
16681668
--- a/src/VBox/VMM/VMMR3/CPUM.cpp
16691669
+++ b/src/VBox/VMM/VMMR3/CPUM.cpp
16701670
@@ -1790,9 +1790,13 @@ void cpumR3InitVmxGuestFeaturesAndMsrs(PVM pVM, PCFGMNODE pCpumCfg, PCVMXMSRS pH
@@ -1704,7 +1704,7 @@ index 7e0fbd32f..f906332e7 100644
17041704
if (pGstCtx->fXStateMask & XSAVE_C_YMM)
17051705
{
17061706
diff --git a/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp b/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp
1707-
index 04d8ac3ca..6cc29487a 100644
1707+
index 04d8ac3cae..6cc29487ad 100644
17081708
--- a/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp
17091709
+++ b/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp
17101710
@@ -1331,6 +1331,13 @@ static int cpumR3CpuIdSanitize(PVM pVM, PCPUM pCpum, PCPUMCPUIDCONFIG pConfig)
@@ -1824,7 +1824,7 @@ index 04d8ac3ca..6cc29487a 100644
18241824

18251825
/*
18261826
diff --git a/src/VBox/VMM/VMMR3/EM.cpp b/src/VBox/VMM/VMMR3/EM.cpp
1827-
index bd15b8872..5e52065aa 100644
1827+
index bd15b8872c..5e52065aab 100644
18281828
--- a/src/VBox/VMM/VMMR3/EM.cpp
18291829
+++ b/src/VBox/VMM/VMMR3/EM.cpp
18301830
@@ -219,7 +219,11 @@ VMMR3_INT_DECL(int) EMR3Init(PVM pVM)
@@ -1855,7 +1855,7 @@ index bd15b8872..5e52065aa 100644
18551855
break;
18561856
}
18571857
diff --git a/src/VBox/VMM/VMMR3/GIMHv.cpp b/src/VBox/VMM/VMMR3/GIMHv.cpp
1858-
index 0452facbe..1da906512 100644
1858+
index 0452facbe3..1da9065120 100644
18591859
--- a/src/VBox/VMM/VMMR3/GIMHv.cpp
18601860
+++ b/src/VBox/VMM/VMMR3/GIMHv.cpp
18611861
@@ -34,6 +34,9 @@
@@ -1981,7 +1981,7 @@ index 0452facbe..1da906512 100644
19811981
/*
19821982
diff --git a/src/VBox/VMM/VMMR3/GIMHvOnKvm.cpp b/src/VBox/VMM/VMMR3/GIMHvOnKvm.cpp
19831983
new file mode 100644
1984-
index 000000000..362cc690f
1984+
index 0000000000..362cc690f1
19851985
--- /dev/null
19861986
+++ b/src/VBox/VMM/VMMR3/GIMHvOnKvm.cpp
19871987
@@ -0,0 +1,640 @@
@@ -2626,7 +2626,7 @@ index 000000000..362cc690f
26262626
+ return VERR_GIM_NO_DEBUG_CONNECTION;
26272627
+}
26282628
diff --git a/src/VBox/VMM/VMMR3/NEMR3Native-linux.cpp b/src/VBox/VMM/VMMR3/NEMR3Native-linux.cpp
2629-
index fa7314159..cb43dd2fe 100644
2629+
index fa73141590..cb43dd2fea 100644
26302630
--- a/src/VBox/VMM/VMMR3/NEMR3Native-linux.cpp
26312631
+++ b/src/VBox/VMM/VMMR3/NEMR3Native-linux.cpp
26322632
@@ -37,21 +37,31 @@
@@ -4383,7 +4383,7 @@ index fa7314159..cb43dd2fe 100644
43834383
*/
43844384
-
43854385
diff --git a/src/VBox/VMM/VMMR3/PDMDevMiscHlp.cpp b/src/VBox/VMM/VMMR3/PDMDevMiscHlp.cpp
4386-
index f11f0b215..d723f5453 100644
4386+
index f11f0b2151..d723f54531 100644
43874387
--- a/src/VBox/VMM/VMMR3/PDMDevMiscHlp.cpp
43884388
+++ b/src/VBox/VMM/VMMR3/PDMDevMiscHlp.cpp
43894389
@@ -34,6 +34,7 @@
@@ -4525,7 +4525,7 @@ index f11f0b215..d723f5453 100644
45254525
};
45264526

45274527
diff --git a/src/VBox/VMM/VMMR3/PGMPhys.cpp b/src/VBox/VMM/VMMR3/PGMPhys.cpp
4528-
index fb9fd6682..b54be5208 100644
4528+
index fb9fd66828..b54be52089 100644
45294529
--- a/src/VBox/VMM/VMMR3/PGMPhys.cpp
45304530
+++ b/src/VBox/VMM/VMMR3/PGMPhys.cpp
45314531
@@ -1862,7 +1862,12 @@ int pgmR3PhysRamPreAllocate(PVM pVM)
@@ -4542,7 +4542,7 @@ index fb9fd6682..b54be5208 100644
45424542

45434543
/*
45444544
diff --git a/src/VBox/VMM/VMMR3/VMM.cpp b/src/VBox/VMM/VMMR3/VMM.cpp
4545-
index e235184c5..787df961f 100644
4545+
index e235184c56..787df961f1 100644
45464546
--- a/src/VBox/VMM/VMMR3/VMM.cpp
45474547
+++ b/src/VBox/VMM/VMMR3/VMM.cpp
45484548
@@ -1092,6 +1092,11 @@ static DECLCALLBACK(int) vmmR3Load(PVM pVM, PSSMHANDLE pSSM, uint32_t uVersion,
@@ -4558,7 +4558,7 @@ index e235184c5..787df961f 100644
45584558
}
45594559

45604560
diff --git a/src/VBox/VMM/include/GIMHvInternal.h b/src/VBox/VMM/include/GIMHvInternal.h
4561-
index 960dc36c6..7308180cb 100644
4561+
index 960dc36c6c..7308180cb5 100644
45624562
--- a/src/VBox/VMM/include/GIMHvInternal.h
45634563
+++ b/src/VBox/VMM/include/GIMHvInternal.h
45644564
@@ -202,6 +202,8 @@
@@ -4579,7 +4579,7 @@ index 960dc36c6..7308180cb 100644
45794579
/**
45804580
* MMIO2 region indices.
45814581
diff --git a/src/VBox/VMM/include/NEMInternal.h b/src/VBox/VMM/include/NEMInternal.h
4582-
index e0817e219..35a7665f4 100644
4582+
index e0817e219c..35a7665f4f 100644
45834583
--- a/src/VBox/VMM/include/NEMInternal.h
45844584
+++ b/src/VBox/VMM/include/NEMInternal.h
45854585
@@ -35,13 +35,24 @@
@@ -4647,5 +4647,5 @@ index e0817e219..35a7665f4 100644
46474647
#endif /* !VMM_INCLUDED_SRC_include_NEMInternal_h */
46484648
-
46494649
--
4650-
2.34.1
4650+
2.43.0
46514651

0 commit comments

Comments
 (0)