From: Kouya Shimura Subject: Re: Re: [PATCH 2/2] ioemu: make management of PCI D-states by guest optional Date: Wed, 11 Mar 2009 17:57:28 +0900 Message-ID: <7kiqmgtp1j.fsf@pingu.sky.yk.fujitsu.co.jp> References: <7kfxhrfcmv.fsf@pingu.sky.yk.fujitsu.co.jp> <7kd4cvfche.fsf@pingu.sky.yk.fujitsu.co.jp> <20090311171304.973D.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: <20090311171304.973D.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 Yuji Shimada writes: > Why are Data_Scale field and Data_Select field emulated? No reason, I intended that emu_mask and ro_mask become the same as before your PCI D-state patch. > I think we can pass-through them as follows. > > On the other hand, No_Soft_Reset field needs to be emulated and fixed > to 1. The reason is PowerState field is emulated, that means guest > software can change power state, but actual power state of device is > not changed. So internal reset never occurs. > > As a result, the code will be as the following. > > read: > valid_emu_mask |= PCI_PM_CTRL_STATE_MASK | > PCI_PM_CTRL_NO_SOFT_RESET; > > write: > uint16_t emu_mask = reg->emu_mask | PCI_PM_CTRL_STATE_MASK | > PCI_PM_CTRL_NO_SOFT_RESET; > uint16_t ro_mask = reg->ro_mask; Thank you for pointing out. I'll fix it. Thanks, Kouya