From: Simon Horman Subject: Re: Re: [PATCH] ioemu: Cleanup the code of PCI passthrough. Date: Mon, 23 Feb 2009 16:56:15 +1100 Message-ID: <20090223055612.GA6457@verge.net.au> References: <18845.37702.133643.770177@mariner.uk.xensource.com> <20090220134809.DC68.27C06F64@necst.nec.co.jp> <20090223103532.84CE.27C06F64@necst.nec.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20090223103532.84CE.27C06F64@necst.nec.co.jp> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Yuji Shimada Cc: "xen-devel@lists.xensource.com" , Ian Jackson List-Id: xen-devel@lists.xenproject.org On Mon, Feb 23, 2009 at 10:40:22AM +0900, Yuji Shimada wrote: > > The patch cleanups the code of PCI passthrough. > > - Use LIST_FOREACH(). Don't use lh_first, le_next directly. > - Use pci_{read, write}_block instead of "switch(len) case [124] > pci_{read, write}_{byte, word, long}();". > - Eliminate duplicate codes using PT_MEARGE_VALUE macro. > - Define PCI_ERR_* macro in pass-through.h if libpci is old. > - Remove the unreasonable loop from pt_aer_reg_{save,restore}. > - Enable pt_aer_reg_{save,restore}, even if libpci is old. > - Fix ro_mask and remove unnecessary pt_xxx_reg_write functions. > - Add "Error:" or "Warning:" to messages. > - Remove verbose messages. > > Thanks, > -- > Yuji Shimada. > > > Signed-off-by: Yuji Shimada Tested-by: Simon Horman -- Simon Horman VA Linux Systems Japan K.K., Sydney, Australia Satellite Office H: www.vergenet.net/~horms/ W: www.valinux.co.jp/en