Signed-off-by: Lin Ma <lma@xxxxxxxx> --- virtManager/connection.py | 7 +++++++ virtinst/devices/char.py | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/virtManager/connection.py b/virtManager/connection.py index 0b83bccf..7ca63877 100644 --- a/virtManager/connection.py +++ b/virtManager/connection.py @@ -769,6 +769,13 @@ class vmmConnection(vmmGObject): logging.debug("domain agent lifecycle event: domain=%s %s", name, LibvirtEnumMap.domain_agent_lifecycle_str(state, reason)) + obj = self.get_vm(name) + + if obj: + self.idle_add(obj.recache_from_event_loop) + else: + self.schedule_priority_tick(pollvm=True, force=True) + def _network_lifecycle_event(self, conn, network, state, reason, userdata): ignore = conn ignore = userdata diff --git a/virtinst/devices/char.py b/virtinst/devices/char.py index 3f364d76..4bbe4198 100644 --- a/virtinst/devices/char.py +++ b/virtinst/devices/char.py @@ -180,7 +180,7 @@ class _DeviceChar(Device): "bind_host", "bind_port", "source_mode", "source_host", "source_port", "_source_path", "source_channel", - "target_type", "target_name"] + "target_type", "target_name", "target_state"] type = XMLProperty("./@type") _tty = XMLProperty("./@tty") @@ -199,6 +199,8 @@ class _DeviceChar(Device): source_master = XMLProperty("./source/@master") source_slave = XMLProperty("./source/@slave") + target_state = XMLProperty("./target/@state") + ################### # source handling # -- 2.15.1 _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list