Skip to content

Commit 2377c8a

Browse files
committed
patches: update for version 20240515
1 parent 9405f6b commit 2377c8a

File tree

57 files changed

+1729
-4409
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1729
-4409
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ After having all the prerequisites installed, the build process can be condensed
5353
to the following steps:
5454

5555
```shell
56-
$ # Download the VirtualBox 7.0.14 source package from Oracle.
57-
$ tar xf VirtualBox-7.0.14.tar.bz2
56+
$ # Download the VirtualBox 7.0.18 source package from Oracle.
57+
$ tar xf VirtualBox-7.0.18.tar.bz2
5858
$ git clone https://github.com/cyberus-technology/virtualbox-kvm vbox-kvm
59-
$ cd VirtualBox-7.0.14
59+
$ cd VirtualBox-7.0.18
6060
$ git init
6161
$ git add *
6262
$ git commit -m "VirtualBox vanilla code"

patches/0002-NEM-Implement-KVM-backend.patch renamed to patches/0001-NEM-Implement-KVM-backend.patch

Lines changed: 1663 additions & 292 deletions
Large diffs are not rendered by default.

patches/0001-config-add-Cyberus-configuration-adjustments.patch

Lines changed: 0 additions & 108 deletions
This file was deleted.

patches/0003-pci-passthrough-add-VFIO-implementation.patch renamed to patches/0002-pci-passthrough-add-VFIO-implementation.patch

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ license: vfio
3939
create mode 100644 vboxsrc/src/VBox/Devices/Bus/VfioDevice.cpp
4040

4141
diff --git a/include/VBox/log.h b/include/VBox/log.h
42-
index af00cf901a..aaec2b54bd 100644
42+
index a64390200..a908db54c 100644
4343
--- a/include/VBox/log.h
4444
+++ b/include/VBox/log.h
4545
@@ -178,6 +178,8 @@ typedef enum VBOXLOGGROUP
@@ -60,7 +60,7 @@ index af00cf901a..aaec2b54bd 100644
6060
"DEV_VIRTIO", \
6161
"DEV_VIRTIO_NET", \
6262
diff --git a/include/VBox/pci.h b/include/VBox/pci.h
63-
index cd28b08375..41124406c5 100644
63+
index cd28b0837..41124406c 100644
6464
--- a/include/VBox/pci.h
6565
+++ b/include/VBox/pci.h
6666
@@ -631,6 +631,8 @@ typedef enum PCIADDRTYPE
@@ -73,7 +73,7 @@ index cd28b08375..41124406c5 100644
7373
#define PCI_ROM_SLOT VBOX_PCI_ROM_SLOT /**< deprecated */
7474
#define PCI_NUM_REGIONS VBOX_PCI_NUM_REGIONS /**< deprecated */
7575
diff --git a/include/VBox/settings.h b/include/VBox/settings.h
76-
index 674e169f9b..78bcbf6bc6 100644
76+
index 674e169f9..78bcbf6bc 100644
7777
--- a/include/VBox/settings.h
7878
+++ b/include/VBox/settings.h
7979
@@ -1116,6 +1116,22 @@ struct HostPCIDeviceAttachment
@@ -110,7 +110,7 @@ index 674e169f9b..78bcbf6bc6 100644
110110
};
111111
diff --git a/include/svp/pci.h b/include/svp/pci.h
112112
new file mode 100644
113-
index 0000000000..9a020b6803
113+
index 000000000..9a020b680
114114
--- /dev/null
115115
+++ b/include/svp/pci.h
116116
@@ -0,0 +1,444 @@
@@ -560,7 +560,7 @@ index 0000000000..9a020b6803
560560
+}
561561
diff --git a/src/VBox/Devices/Bus/DevVfio.cpp b/src/VBox/Devices/Bus/DevVfio.cpp
562562
new file mode 100644
563-
index 0000000000..f93fcd7381
563+
index 000000000..f93fcd738
564564
--- /dev/null
565565
+++ b/src/VBox/Devices/Bus/DevVfio.cpp
566566
@@ -0,0 +1,154 @@
@@ -720,7 +720,7 @@ index 0000000000..f93fcd7381
720720
+};
721721
diff --git a/src/VBox/Devices/Bus/DevVfio.h b/src/VBox/Devices/Bus/DevVfio.h
722722
new file mode 100644
723-
index 0000000000..cfe384d7a1
723+
index 000000000..cfe384d7a
724724
--- /dev/null
725725
+++ b/src/VBox/Devices/Bus/DevVfio.h
726726
@@ -0,0 +1,412 @@
@@ -1138,7 +1138,7 @@ index 0000000000..cfe384d7a1
11381138
+typedef VFIODEV *PVFIODEV;
11391139
diff --git a/src/VBox/Devices/Bus/VfioDevice.cpp b/src/VBox/Devices/Bus/VfioDevice.cpp
11401140
new file mode 100644
1141-
index 0000000000..d8cf3ef1b0
1141+
index 000000000..d8cf3ef1b
11421142
--- /dev/null
11431143
+++ b/src/VBox/Devices/Bus/VfioDevice.cpp
11441144
@@ -0,0 +1,910 @@
@@ -2053,7 +2053,7 @@ index 0000000000..d8cf3ef1b0
20532053
+ return {barValue & std::numeric_limits<uint32_t>::max()};
20542054
+}
20552055
diff --git a/src/VBox/Devices/Makefile.kmk b/src/VBox/Devices/Makefile.kmk
2056-
index a17e655fa7..d2bef9129d 100644
2056+
index a17e655fa..d2bef9129 100644
20572057
--- a/src/VBox/Devices/Makefile.kmk
20582058
+++ b/src/VBox/Devices/Makefile.kmk
20592059
@@ -187,6 +187,8 @@ if !defined(VBOX_ONLY_EXTPACKS) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SU
@@ -2077,7 +2077,7 @@ index a17e655fa7..d2bef9129d 100644
20772077
ifn1of ($(KBUILD_TARGET), darwin)
20782078
VBoxDD_SOURCES += Storage/HBDMgmt-generic.cpp
20792079
diff --git a/src/VBox/Devices/build/VBoxDD.cpp b/src/VBox/Devices/build/VBoxDD.cpp
2080-
index 36b12c694f..d601e45546 100644
2080+
index 36b12c694..d601e4554 100644
20812081
--- a/src/VBox/Devices/build/VBoxDD.cpp
20822082
+++ b/src/VBox/Devices/build/VBoxDD.cpp
20832083
@@ -218,6 +218,9 @@ extern "C" DECLEXPORT(int) VBoxDevicesRegister(PPDMDEVREGCB pCallbacks, uint32_t
@@ -2091,7 +2091,7 @@ index 36b12c694f..d601e45546 100644
20912091
if (RT_FAILURE(rc))
20922092
return rc;
20932093
diff --git a/src/VBox/Devices/build/VBoxDD.h b/src/VBox/Devices/build/VBoxDD.h
2094-
index 9350f42885..d208ea1e7f 100644
2094+
index 9350f4288..d208ea1e7 100644
20952095
--- a/src/VBox/Devices/build/VBoxDD.h
20962096
+++ b/src/VBox/Devices/build/VBoxDD.h
20972097
@@ -107,6 +107,7 @@ extern const PDMDEVREG g_DeviceEFI;
@@ -2103,7 +2103,7 @@ index 9350f42885..d208ea1e7f 100644
21032103
extern const PDMDEVREG g_DeviceLPC;
21042104
#ifdef VBOX_WITH_VIRTUALKD
21052105
diff --git a/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp b/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
2106-
index 524c1be284..fffa353734 100644
2106+
index 05bed8bf7..d53ba59fc 100644
21072107
--- a/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
21082108
+++ b/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
21092109
@@ -2685,6 +2685,30 @@ HRESULT showVMInfo(ComPtr<IVirtualBox> pVirtualBox,
@@ -2138,7 +2138,7 @@ index 524c1be284..fffa353734 100644
21382138
* Bandwidth groups
21392139
*/
21402140
diff --git a/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp b/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
2141-
index 4a3607250a..aa3ecf7986 100644
2141+
index 4a3607250..aa3ecf798 100644
21422142
--- a/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
21432143
+++ b/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
21442144
@@ -234,6 +234,8 @@ enum
@@ -2178,7 +2178,7 @@ index 4a3607250a..aa3ecf7986 100644
21782178
#ifdef VBOX_WITH_USB_CARDREADER
21792179
case MODIFYVM_USBCARDREADER:
21802180
diff --git a/src/VBox/Main/idl/VirtualBox.xidl b/src/VBox/Main/idl/VirtualBox.xidl
2181-
index 8654afec6d..26e9d94aa0 100644
2181+
index 8654afec6..26e9d94aa 100644
21822182
--- a/src/VBox/Main/idl/VirtualBox.xidl
21832183
+++ b/src/VBox/Main/idl/VirtualBox.xidl
21842184
@@ -7336,6 +7336,12 @@
@@ -2220,7 +2220,7 @@ index 8654afec6d..26e9d94aa0 100644
22202220
<rest request="get" path="/vms/{vmid}/configuration/"/>
22212221
<desc>
22222222
diff --git a/src/VBox/Main/include/ConsoleImpl.h b/src/VBox/Main/include/ConsoleImpl.h
2223-
index fdea838fc0..e1fc1f9b4d 100644
2223+
index fdea838fc..e1fc1f9b4 100644
22242224
--- a/src/VBox/Main/include/ConsoleImpl.h
22252225
+++ b/src/VBox/Main/include/ConsoleImpl.h
22262226
@@ -807,6 +807,7 @@ private:
@@ -2232,7 +2232,7 @@ index fdea838fc0..e1fc1f9b4d 100644
22322232
typedef struct LEDSET *PLEDSET;
22332233
PPDMLED volatile *i_getLedSet(uint32_t iLedSet);
22342234
diff --git a/src/VBox/Main/include/MachineImpl.h b/src/VBox/Main/include/MachineImpl.h
2235-
index 311a80bdc2..5a90896947 100644
2235+
index 311a80bdc..5a9089694 100644
22362236
--- a/src/VBox/Main/include/MachineImpl.h
22372237
+++ b/src/VBox/Main/include/MachineImpl.h
22382238
@@ -364,6 +364,8 @@ public:
@@ -2262,7 +2262,7 @@ index 311a80bdc2..5a90896947 100644
22622262
ComPtr<INetworkAdapter> &aAdapter);
22632263
HRESULT addStorageController(const com::Utf8Str &aName,
22642264
diff --git a/src/VBox/Main/src-client/BusAssignmentManager.cpp b/src/VBox/Main/src-client/BusAssignmentManager.cpp
2265-
index a8d36d0717..b4665d696c 100644
2265+
index a8d36d071..b4665d696 100644
22662266
--- a/src/VBox/Main/src-client/BusAssignmentManager.cpp
22672267
+++ b/src/VBox/Main/src-client/BusAssignmentManager.cpp
22682268
@@ -109,17 +109,18 @@ static const DeviceAssignmentRule g_aGenericRules[] =
@@ -2292,7 +2292,7 @@ index a8d36d0717..b4665d696c 100644
22922292
/* ISA/LPC controller */
22932293
{"lpc", 0, 31, 0, 0},
22942294
diff --git a/src/VBox/Main/src-client/ConsoleImpl2.cpp b/src/VBox/Main/src-client/ConsoleImpl2.cpp
2295-
index 3576c49354..7a4ee5db5f 100644
2295+
index 3576c4935..7a4ee5db5 100644
22962296
--- a/src/VBox/Main/src-client/ConsoleImpl2.cpp
22972297
+++ b/src/VBox/Main/src-client/ConsoleImpl2.cpp
22982298
@@ -674,6 +674,66 @@ HRESULT Console::i_attachRawPCIDevices(PUVM pUVM, BusAssignmentManager *pBusMgr,
@@ -2372,7 +2372,7 @@ index 3576c49354..7a4ee5db5f 100644
23722372
* Enable the following devices: HPET, SMC and LPC on MacOS X guests or on ICH9 chipset
23732373
*/
23742374
diff --git a/src/VBox/Main/src-server/MachineImpl.cpp b/src/VBox/Main/src-server/MachineImpl.cpp
2375-
index c3c63d5989..e3d3287a7d 100644
2375+
index c3c63d598..e3d3287a7 100644
23762376
--- a/src/VBox/Main/src-server/MachineImpl.cpp
23772377
+++ b/src/VBox/Main/src-server/MachineImpl.cpp
23782378
@@ -7064,6 +7064,80 @@ HRESULT Machine::getPCIDeviceAssignments(std::vector<ComPtr<IPCIDeviceAttachment
@@ -2488,7 +2488,7 @@ index c3c63d5989..e3d3287a7d 100644
24882488
data.llGuestProperties.clear();
24892489
#ifdef VBOX_WITH_GUEST_PROPS
24902490
diff --git a/src/VBox/Main/xml/Settings.cpp b/src/VBox/Main/xml/Settings.cpp
2491-
index fa1c1d82a8..e818eeb23f 100644
2491+
index fa1c1d82a..e818eeb23 100644
24922492
--- a/src/VBox/Main/xml/Settings.cpp
24932493
+++ b/src/VBox/Main/xml/Settings.cpp
24942494
@@ -3902,6 +3902,21 @@ bool HostPCIDeviceAttachment::operator==(const HostPCIDeviceAttachment &a) const
@@ -2583,7 +2583,7 @@ index fa1c1d82a8..e818eeb23f 100644
25832583

25842584
if (m->sv < SettingsVersion_v1_16)
25852585
diff --git a/src/VBox/Runtime/VBox/log-vbox.cpp b/src/VBox/Runtime/VBox/log-vbox.cpp
2586-
index 2e82f859f7..9d9c5d731e 100644
2586+
index 2e82f859f..9d9c5d731 100644
25872587
--- a/src/VBox/Runtime/VBox/log-vbox.cpp
25882588
+++ b/src/VBox/Runtime/VBox/log-vbox.cpp
25892589
@@ -272,6 +272,7 @@ RTDECL(PRTLOGGER) RTLogDefaultInit(void)
@@ -2595,5 +2595,5 @@ index 2e82f859f7..9d9c5d731e 100644
25952595
ASSERT_LOG_GROUP(DEV_VIRTIO);
25962596
ASSERT_LOG_GROUP(DEV_VIRTIO_NET);
25972597
--
2598-
2.43.0
2598+
2.34.1
25992599

0 commit comments

Comments
 (0)