From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8bXG-0004w7-AK for qemu-devel@nongnu.org; Sun, 02 May 2010 11:56:50 -0400 Received: from [140.186.70.92] (port=43395 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8bXF-0004vU-1l for qemu-devel@nongnu.org; Sun, 02 May 2010 11:56:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8bXD-0000uA-9u for qemu-devel@nongnu.org; Sun, 02 May 2010 11:56:48 -0400 Received: from fg-out-1718.google.com ([72.14.220.159]:50878) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8bXD-0000ts-5F for qemu-devel@nongnu.org; Sun, 02 May 2010 11:56:47 -0400 Received: by fg-out-1718.google.com with SMTP id 16so398809fgg.10 for ; Sun, 02 May 2010 08:56:45 -0700 (PDT) From: Elek Roland In-Reply-To: References: <4BDAD1A3.1040906@loongson.cn> <62A72125-4FCF-4B72-82E5-24840460C3D2@suse.de> <4BDD7596.6080207@loongson.cn> Content-Type: text/plain; charset="UTF-8" Date: Sun, 02 May 2010 17:56:37 +0200 Message-ID: <1272815797.1611.13.camel@vibrance> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] Re: [RFC] [PATCH] add ahci support into qemu List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sebastian Herbszt Cc: =?UTF-8?Q?=E4=B9=94=E5=B4=87?= , Joerg Roedel , qemu-devel Developers , Alexander Graf Hi all, I am the GSoC student working on the project. I haven't tried the patch yet, but I've read the code. It could use general cleanup and a lot of development indeed, but otherwise it looks like a good base to build complete support on so far. I'm going to try the patch in practice as soon as I finish my university project. (It's due today.) Chong, I'd be happy to stay in touch with you. I'm going to work on this in the summer full time. Regards, Roland On v, 2010-05-02 at 17:36 +0200, Sebastian Herbszt wrote: > Hi, > > 乔崇 wrote: > > Hi,Alexander Graf. > > > > I am very glad you noticed my patch about ahci.I love qemu just like I love linux.I wish I could do much more work on > > qemu development. > > > > I had cloned qemu from master branch,add my patch into it,and tested ahci on i386 softmmu. > > > > If anyone is interested on ahci,you can test my patch like this: > > > > git-clone -ls git://git.savannah.nongnu.org/qemu > > patch -p1 -i 0001-add-ahci-support-into-qemu-only-support-sata-disk.patch > > patch -p1 -i 0002-add-ahci-device-into-i386-pc-just-for-test.patch > > The last submission was missing the qemu "glue", but this one looks complete. Nonetheless the old one was working fine > enough. > > > ./configure --target-list=i386-softmmu > > make > > > > dd if=/dev/zero of=/tmp/disk bs=1M count=100 > > ./i386-softmmu/qemu -cdrom KNOPPIX_V6.0.1CD-2009-02-08-EN.iso -boot d -drive if=sd,file=/tmp/disk > > > > After linux boot,you will find a ahci device named sda. > > > > Now this patch only support sata disk. > > Most ahci registers and operations which are not necessary on linux are ignored. > > Now this patch support disk identify,dma read,dma write,ignore other opertions. > > Do you intent to work on this and complet the support? > There are also some minor changes needed like moving PCI_VENDOR_MYDEVICE > and PCI_PRODUCT_MYDEVICE to pci.h and others. > > Did you use the Intel document #301473 for reference? > > > By the way how you send patch to mail list? > > Try "git send-email". > > > Regards, > Sebastian >