summaryrefslogtreecommitdiff
path: root/virtManager/domain.py
diff options
context:
space:
mode:
authorChen Hanxiao <chenhanxiao@cn.fujitsu.com>2014-01-10 17:37:55 +0800
committerCole Robinson <crobinso@redhat.com>2014-01-11 14:53:19 -0500
commita90a375bda19fca19aed591d311774ae992b3beb (patch)
treeb1e5568a340e072532d1f3f30e4792b2cc0d0fdc /virtManager/domain.py
parent8419835b1d68e5bfad1005b00c87d302279a118f (diff)
downloadvirt-manager-a90a375bda19fca19aed591d311774ae992b3beb.tar.gz
virt-manager: add support for showing panic notifier device
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
Diffstat (limited to 'virtManager/domain.py')
-rw-r--r--virtManager/domain.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/virtManager/domain.py b/virtManager/domain.py
index fc9cf066..efdb215e 100644
--- a/virtManager/domain.py
+++ b/virtManager/domain.py
@@ -60,6 +60,7 @@ def compare_device(origdev, newdev, idx):
"redirdev" : ["bus" , "type", "vmmindex"],
"tpm" : ["type" , "vmmindex"],
"rng" : ["type" , "vmmindex"],
+ "panic" : ["type" , "vmmindex"],
}
if id(origdev) == id(newdev):
@@ -1132,6 +1133,8 @@ class vmmDomain(vmmLibvirtObject):
return self._build_device_list("tpm")
def get_rng_devices(self):
return self._build_device_list("rng")
+ def get_panic_devices(self):
+ return self._build_device_list("panic")
def get_disk_devices(self, refresh_if_nec=True, inactive=False):
devs = self._build_device_list("disk", refresh_if_nec, inactive)