Hi Paolo, List, I see you are very active in the MMC emulation for qemu. I have written several MMC emulators, the third of which (in STGT) is open source.
I did the MMC emulation in STGT, (see README.mmc for how to use it as "blank burnable media") Do you have DVD+/-R + morhping implemented yet? STGT has a feature where once an initiator has finished "burning" a new image to a "blank" disk where STGT automagically morphs the LUN from being profile:dvd+/-r to be profile:dvd-rom to indicate it is no longer a blank burnable disk but a readonly disk containing an iso. Would that be of interest to you or the community? It is a few thousand lines of semi-trivial code to port but nothing that hairy. Im happy to port it to qemu if there is need/desire/interest for it. There was a bug in STGT that made it impossible to build a virtual jukebox with writeable/burnable media for about 6 months and no one noticed, so maybe not too many people use such features :-( regards ronnie sahlberg On Thu, Jan 26, 2012 at 7:09 PM, Paolo Bonzini <pbonz...@redhat.com> wrote: > On 01/25/2012 09:13 PM, Artyom Tarasenko wrote: >> >> On 1/25/12, Paolo Bonzini<pbonz...@redhat.com> wrote: >>> >>> On 01/25/2012 05:34 PM, Artyom Tarasenko wrote: >>>> >>>> This patch produces the following error when booting Solaris/SPARC: >>>> >>>> WARNING: >>>> /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000 >>>> (esp0): >>>> data transfer overrun: current esp state: >>>> esp: State=DATA Last State=DATA_DONE >>>> esp: Latched stat=0x91<IPND,XZERO,IO> intr=0x10<BUS> fifo >>>> 0x0 >>>> esp: last msg out: IDENTIFY; last msg in: COMMAND COMPLETE >>>> esp: DMA csr=0xa4240030<FLSH,INTEN> >>>> esp: addr=fc005860 dmacnt=0 last=fc005858 last_cnt=8 >>>> esp: Cmd dump for Target 6 Lun 0: >>>> esp: cdblen=10, cdb=[ 0x46 0x2 0x0 0x0 0x0 0x0 0x0 0x0 0x8 >>>> 0x0 >>>> ] >>>> esp: pkt_state=0xf<XFER,CMD,SEL,ARB> pkt_flags=0x10000 >>>> pkt_statistics=0x0 >>>> esp: cmd_flags=0x462 cmd_timeout=60 >>>> >>>> Particularly it seems that Solaris is not happy with respose length >>>>> >>>>> 8. Any idea, why? > > > The response length is not 8, it is 40; but Solaris only expected 8 (see the > CDB in the error dump). > > >>>> $ sparc-softmmu/qemu-system-sparc -bios ~/ss5-170.bin -m 32 -nographic >>>> -drive if=scsi,unit=6,media=cdrom,file=~/Solaris9cd1.iso >>> >>> >>> From a quick look, it's the same bug that was reported recently on >>> INQUIRY commands. >> >> >> If you need I can provide more input. > > > You can test http://article.gmane.org/gmane.comp.emulators.qemu/133434 if > you have time. > > Paolo >