def init_host(self, host):
    libvirt.registerErrorHandler(libvirt_error_handler, None)
    libvirt.virEventRegisterDefaultImpl()
    self._do_quality_warnings()
    if (CONF.libvirt.virt_type != 'kvm'):
        guestfs.force_tcg()
    if (not self._has_min_version(MIN_LIBVIRT_VERSION)):
        major = MIN_LIBVIRT_VERSION[0]
        minor = MIN_LIBVIRT_VERSION[1]
        micro = MIN_LIBVIRT_VERSION[2]
        LOG.error(_LE('Nova requires libvirt version %(major)i.%(minor)i.%(micro)i or greater.'), {'major': major, 'minor': minor, 'micro': micro})
    self._init_events()
def init_host(self, host):
    libvirt.registerErrorHandler(libvirt_error_handler, None)
    libvirt.virEventRegisterDefaultImpl()
    self._do_quality_warnings()
    if (CONF.libvirt.virt_type != 'kvm'):
        guestfs.force_tcg()
    if (not self._has_min_version(MIN_LIBVIRT_VERSION)):
        major = MIN_LIBVIRT_VERSION[0]
        minor = MIN_LIBVIRT_VERSION[1]
        micro = MIN_LIBVIRT_VERSION[2]
        LOG.error(_LE('Nova requires libvirt version %(major)i.%(minor)i.%(micro)i or greater.'), {'major': major, 'minor': minor, 'micro': micro})
    self._init_events()