On Tue, Dec 03, 2013 at 01:44:45PM -0800, Matthew Dempsky wrote:
> On Tue, Dec 3, 2013 at 1:35 PM, Jiri B <ji...@devio.us> wrote:
> > Aha, big brother grows up :-) I will try to test virtio-scsi on RHEVM
> > which also exposes this to VMs.
> 
> Cool, let me know if you run into any issues.  I'm sure there's still
> some bugs in the driver so I wouldn't put it into production yet, but
> it should at least let you mount a virtio-scsi disk.

I have problem to compile it :/

cc  -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wno-main 
-Wno-uninitialized -Wno-format  -Wstack-larger-than-2047 -mcmodel=kernel 
-mno-red-zone -mno-sse2 -mno-sse -mno-3dnow  -mno-mmx -msoft-float 
-fno-omit-frame-pointer -fno-builtin-printf -fno-builtin-snprintf  
-fno-builtin-vsnprintf -fno-builtin-log  -fno-builtin-log2 -fno-builtin-malloc 
-fno-pie -O2 -pipe -nostdinc -I../../../.. -I. -I../../../../arch -DDDB 
-DDIAGNOSTIC -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO 
-DSYSVMSG -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DCOMPAT_43 -DLKM -DFFS -DFFS2 
-DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER 
-DCD9660 -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_SACK -DTCP_ECN 
-DTCP_SIGNATURE -DINET -DALTQ -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE 
-DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DAPERTURE -DMTRR -DNTFS 
-DHIBERNATE -DPCIVERBOSE -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL 
-DWSDISPLAY_COMPAT_RAWKBD -DWSDIS!
 PLAY_DEFAULTSCREENS="6" -DWSDISPLAY_COMPAT_PCVT -DX86EMU -DONEWIREVERBOSE 
