mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Enable host device attachment for xen (libvirt now supports it).
This commit is contained in:
parent
bbc65216db
commit
71401272f5
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user