summaryrefslogtreecommitdiffstats
path: root/endpoints/lib
diff options
context:
space:
mode:
authorchotaire <chotaire@chotaire.net>2019-09-07 13:32:32 +0200
committerchotaire <chotaire@chotaire.net>2019-09-07 13:32:32 +0200
commit9b65e6772cd92c755f291c7078d2769aa5487287 (patch)
tree4d4520c84091bb4a333dc9738acc012fde2f4b3f /endpoints/lib
parent9871f2445fa8c2095cacc93a8708cc4adc495198 (diff)
downloadphpvirtualbox-9b65e6772cd92c755f291c7078d2769aa5487287.zip
phpvirtualbox-9b65e6772cd92c755f291c7078d2769aa5487287.tar.gz
phpvirtualbox-9b65e6772cd92c755f291c7078d2769aa5487287.tar.bz2
Added Nested Virtualization (by pasha1st)
Diffstat (limited to 'endpoints/lib')
-rw-r--r--endpoints/lib/vboxconnector.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/endpoints/lib/vboxconnector.php b/endpoints/lib/vboxconnector.php
index c2f8804..2a3f06b 100644
--- a/endpoints/lib/vboxconnector.php
+++ b/endpoints/lib/vboxconnector.php
@@ -1855,6 +1855,7 @@ class vboxconnector {
if($m->snapshotFolder != $args['snapshotFolder']) $m->snapshotFolder = $args['snapshotFolder'];
$m->RTCUseUTC = ($args['RTCUseUTC'] ? 1 : 0);
$m->setCpuProperty('PAE', ($args['CpuProperties']['PAE'] ? 1 : 0));
+ $m->setCpuProperty('HWVirt', ($args['CpuProperties']['HWVirt'] ? 1 : 0));
$m->setCPUProperty('LongMode', (strpos($args['OSTypeId'],'_64') > - 1 ? 1 : 0));
// IOAPIC
@@ -3402,7 +3403,8 @@ class vboxconnector {
* Supported CPU features?
*/
$response['cpuFeatures'] = array();
- foreach(array('HWVirtEx'=>'HWVirtEx','PAE'=>'PAE','NestedPaging'=>'Nested Paging','LongMode'=>'Long Mode (64-bit)') as $k=>$v) {
+ foreach(array('HWVirtEx'=>'HWVirtEx','PAE'=>'PAE','NestedPaging'=>'Nested Paging','LongMode'=>'Long Mode (64-bit)'
+ ,'UnrestrictedGuest'=>'Unrestricted Guest','NestedHWVirt'=>'Nested Virtualization') as $k=>$v) {
$response['cpuFeatures'][$v] = $host->getProcessorFeature($k);
}
@@ -4250,7 +4252,7 @@ class vboxconnector {
'VPID' => $m->getHWVirtExProperty('VPID')
),
'CpuProperties' => array(
- 'PAE' => $m->getCpuProperty('PAE')
+ 'PAE' => $m->getCpuProperty('PAE'),'HWVirt' => $m->getCpuProperty('HWVirt')
),
'bootOrder' => $this->_machineGetBootOrder($m),
'chipsetType' => (string)$m->chipsetType,