Enable host device attachment for xen (libvirt now supports it).

This commit is contained in:
Cole Robinson 2009-07-02 12:43:41 -04:00
parent bbc65216db
commit 71401272f5

View File

@ -275,9 +275,7 @@ class vmmAddHardware(gobject.GObject):
if self.vm.is_hvm(): if self.vm.is_hvm():
model.append(["Sound", gtk.STOCK_MEDIA_PLAY, PAGE_SOUND]) model.append(["Sound", gtk.STOCK_MEDIA_PLAY, PAGE_SOUND])
if (self.vm.get_connection().get_driver().lower() != "xen" or if self.vm.get_connection().is_nodedev_capable():
not self.vm.get_connection().is_nodedev_capable()):
# Libvirt doesn't support this for xen yet
model.append(["Physical Host Device", None, PAGE_HOSTDEV]) model.append(["Physical Host Device", None, PAGE_HOSTDEV])
def forward(self, ignore=None): def forward(self, ignore=None):