Below is the implementation of VMWare PVSCSI device and command line parameters to configure vendor name and product name for SCSI storage are implemented. Latter is needed to make PVSCSI storage devices look exactly as on VMWare hypervisors.
With this and VMWARE3 patches V2V migration problem for VMWare images should be solved relatively easy. PVSCSI implementation is based on Paolo Bonzini code sumbitted some time ago but never applied. See commit messages and file headers for details. Implementation supports of all the device features. Code was tested on different OSes: Fedora 15 Ubuntu 10.4 Centos 6.2 Windows 2008R2 Windows 2008 64bit Windows 2008 32bit Windows 2003 64bit Windows 2003 32bit Changes in V2: Various fixes and beautification as suggested by Paolo Bonzini Reported-by: Paolo Bonzini <pbonz...@redhat.com> Dmitry Fleytman (4): Utility function strpadcpy() added Vendor name and product name parameters for SCSI devices Options "vendor_name" and "product_name" added for SCSI disks. Header with various utility functions shared by VMWARE SCSI and network devices PVCSI paravirtualized device implementation Bus type "pvscsi" added. Makefile.objs | 1 + cutils.c | 7 + default-configs/pci.mak | 1 + docs/specs/pvscsi-spec.txt | 92 ++++ hw/pci.h | 1 + hw/pvscsi.c | 1239 ++++++++++++++++++++++++++++++++++++++++++++ hw/pvscsi.h | 442 ++++++++++++++++ hw/scsi-disk.c | 32 +- hw/vmware_utils.h | 126 +++++ qemu-common.h | 1 + 10 files changed, 1934 insertions(+), 8 deletions(-) create mode 100644 docs/specs/pvscsi-spec.txt create mode 100644 hw/pvscsi.c create mode 100644 hw/pvscsi.h create mode 100644 hw/vmware_utils.h -- 1.7.7.6