- 時間撮記:
- 2015-7-13 下午12:29:03 (9 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/ValidationKit/testdriver/vboxtestvms.py
r56374 r56923 52 52 }; 53 53 54 # Arch constants. 55 g_k32 = 32; # pylint: disable=C0103 56 g_k64 = 64; # pylint: disable=C0103 57 g_k32_64 = 96; # pylint: disable=C0103 54 ## @name Flags. 55 ## @{ 56 g_k32 = 32; # pylint: disable=C0103 57 g_k64 = 64; # pylint: disable=C0103 58 g_k32_64 = 96; # pylint: disable=C0103 59 g_kiArchMask = 96; 60 g_kiNoRaw = 128; ##< No raw mode. 61 ## @} 58 62 59 63 # Array indexes. 60 64 g_iGuestOsType = 0; 61 65 g_iKind = 1; 62 g_i Arch= 2;66 g_iFlags = 2; 63 67 g_iMinCpu = 3; 64 68 g_iMaxCpu = 4; … … 79 83 [ 'Windows7', 'Windows7', g_k32, 1, 32, ['w7', 'w7sp[0-9]', 'win7',]], # max cpus/cores?? 80 84 [ 'Windows7_64', 'Windows7_64', g_k64, 1, 64, ['w7-64', 'w7sp[0-9]-64', 'win7-64',]], # max cpus/cores?? 81 [ 'Windows8', 'Windows8', g_k32,1, 32, ['w8', 'w8sp[0-9]', 'win8',]], # max cpus/cores??85 [ 'Windows8', 'Windows8', g_k32 | g_kiNoRaw, 1, 32, ['w8', 'w8sp[0-9]', 'win8',]], # max cpus/cores?? 82 86 [ 'Windows8_64', 'Windows8_64', g_k64, 1, 64, ['w8-64', 'w8sp[0-9]-64', 'win8-64',]], # max cpus/cores?? 83 [ 'Windows81', 'Windows81', g_k32,1, 32, ['w81', 'w81sp[0-9]', 'win81',]], # max cpus/cores??87 [ 'Windows81', 'Windows81', g_k32 | g_kiNoRaw, 1, 32, ['w81', 'w81sp[0-9]', 'win81',]], # max cpus/cores?? 84 88 [ 'Windows81_64', 'Windows81_64', g_k64, 1, 64, ['w81-64', 'w81sp[0-9]-64', 'win81-64',]], # max cpus/cores?? 89 [ 'Windows10', 'Windows10', g_k32 | g_kiNoRaw, 1, 32, ['w10', 'w10sp[0-9]', 'win10',]], # max cpus/cores?? 90 [ 'Windows10_64', 'Windows10_64', g_k64, 1, 64, ['w10-64', 'w10sp[0-9]-64', 'win10-64',]], # max cpus/cores?? 85 91 [ 'Linux', 'Debian', g_k32, 1, 256, ['deb[0-9]*', 'debian[0-9]*', ]], 86 92 [ 'Linux_64', 'Debian_64', g_k64, 1, 256, ['deb[0-9]*-64', 'debian[0-9]*-64', ]], … … 234 240 235 241 # Check for 64-bit, if required and supported. 236 if self.aInfo[g_iArch]== g_k32_64 and _intersects(asSplit, ['64', 'amd64']):242 if (self.aInfo[g_iFlags] & g_kiArchMask) == g_k32_64 and _intersects(asSplit, ['64', 'amd64']): 237 243 self.sKind = self.sKind + '_64'; 238 244 else: … … 261 267 if self.asVirtModesSup is None: 262 268 self.asVirtModesSup = list(g_asVirtModes); 263 if self.sGuestOsType in (g_ksGuestOsTypeOS2, g_ksGuestOsTypeDarwin):264 self.asVirtModesSup = [sVirtMode for sVirtMode in self.asVirtModesSup if sVirtMode != 'raw'];265 if self.sKind.find('_64') > 0:269 if self.sGuestOsType in (g_ksGuestOsTypeOS2, g_ksGuestOsTypeDarwin) \ 270 or self.sKind.find('_64') > 0 \ 271 or (self.aInfo is not None and (self.aInfo[g_iFlags] & g_kiNoRaw)): 266 272 self.asVirtModesSup = [sVirtMode for sVirtMode in self.asVirtModesSup if sVirtMode != 'raw']; 267 273 # TEMPORARY HACK - START … … 361 367 def is64bitRequired(self): 362 368 """ Check if 64-bit is required or not. """ 363 return (self.aInfo[g_i Arch] & g_k64) != 0;369 return (self.aInfo[g_iFlags] & g_k64) != 0; 364 370 365 371 def isLoggedOntoDesktop(self):
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器