[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH RESEND 4/5] vbox driver support for VirtualBox v4.2



From: ryan woodsmall <rwoodsmall gmail com>

---
 src/vbox/vbox_driver.c |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/vbox/vbox_driver.c b/src/vbox/vbox_driver.c
index a68f33d..9d07574 100644
--- a/src/vbox/vbox_driver.c
+++ b/src/vbox/vbox_driver.c
@@ -61,6 +61,9 @@ extern virStorageDriver vbox40StorageDriver;
 extern virDriver vbox41Driver;
 extern virNetworkDriver vbox41NetworkDriver;
 extern virStorageDriver vbox41StorageDriver;
+extern virDriver vbox42Driver;
+extern virNetworkDriver vbox42NetworkDriver;
+extern virStorageDriver vbox42StorageDriver;
 
 static virDriver vboxDriverDummy;
 
@@ -124,6 +127,11 @@ int vboxRegister(void) {
             driver        = &vbox41Driver;
             networkDriver = &vbox41NetworkDriver;
             storageDriver = &vbox41StorageDriver;
+        } else if (uVersion >= 4001051 && uVersion < 4002051) {
+            VIR_DEBUG("VirtualBox API version: 4.2");
+            driver        = &vbox42Driver;
+            networkDriver = &vbox42NetworkDriver;
+            storageDriver = &vbox42StorageDriver;
         } else {
             VIR_DEBUG("Unsupported VirtualBox API version: %u", uVersion);
         }
-- 
1.7.10.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]