You need to sign in or sign up before continuing.
  • D
    Hide use of timers for domain event dispatch · 34ad1353
    Daniel P. Berrange 提交于
    Currently all drivers using domain events need to provide a callback
    for handling a timer to dispatch events in a clean stack. There is
    no technical reason for dispatch to go via driver specific code. It
    could trivially be dispatched directly from the domain event code,
    thus removing tedious boilerplate code from all drivers
    
    Also fix the libxl & xen drivers to pass 'true' when creating the
    virDomainEventState, since they run inside the daemon & thus always
    expect events to be present.
    
    * src/conf/domain_event.c, src/conf/domain_event.h: Internalize
      dispatch of events from timer callback
    * src/libxl/libxl_driver.c, src/lxc/lxc_driver.c,
      src/qemu/qemu_domain.c, src/qemu/qemu_driver.c,
      src/remote/remote_driver.c, src/test/test_driver.c,
      src/uml/uml_driver.c, src/vbox/vbox_tmpl.c,
      src/xen/xen_driver.c: Remove all timer dispatch functions
    34ad1353
lxc_driver.c 111.5 KB