From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [PATCH 2/4] Add 64-bit Block Move support (Direct & Table Indirect) Date: Wed, 10 Dec 2008 09:39:34 -0600 Message-ID: <493FE2B6.8030007@codemonkey.ws> References: <1228759670-31113-1-git-send-email-ryanh@us.ibm.com> <1228759670-31113-3-git-send-email-ryanh@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org To: Ryan Harper Return-path: Received: from yw-out-2324.google.com ([74.125.46.29]:11255 "EHLO yw-out-2324.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753920AbYLJPjj (ORCPT ); Wed, 10 Dec 2008 10:39:39 -0500 Received: by yw-out-2324.google.com with SMTP id 9so259998ywe.1 for ; Wed, 10 Dec 2008 07:39:38 -0800 (PST) In-Reply-To: <1228759670-31113-3-git-send-email-ryanh@us.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: Ryan Harper wrote: > This patch adds support for 64-bit Block Move instructions. There are multiple > modes for 64-bit Block moves, direct, indirect, and table indirect. This patch > implements Direct and Table indirect moves which are needed by 64-bit windows > and SYM_CONF_DMA_ADDRESSING_MODE=2 for the Linux sym53c8xx_2 driver respectively. > > Two helper functions are included to check which mode the guest is using. For > 64-bit direct moves, we fetch a 3rd DWORD and store the value in the DBMS > register. For Table Indirect moves, we look into the table for which register > contains the upper 32-bits of the 64-bit address. This selector value indicates > which register to pull the value from and into dnad64 register. > > Finally, lsi_do_dma is updated to use the approriate register to build a 64-bit > DMA address if required. > > With this patch, Windows XP x64, 2003 SP2 x64, can now install to scsi devices. > Linux SYM_CONF_DMA_ADDRESSING_MODE=2 need a quirk fixup in Patch 4 to function > properly. > > Signed-off-by: Ryan Harper Applied. Thanks. Regards, Anthony Liguori