-DMAXUSERS=80 -D_KERNEL -MD -MP  -c ../../../../dev/pci/vioscsi.c
In file included from ../../../../dev/pci/vioscsi.c:25:
../../../../dev/pci/vioscsireg.h:125: error: redefinition of 'struct 
virtio_scsi_req_hdr'
../../../../dev/pci/vioscsireg.h:136: error: redefinition of 'struct 
virtio_scsi_res_hdr'
../../../../dev/pci/vioscsireg.h:197: error: redefinition of 'struct 
virtio_scsi_req_hdr'
../../../../dev/pci/vioscsireg.h:208: error: redefinition of 'struct 
virtio_scsi_res_hdr'
In file included from ../../../../dev/pci/vioscsi.c:457:
../../../../dev/pci/vioscsireg.h:53: error: redefinition of 'struct 
virtio_scsi_req_hdr'
../../../../dev/pci/vioscsireg.h:64: error: redefinition of 'struct 
virtio_scsi_res_hdr'
../../../../dev/pci/vioscsireg.h:125: error: redefinition of 'struct 
virtio_scsi_req_hdr'
../../../../dev/pci/vioscsireg.h:136: error: redefinition of 'struct 
virtio_scsi_res_hdr'
../../../../dev/pci/vioscsireg.h:197: error: redefinition of 'struct 
virtio_scsi_req_hdr'
../../../../dev/pci/vioscsireg.h:208: error: redefinition of 'struct 
virtio_scsi_res_hdr'
../../../../dev/pci/vioscsi.c:463: error: redeclaration of enumerator 'debug'
../../../../dev/pci/vioscsi.c:31: error: previous definition of 'debug' was here
../../../../dev/pci/vioscsi.c:465: error: redefinition of 'struct vioscsi_req'
../../../../dev/pci/vioscsi.c:473: error: redefinition of 'struct vioscsi_softc'
../../../../dev/pci/vioscsi.c:499: error: redefinition of 'vioscsi_ca'
../../../../dev/pci/vioscsi.c:67: error: previous definition of 'vioscsi_ca' 
was here
../../../../dev/pci/vioscsi.c:505: error: redefinition of 'vioscsi_cd'
../../../../dev/pci/vioscsi.c:73: error: previous definition of 'vioscsi_cd' 
was here
../../../../dev/pci/vioscsi.c:511: error: redefinition of 'vioscsi_switch'
../../../../dev/pci/vioscsi.c:79: error: previous definition of 
'vioscsi_switch' was here
../../../../dev/pci/vioscsi.c:516: error: redefinition of 'vioscsi_vq_names'
../../../../dev/pci/vioscsi.c:84: error: previous definition of 
'vioscsi_vq_names' was here
../../../../dev/pci/vioscsi.c:524: error: redefinition of 'vioscsi_match'
../../../../dev/pci/vioscsi.c:92: error: previous definition of 'vioscsi_match' 
was here
../../../../dev/pci/vioscsi.c:534: error: redefinition of 'vioscsi_attach'
../../../../dev/pci/vioscsi.c:102: error: previous definition of 
'vioscsi_attach' was here
../../../../dev/pci/vioscsi.c:598: error: redefinition of 'vioscsi_scsi_cmd'
../../../../dev/pci/vioscsi.c:166: error: previous definition of 
'vioscsi_scsi_cmd' was here
../../../../dev/pci/vioscsi.c:706: error: redefinition of 'vioscsi_req_done'
../../../../dev/pci/vioscsi.c:274: error: previous definition of 
'vioscsi_req_done' was here
../../../../dev/pci/vioscsi.c:745: error: redefinition of 'vioscsi_vq_done'
../../../../dev/pci/vioscsi.c:313: error: previous definition of 
'vioscsi_vq_done' was here
../../../../dev/pci/vioscsi.c:771: error: redefinition of 'vioscsi_req_get'
../../../../dev/pci/vioscsi.c:339: error: previous definition of 
'vioscsi_req_get' was here
../../../../dev/pci/vioscsi.c:821: error: redefinition of 'vioscsi_req_put'
../../../../dev/pci/vioscsi.c:389: error: previous definition of 
'vioscsi_req_put' was here
../../../../dev/pci/vioscsi.c:841: error: redefinition of 'vioscsi_alloc_reqs'
../../../../dev/pci/vioscsi.c:409: error: previous definition of 
'vioscsi_alloc_reqs' was here
In file included from ../../../../dev/pci/vioscsi.c:889:
../../../../dev/pci/vioscsireg.h:53: error: redefinition of 'struct 
virtio_scsi_req_hdr'
../../../../dev/pci/vioscsireg.h:64: error: redefinition of 'struct 
virtio_scsi_res_hdr'
../../../../dev/pci/vioscsireg.h:125: error: redefinition of 'struct 
virtio_scsi_req_hdr'
../../../../dev/pci/vioscsireg.h:136: error: redefinition of 'struct 
virtio_scsi_res_hdr'
../../../../dev/pci/vioscsireg.h:197: error: redefinition of 'struct 
virtio_scsi_req_hdr'
../../../../dev/pci/vioscsireg.h:208: error: redefinition of 'struct 
virtio_scsi_res_hdr'
../../../../dev/pci/vioscsi.c:895: error: redeclaration of enumerator 'debug'
../../../../dev/pci/vioscsi.c:463: error: previous definition of 'debug' was 
here
../../../../dev/pci/vioscsi.c:897: error: redefinition of 'struct vioscsi_req'
../../../../dev/pci/vioscsi.c:905: error: redefinition of 'struct vioscsi_softc'
../../../../dev/pci/vioscsi.c:931: error: redefinition of 'vioscsi_ca'
../../../../dev/pci/vioscsi.c:67: error: previous definition of 'vioscsi_ca' 
was here
../../../../dev/pci/vioscsi.c:937: error: redefinition of 'vioscsi_cd'
../../../../dev/pci/vioscsi.c:73: error: previous definition of 'vioscsi_cd' 
was here
../../../../dev/pci/vioscsi.c:943: error: redefinition of 'vioscsi_switch'
../../../../dev/pci/vioscsi.c:79: error: previous definition of 
'vioscsi_switch' was here
../../../../dev/pci/vioscsi.c:948: error: redefinition of 'vioscsi_vq_names'
../../../../dev/pci/vioscsi.c:84: error: previous definition of 
'vioscsi_vq_names' was here
../../../../dev/pci/vioscsi.c:956: error: redefinition of 'vioscsi_match'
../../../../dev/pci/vioscsi.c:92: error: previous definition of 'vioscsi_match' 
was here
../../../../dev/pci/vioscsi.c:966: error: redefinition of 'vioscsi_attach'
../../../../dev/pci/vioscsi.c:102: error: previous definition of 
'vioscsi_attach' was here
../../../../dev/pci/vioscsi.c:1030: error: redefinition of 'vioscsi_scsi_cmd'
../../../../dev/pci/vioscsi.c:166: error: previous definition of 
'vioscsi_scsi_cmd' was here
../../../../dev/pci/vioscsi.c:1138: error: redefinition of 'vioscsi_req_done'
../../../../dev/pci/vioscsi.c:274: error: previous definition of 
'vioscsi_req_done' was here
../../../../dev/pci/vioscsi.c:1177: error: redefinition of 'vioscsi_vq_done'
../../../../dev/pci/vioscsi.c:313: error: previous definition of 
'vioscsi_vq_done' was here
../../../../dev/pci/vioscsi.c:1203: error: redefinition of 'vioscsi_req_get'
../../../../dev/pci/vioscsi.c:339: error: previous definition of 
'vioscsi_req_get' was here
../../../../dev/pci/vioscsi.c:1253: error: redefinition of 'vioscsi_req_put'
../../../../dev/pci/vioscsi.c:389: error: previous definition of 
'vioscsi_req_put' was here
../../../../dev/pci/vioscsi.c:1273: error: redefinition of 'vioscsi_alloc_reqs'
../../../../dev/pci/vioscsi.c:409: error: previous definition of 
'vioscsi_alloc_reqs' was here
*** Error 1 in /usr/src/sys/arch/amd64/compile/GENERIC (Makefile:920 
'vioscsi.o')

jirib

Reply via email to