From: Ian Jackson Subject: Re: [PATCH][ioemu] fix PCI bar mapping Date: Thu, 7 May 2009 12:12:12 +0100 Message-ID: <18946.49676.482876.244423@mariner.uk.xensource.com> References: <20090507163136.983F.27C06F64@necst.nec.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20090507163136.983F.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: "Zhao, Yu" , "Ke, Liping" , xen-devel , "Cui, Dexuan" List-Id: xen-devel@lists.xenproject.org Yuji Shimada writes ("Re: [PATCH][ioemu] fix PCI bar mapping"): > pt_pci_read_config should not be used to read configuration registers. > pt_pci_read_config emulates access to read the registers from guest > software. Many functions which are not relevant are executed in > pt_pci_read_config. So side effects may occur. Instead, you can use > pc_read_word of libpci just to read configuration registers. Should we be reverting Cui's patch and fix the problem some other way ? > Or, there is another approach. It is that you remove emu_mask from > writable_mask in pt_cmd_reg_write. Then you can get the proper value > from reg_entry->data. It would be nice to get this sorted for the 3.4 release, which is imminent ... Ian.