WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: [PATCH 2/2] ioemu: make management of PCI D-states b

To: Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: [PATCH 2/2] ioemu: make management of PCI D-states by guest optional
From: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
Date: Wed, 11 Mar 2009 17:57:28 +0900
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Delivery-date: Wed, 11 Mar 2009 01:58:22 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20090311171304.973D.27C06F64@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <7kfxhrfcmv.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxx> <7kd4cvfche.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxx> <20090311171304.973D.27C06F64@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel