Changeset 76938 in vbox
- Timestamp:
- Jan 22, 2019 4:50:18 PM (6 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 7 edited
- 1 copied
-
Additions/linux/drm/vbox_fb.c (modified) (1 diff)
-
Additions/linux/drm/vbox_main.c (modified) (1 diff)
-
Additions/linux/sharedfolders/lnkops.c (modified) (2 diffs)
-
Additions/linux/sharedfolders/utils.c (modified) (1 diff)
-
Installer/linux/uninstall.sh (modified) (2 diffs)
-
Installer/solaris/makepackage.sh (modified) (1 diff)
-
ValidationKit/testdriver/base.py (modified) (1 diff)
-
ValidationKit/tests/additions/tdAddLinux1.py (copied) (copied from trunk/src/VBox/ValidationKit/tests/installation/tdGuestOsInstOs2.py ) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_fb.c
r76936 r76938 344 344 sizes->fb_height); 345 345 346 info->screen_base = bo->kmap.virtual;346 info->screen_base = (char __iomem *)bo->kmap.virtual; 347 347 info->screen_size = size; 348 348 -
trunk/src/VBox/Additions/linux/drm/vbox_main.c
r76553 r76938 68 68 continue; 69 69 70 vbva = (void *)vbox->vbva_buffers + i * VBVA_MIN_BUFFER_SIZE;70 vbva = (void __force *)vbox->vbva_buffers + i * VBVA_MIN_BUFFER_SIZE; 71 71 if (!VBoxVBVAEnable(&vbox->vbva_info[i], 72 72 vbox->guest_pool, vbva, i)) { -
trunk/src/VBox/Additions/linux/sharedfolders/lnkops.c
r76744 r76938 36 36 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) 37 37 static const char *sf_follow_link(struct dentry *dentry, void **cookie) 38 # else38 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) 39 39 static void *sf_follow_link(struct dentry *dentry, struct nameidata *nd) 40 #else 41 static int sf_follow_link(struct dentry *dentry, struct nameidata *nd) 40 42 # endif 41 43 { … … 61 63 # else 62 64 nd_set_link(nd, error ? ERR_PTR(error) : path); 65 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) 63 66 return NULL; 64 # endif 67 # else 68 return 0; 69 # endif 70 #endif 65 71 } 66 72 67 73 # if LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0) 74 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) 68 75 static void sf_put_link(struct dentry *dentry, struct nameidata *nd, 69 76 void *cookie) 77 #else 78 static void sf_put_link(struct dentry *dentry, struct nameidata *nd) 79 #endif 70 80 { 71 81 char *page = nd_get_link(nd); -
trunk/src/VBox/Additions/linux/sharedfolders/utils.c
r76733 r76938 853 853 /* Each new shared folder map gets a new uint64_t identifier, 854 854 * allocated in sequence. We ASSUME the sequence will not wrap. */ 855 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26) 855 856 static uint64_t s_u64Sequence = 0; 856 857 uint64_t u64CurrentSequence = ASMAtomicIncU64(&s_u64Sequence); 858 #endif 857 859 858 860 sf_g->bdi.ra_pages = 0; /* No readahead */ -
trunk/src/VBox/Installer/linux/uninstall.sh
r76611 r76938 66 66 rm -f \ 67 67 /usr/bin/VirtualBox \ 68 /usr/bin/VirtualBoxVM \ 68 69 /usr/bin/VBoxManage \ 69 70 /usr/bin/VBoxSDL \ … … 82 83 /usr/bin/VBoxTunctl \ 83 84 /usr/bin/virtualbox \ 85 /usr/bin/virtualboxvm \ 84 86 /usr/share/pixmaps/VBox.png \ 85 87 /usr/share/pixmaps/virtualbox.png \ -
trunk/src/VBox/Installer/solaris/makepackage.sh
r76818 r76938 127 127 create_hardlink VBoxTestOGL 128 128 create_hardlink VirtualBox 129 create_hardlink VirtualBoxVM 129 130 create_hardlink vbox-img 130 131 create_hardlink VBoxHeadless -
trunk/src/VBox/ValidationKit/testdriver/base.py
r76553 r76938 831 831 if self.sHost == 'darwin': self.sResourcePath = "/Volumes/testrsrc/"; 832 832 elif self.sHost == 'freebsd': self.sResourcePath = "/mnt/testrsrc/"; 833 elif self.sHost == 'linux': self.sResourcePath = "/mnt/testrsrc/"; 833 elif self.sHost == 'linux': 834 self.sResourcePath = "/mnt/testrsrc/"; 835 if not os.path.isdir(self.sResourcePath) and utils.isRunningFromCheckout(): 836 self.sResourcePath = os.path.join(g_ksValidationKitDir, os.pardir, os.pardir, os.pardir, "testrsrc"); 834 837 elif self.sHost == 'os2': self.sResourcePath = "T:/"; 835 838 elif self.sHost == 'solaris': self.sResourcePath = "/mnt/testrsrc/"; 836 839 elif self.sHost == 'win': self.sResourcePath = "T:/"; 837 840 else: raise GenError('unknown host OS "%s"' % (self.sHost)); 841 assert os.path.isdir(self.sResourcePath), 'Resource path not found: self.sResourcePath="%s"' % (self.sResourcePath); 838 842 839 843 # PID file for the testdriver. -
trunk/src/VBox/ValidationKit/tests/additions/tdAddLinux1.py
r72536 r76938 4 4 5 5 """ 6 VirtualBox Validation Kit - OS/2install tests.6 VirtualBox Validation Kit - Linux Additions install tests. 7 7 """ 8 8 … … 49 49 50 50 51 class tdGuestOsInst Os2(vbox.TestDriver):51 class tdGuestOsInstLinux(vbox.TestDriver): 52 52 """ 53 OS/2 unattended installation.53 Linux unattended installation with Additions. 54 54 55 55 Scenario: 56 56 - Create new VM that corresponds specified installation ISO image 57 57 - Create HDD that corresponds to OS type that will be installed 58 - Set VM boot order: HDD, Floppy, ISO 59 - Start VM: sinse there is no OS installed on HDD, VM will booted from floppy 60 - After first reboot VM will continue installation from HDD automatically 61 - Wait for incomming TCP connection (guest should initiate such a 62 connection in case installation has been completed successfully) 58 - Wait for the installed Additions to write their message to the 59 machine log file. 63 60 """ 64 65 ksSataController = 'SATA Controller'66 ksIdeController = 'IDE Controller'67 68 # VM parameters required to run ISO image.69 # Format: (cBytesHdd, sKind)70 kaoVmParams = {71 'acp2-txs.iso': ( 2*1024*1024*1024, 'OS2', ksIdeController ),72 'mcp2-txs.iso': ( 2*1024*1024*1024, 'OS2', ksIdeController ),73 }74 61 75 62 def __init__(self): … … 83 70 self.sIso = None 84 71 self.sFloppy = None 85 self.sIsoPathBase = os.path.join(self.sResourcePath, ' 4.2', 'isos')72 self.sIsoPathBase = os.path.join(self.sResourcePath, '5.3', 'isos') 86 73 self.fEnableIOAPIC = True 87 74 self.cCpus = 1 … … 89 76 self.fEnablePAE = False 90 77 self.asExtraData = [] 78 self.oUnattended = None 91 79 92 80 # … … 145 133 146 134 assert self.sIso is not None 147 if self.sIso not in self.kaoVmParams: 148 reporter.log('Error: unknown ISO image specified: %s' % self.sIso) 149 return False 150 151 # Get VM params specific to ISO image 152 cBytesHdd, sKind, sController = self.kaoVmParams[self.sIso] 135 136 # Create unattended object 137 oUnattended = self.oVBox.createUnattendedInstaller() 138 self.sIso = os.path.join(self.sIsoPathBase, self.sIso) 139 assert os.path.isfile(self.sIso) 140 oUnattended.isoPath = self.sIso 141 oUnattended.user = "vbox" 142 oUnattended.password = "password" 143 oUnattended.installGuestAdditions = True 144 try: 145 oUnattended.detectIsoOS() 146 except: 147 pass 148 sOSTypeId = oUnattended.detectedOSTypeId 149 sOSVersion = oUnattended.detectedOSVersion 150 oGuestOSType = self.oVBox.getGuestOSType(sOSTypeId) 151 assert oGuestOSType.familyId == "Linux" 153 152 154 153 # Create VM itself 155 154 eNic0AttachType = vboxcon.NetworkAttachmentType_NAT 156 self.sIso = os.path.join(self.sIsoPathBase, self.sIso) 157 assert os.path.isfile(self.sIso) 158 159 self.sFloppy = os.path.join(self.sIsoPathBase, os.path.splitext(self.sIso)[0] + '.img') 160 161 oVM = self.createTestVM(self.sVmName, 1, sKind = sKind, sDvdImage = self.sIso, cCpus = self.cCpus, 162 sFloppy = self.sFloppy, eNic0AttachType = eNic0AttachType) 155 156 oVM = self.createTestVM(self.sVmName, 1, sKind = oGuestOSType.id, sDvdImage = None, cCpus = self.cCpus, 157 eNic0AttachType = eNic0AttachType, sNic0MacAddr = None) 163 158 assert oVM is not None 164 159 … … 168 163 sHddPath = os.path.join(self.sScratchPath, self.sHddName) 169 164 fRc = True 170 if sController == self.ksSataController: 171 fRc = oSession.setStorageControllerType(vboxcon.StorageControllerType_IntelAhci, sController) 172 173 fRc = fRc and oSession.createAndAttachHd(sHddPath, cb = cBytesHdd, 165 if sOSTypeId == "RedHat" and sOSVersion.startswith("3."): 166 sController = 'IDE Controller' 167 fRc = fRc and oSession.setStorageControllerPortCount(sController, 1) 168 else: 169 sController = 'SATA Controller' 170 fRc = oSession.setStorageControllerType(vboxcon.StorageControllerType_PIIX4, sController) 171 172 fRc = fRc and oSession.createAndAttachHd(sHddPath, cb = 12 * 1024 * 1024 * 1024, 174 173 sController = sController, iPort = 0, fImmutable=False) 175 if sController == self.ksSataController:176 fRc = fRc and oSession.setStorageControllerPortCount(sController, 1)177 178 # Set proper boot order179 fRc = fRc and oSession.setBootOrder(1, vboxcon.DeviceType_HardDisk)180 fRc = fRc and oSession.setBootOrder(2, vboxcon.DeviceType_Floppy)181 174 182 175 # Enable HW virt … … 208 201 fRc = oSession.close() 209 202 assert fRc is True 203 204 # Set the machine on the unattended object 205 oUnattended.machine = oVM 206 207 # Additional set-up 208 oUnattended.prepare() 209 oUnattended.constructMedia() 210 oUnattended.reconfigureVM() 211 self.oUnattended = oUnattended 210 212 211 213 return vbox.TestDriver.actionConfig(self) … … 245 247 246 248 if __name__ == '__main__': 247 sys.exit(tdGuestOsInst Os2().main(sys.argv));248 249 sys.exit(tdGuestOsInstLinux().main(sys.argv)); 250
Note:
See TracChangeset
for help on using the changeset viewer.

