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] vtd hotplug: check if a device can be hot-plugged.

To: 'Keir Fraser' <keir.fraser@xxxxxxxxxxxxx>, "'xen-devel@xxxxxxxxxxxxxxxxxxx'" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] vtd hotplug: check if a device can be hot-plugged.
From: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
Date: Wed, 31 Dec 2008 15:48:18 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Cc:
Delivery-date: Tue, 30 Dec 2008 23:48:53 -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
Thread-index: AclqdS3iuBVeIVAORSmlKFjhMlynSwAoU9Mg
Thread-topic: [PATCH] vtd hotplug: check if a device can be hot-plugged.
When we statically assign a pci device (the pci=['xx:xx.x'] string in guest 
config file) to guest, we make many checkings (for instance, if the device is 
specified in 'pciback.hide', if it has non-page-aligned MMIO BARs, if it has a 
proper FLR capability, if the related devices should be co-assigned). However, 
with respect to the guest hotplug, we only check if the device exists and not 
assigned yet -- this is not enough, for instance, now xend allows us to assign 
an in-use device (being used by Dom0) to an HVM guest (because 
xc.test_assigned() returns OK) -- this will cause disaster... The patch adds 
some necessary checkings. 

Signed-off-by: Dexuan Cui <dexuan.cui@xxxxxxxxx>
 

Attachment: checkings_on_hotplug.patch
Description: checkings_on_hotplug.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] vtd hotplug: check if a device can be hot-plugged., Cui, Dexuan <=