Just upgraded to VMWare Workstation 7.1.2 this morning and ran into nothing but problems. Here's the fixes.
This isn't anything I came up with on my own but found here:
linuxinsight.com article
# cd /usr/lib/vmware/modules/source/
# cp -a vmmon.tar vmmon-orig.tar
# tar xf vmmon.tar
# cd vmmon-only/linux/
# nano /root/vmmon.patch
Found the patch here
Paste the following into /root/vmmon.patch
diff --git a/vmmon-only/linux/iommu.c b/vmmon-only/linux/iommu.c
index a279a26..9de467b 100644
--- /usr/lib/vmware/modules/source/vmmon-only/linux/iommu.c
+++ /usr/lib/vmware/modules/source/vmmon-only/linux/iommu.c
@@ -153,7 +153,7 @@ IOMMU_SetupMMU(VMLinux *vmLinux, // IN: virtual machine descriptor
map_to = PPN_2_PA(mpn);
map_prot = IOMMU_READ | IOMMU_WRITE;
}
- if ((status = iommu_map_range(vmLinux->iommuDomain,
+ if ((status = iommu_map(vmLinux->iommuDomain,
PPN_2_PA(ppn),
map_to, PAGE_SIZE, map_prot))) {
printk(KERN_ERR "%s: IOMMU Mapping of PPN 0x%x -> MPN 0x%x "
@@ -400,7 +400,7 @@ IOMMU_VMCleanup(VMLinux *vmLinux) // IN: virtual machine descriptor/* Relinquish the IOMMU domain used by this VM. */
for (ppn = 0; ppn < vmLinux->numPages; ppn++) {
- iommu_unmap_range(vmLinux->iommuDomain, PPN_2_PA(ppn), PAGE_SIZE);
+ iommu_unmap(vmLinux->iommuDomain, PPN_2_PA(ppn), PAGE_SIZE);
}
if (vmLinux->iommuDomain) {
iommu_domain_free(vmLinux->iommuDomain);
# patch -p0 < /root/vmmon.patch
# cd ../../
# tar cf vmmon.tar vmmon-only
# rm -rf vmmon-only
Now we need to do the same for vsock
Download the vsock patch from the linuxinsight posting to /root/vsock.patch
# cd /root
# wget http://www.linuxinsight.com/files/vsock.patch
# nano vsock.patch
# cd /usr/lib/vmware/modules/source/
# cp -a vsock.tar vsoc-orig.tar
# tar xf vsock.tar
# cd vsock-only/linux
# patch -p0 < /root/vsock.patch
patching file af_vsock.c
Hunk #1 succeeded at 3230 (offset 9 lines).
Hunk #2 succeeded at 3253 (offset 9 lines).
Hunk #3 succeeded at 3265 (offset 9 lines).
Hunk #4 succeeded at 3325 (offset 9 lines).
Hunk #5 succeeded at 3341 (offset 9 lines).
Hunk #6 succeeded at 3375 (offset 9 lines).
Hunk #7 succeeded at 3473 (offset 9 lines).
Hunk #8 succeeded at 4113 (offset 9 lines).
Hunk #9 succeeded at 4150 (offset 9 lines).
Hunk #10 succeeded at 4203 (offset 9 lines).
Hunk #11 succeeded at 4437 (offset 9 lines).
Hunk #12 succeeded at 4477 (offset 9 lines).
Hunk #13 succeeded at 4543 (offset 9 lines).
# cd ../..
# tar cf vsock.tar vsock-only
# rm -rf vsock-only
# vmware-modconfig --console --install-all

Comments