addhw: Only allow panic device if libvirt supports it
This commit is contained in:
parent
f02b85d913
commit
bd111d411c
|
@ -403,7 +403,9 @@ class vmmAddHardware(vmmGObjectUI):
|
|||
add_hw_option("TPM", "device_cpu", PAGE_TPM,
|
||||
True, None)
|
||||
add_hw_option("RNG", "system-run", PAGE_RNG, True, None)
|
||||
add_hw_option("Panic Notifier", "system-run", PAGE_PANIC, True, None)
|
||||
add_hw_option("Panic Notifier", "system-run", PAGE_PANIC,
|
||||
self.conn.check_support(self.conn.SUPPORT_CONN_PANIC_DEVICE),
|
||||
_("Not supported for this hypervisor/libvirt combination."))
|
||||
|
||||
def reset_state(self):
|
||||
# Storage init
|
||||
|
|
|
@ -289,6 +289,9 @@ SUPPORT_CONN_AUTOSOCKET = _make(drv_libvirt_version=[("qemu", 1000006)])
|
|||
SUPPORT_CONN_ADVANCED_CLOCK = _make(
|
||||
drv_libvirt_version=[("qemu", 8000)])
|
||||
SUPPORT_CONN_VIRTIO_CONSOLE = _make(drv_libvirt_version=[("qemu", 8003)])
|
||||
SUPPORT_CONN_PANIC_DEVICE = _make(version=1002001,
|
||||
drv_version=[("qemu", 1005000),
|
||||
("test", 0)])
|
||||
|
||||
|
||||
# Domain checks
|
||||
|
|
Loading…
Reference in New Issue