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

[Xen-devel] [PATCH 0/2] Enable guest OS to program D0-D3hot states of an

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, Ian Jackson <ian.jackson@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 0/2] Enable guest OS to program D0-D3hot states of an assigned device.
From: Yuji Shimada <shimada-yxb@xxxxxxxxxxxxxxx>
Date: Tue, 03 Feb 2009 18:49:24 +0900
Cc:
Delivery-date: Tue, 03 Feb 2009 01:50:01 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
This series of patches enables guest OS to program D0-D3hot states of
an assigned device.

The basic concept is pass-through PowerState field in Power Management
Control/Status register. When guest OS programs PowerState field,
actual device will be programmed.

Some devices perform an internal reset upon transition from D3hot
state to D0 state. No_Soft_Reset bit in Power Management
Control/Status register indicates whether an internal reset is
performed or not. When the bit is 0, an internal reset is
performed. When the bit is 1, an internal reset is not performed. When
No_Soft_Reset bit is 0, the patches restore configuration registers,
and emulate an internal reset.

Some of emulated registers which guest OS can't access are restored,
because they need to be configured at system-level. For example, BARs
are restored to values assigned by dom0 linux. On the other hand, the
pass-through registers which guest OS can access are not restored,
because guest OS expects them to be uninitialized.

Emulated values of emulated registers are re-initialized to emulate an
internal reset. For example, Link Control register's emulated value is
set to the initial value(0x0000). To emulate an internal reset, MSI
and MSI-X are disabled. Memory or I/O resources are unmapped.

  [PATCH 1/2] libxc: Add xc_domain_unbind_msi_irq
  [PATCH 2/2] ioemu: Enable guest OS to program D0-D3hot states of an
              assigned device

Thanks,
--
Yuji Shimada

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