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]xend: pass-through: fix "xm pci-list-assignable-devic

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH]xend: pass-through: fix "xm pci-list-assignable-devices' for pv_guest
From: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
Date: Tue, 28 Jul 2009 17:06:43 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Cc: Simon Horman <horms@xxxxxxxxxxxx>
Delivery-date: Tue, 28 Jul 2009 02:08:44 -0700
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
Thread-index: AcoPYrnMSEfXdeP9Q9G51r0V7r0DYA==
Thread-topic: [PATCH]xend: pass-through: fix "xm pci-list-assignable-devices' for pv_guest
xc.test_assign_device(dev) can only tell us if dev is assigned to hvm guest;
if a device is assigned to pv guest, xc.test_assign_device() still tells us
the device is not assigned yet, as a result, the device still appears in the
output of "xm pci-list-assignable-devices", and xend would not prevent us from
assigning the device to a new pv or hvm guest.

To judge if a device has been assigned to guest, we have to scan xenstore.  

Thanks,
-- Dexuan

Attachment: fix_xm_pci-list-assignable-devices_for_pv_guest.patch
Description: fix_xm_pci-list-assignable-devices_for_pv_guest.patch

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