From: "Sebastian Herbszt" <herbszt@gmx.de>
To: Alexander Graf <agraf@suse.de>, QiaoChong <qiaochong@loongson.cn>
Cc: joro@8bytes.org, qemu-devel@nongnu.org, elek.roland@gmail.com
Subject: [Qemu-devel] Re: [PATCH 0/1] [RFC][AHCI] add cdrom support for ahci.
Date: Tue, 11 May 2010 00:13:10 +0200 [thread overview]
Message-ID: <732842FC0B2147898A4875AF03600054@FSCPC> (raw)
In-Reply-To: <EE113751-084F-4AF9-B5AB-FDFE43F06B9B@suse.de>
Alexander Graf wrote:
> Hi Chong,
>
> On 10.05.2010, at 13:55, 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
>
> Thanks for improving the patch, but I have some nitpicks considering on how to process here.
>
> For starters, this patch is incremental to the previous one. Since the previous patch did not get applied to qemu, it
> doesn't make sense to send an incremental patch. Please send the full patchset but bump up > the version in that case.
> You will find many examples for that on the mailing list. In most cases it also makes sense to rethink the splitting
> between patches.
The problem of incremental patches will be a non issue as soon as the git tree is available.
Sebastian
next prev parent reply other threads:[~2010-05-10 22:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=732842FC0B2147898A4875AF03600054@FSCPC \
--to=herbszt@gmx.de \
--cc=agraf@suse.de \
--cc=elek.roland@gmail.com \
--cc=joro@8bytes.org \
--cc=qemu-devel@nongnu.org \
--cc=qiaochong@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).