Merge remote-tracking branch 'origin/pr/358'

* origin/pr/358:
  vm: emit property-reset:stubdom_xid event on domain start/stop too
This commit is contained in:
Marek Marczykowski-Górecki 2020-07-10 11:06:00 +02:00
commit e13fde07fd
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1147,6 +1147,8 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
# the above allocates xid, lets announce that # the above allocates xid, lets announce that
self.fire_event('property-reset:xid', name='xid') self.fire_event('property-reset:xid', name='xid')
self.fire_event('property-reset:stubdom_xid',
name='stubdom_xid')
self.fire_event('property-reset:start_time', name='start_time') self.fire_event('property-reset:start_time', name='start_time')
except libvirt.libvirtError as exc: except libvirt.libvirtError as exc:
# missing IOMMU? # missing IOMMU?
@ -1257,6 +1259,7 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
self.log.exception('Failed to stop storage for domain %s', self.log.exception('Failed to stop storage for domain %s',
self.name) self.name)
self.fire_event('property-reset:xid', name='xid') self.fire_event('property-reset:xid', name='xid')
self.fire_event('property-reset:stubdom_xid', name='stubdom_xid')
self.fire_event('property-reset:start_time', name='start_time') self.fire_event('property-reset:start_time', name='start_time')
@asyncio.coroutine @asyncio.coroutine