qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/1] [RFC][AHCI] add cdrom support for ahci.
@ 2010-05-10 11:55 QiaoChong
  2010-05-10 11:55 ` [Qemu-devel] [PATCH 1/1] " QiaoChong
  2010-05-10 20:20 ` [Qemu-devel] Re: [PATCH 0/1] [RFC][AHCI] " Alexander Graf
  0 siblings, 2 replies; 8+ messages in thread
From: QiaoChong @ 2010-05-10 11:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: QiaoChong, joro, herbszt, agraf, elek.roland

When ahci init ,driver will send ATA_SRST command,ahci device report device type through port's sig register.
Ahci disk lookup change from IF_SD to IF_SCSI now,because IF_SD does not support cdrom media.
I just copy ide_atapi_cmd from hw/ide/core.c into hw/ahci.c,change a little,then the cdrom can be identified,and read by os.
If qemu can change dma_buf_prepare,dma_buf_rw,dma_buf_commit to a function pointer in BMDMAState,then I can rewrite three functions to support ahci's prtd,because it is different from ide's.

test a sata disk like this:
./i386-softmmu/qemu -cdrom KNOPPIX_V6.0.1CD-2009-02-08-EN.iso -drive if=scsi,file=/tmp/disk
test a sata cd like this:
./i386-softmmu/qemu -cdrom KNOPPIX_V6.0.1CD-2009-02-08-EN.iso -drive if=scsi,media=cdrom,file=KNOPPIX_V6.0.1CD-2009-02-08-EN.iso



QiaoChong (1):
  add cdrom support for ahci.

 hw/ahci.c |  425 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 422 insertions(+), 3 deletions(-)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-05-11 10:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-10 11:55 [Qemu-devel] [PATCH 0/1] [RFC][AHCI] add cdrom support for ahci QiaoChong
2010-05-10 11:55 ` [Qemu-devel] [PATCH 1/1] " QiaoChong
2010-05-10 20:20 ` [Qemu-devel] Re: [PATCH 0/1] [RFC][AHCI] " Alexander Graf
2010-05-10 22:13   ` Sebastian Herbszt
2010-05-10 22:28     ` Alexander Graf
2010-05-10 23:19     ` Alexander Graf
2010-05-11  9:25       ` Joerg Roedel
2010-05-11 10:16         ` Alexander Graf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).