From: Kouya Shimura Subject: [PATCH 0/2] passthrough: make management of PCI D-states by guest optional Date: Fri, 6 Mar 2009 14:23:20 +0900 Message-ID: <7kfxhrfcmv.fsf@pingu.sky.yk.fujitsu.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Yuji Shimada , Ian Jackson List-Id: xen-devel@lists.xenproject.org Hi, Using D3hot state of PCI devices in xen is not mature yet. I met domain destruction/creation troubles in some PCI cards since the PCI config registers can't be read with D3hot state. xend.log is attached. This patch set makes the management of PCI D-states by guest optional. The default is "pci_power_mgmt=0" which disables the guest OS from managing D-states because it would be better to avoid the trouble than advantage of low power consumption. Thanks, Kouya >From xend.log: [2009-03-04 09:49:24 4356] ERROR (XendDomainInfo:2584) XendDomainInfo.destroy: domain destruction failed. Traceback (most recent call last): File "/usr/lib64/python/xen/xend/XendDomainInfo.py", line 2578, in destroy do_FLR(self.domid) File "/usr/lib64/python/xen/xend/XendDomainInfo.py", line 314, in do_FLR raise VmError("pci: failed to locate device and "+ VmError: pci: failed to locate device and parse it's resources - ord() expected a character, but string of length 0 found ...[snip]... [2009-03-04 10:31:24 4343] ERROR (XendDomainInfo:2445) XendDomainInfo.initDomain: exception occurred Traceback (most recent call last): File "/usr/lib64/python/xen/xend/XendDomainInfo.py", line 2437, in _initDomain self._createDevices() File "/usr/lib64/python/xen/xend/XendDomainInfo.py", line 2049, in _createDevices devid = self._createDevice(devclass, config) File "/usr/lib64/python/xen/xend/XendDomainInfo.py", line 2016, in _createDevice return self.getDeviceController(deviceClass).createDevice(devConfig) File "/usr/lib64/python/xen/xend/server/DevController.py", line 67, in createDevice self.setupDevice(config) File "/usr/lib64/python/xen/xend/server/pciif.py", line 399, in setupDevice raise VmError("pci: failed to locate device and "+ VmError: pci: failed to locate device and parse it's resources - ord() expected a character, but string of length 0 found