qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 0/6] [AHCI]resend all patches to add ahci suppor


From: Alexander Graf
Subject: [Qemu-devel] Re: [PATCH 0/6] [AHCI]resend all patches to add ahci support into qemu
Date: Tue, 11 May 2010 01:33:13 +0200

On 11.05.2010, at 01:19, QiaoChong wrote:

> 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

Alright, I put the set into the git repo at:

git://repo.or.cz/qemu/ahci.git
branch "ahci"

Please keep in mind that this is a pure working branch. For upstream submission 
we will need to clean it up completely. But this way we can stick to working 
code and improve it there.


Alex




reply via email to

[Prev in Thread] Current Thread [Next in Thread]