1. 06 2月, 2020 1 次提交
  2. 04 2月, 2020 2 次提交
  3. 30 1月, 2020 1 次提交
  4. 29 1月, 2020 1 次提交
  5. 27 1月, 2020 1 次提交
    • D
      libvirt: pass a directory path into drivers for embedded usage · 207709a0
      Daniel P. Berrangé 提交于
      The intent here is to allow the virt drivers to be run directly embedded
      in an arbitrary process without interfering with libvirtd. To achieve
      this they need to store all their configuration & state in a separate
      directory tree from the main system or session libvirtd instances.
      
      This can be useful for doing testing of the virt drivers in "make check"
      without interfering with the user's own libvirtd instances.
      
      It can also be used for applications using KVM/QEMU as a piece of
      infrastructure to build an service, rather than for general purpose
      OS hosting. A long standing example is libguestfs, which would prefer
      if its temporary VMs did show up in the main libvirtd VM list, because
      this confuses apps such as OpenStack Nova. A more recent example would
      be Kata which is using KVM as a technology to build containers.
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NCole Robinson <crobinso@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      207709a0
  6. 23 1月, 2020 1 次提交
  7. 17 1月, 2020 2 次提交
  8. 16 1月, 2020 2 次提交
  9. 08 1月, 2020 1 次提交
    • M
      remote_daemon: Initialize host boot time global variable · 35d603d5
      Michal Privoznik 提交于
      This is not strictly needed, but it makes sure we initialize the
      @bootTime global variable. Thing is, in order to validate XATTRs
      and prune those set in some previous runs of the host, a
      timestamp is recorded in XATTRs. The host boot time was unique
      enough so it was chosen as the timestamp value. And to avoid
      querying and parsing /proc/uptime every time, the query function
      does that only once and stores the boot time in a global
      variable. However, the only time the query function is called is
      in a child process that does lock files and changes seclabels. So
      effectively, we are doing exactly what we wanted to prevent from
      happening.
      
      The fix is simple, call the virHostBootTimeInit() function which
      sets the global variable.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NCole Robinson <crobinso@redhat.com>
      35d603d5
  10. 07 1月, 2020 1 次提交
  11. 03 1月, 2020 1 次提交
  12. 20 12月, 2019 3 次提交
  13. 17 12月, 2019 1 次提交
  14. 16 12月, 2019 1 次提交
    • M
      configure: Provide OpenRC scripts for sub-daemons · 49c6fe62
      Michal Privoznik 提交于
      There is plenty of distributions that haven't switched to
      systemd nor they force their users to (Gentoo, Alpine Linux to
      name a few). With the daemon split merged their only option is to
      still use the monolithic daemon which will go away eventually.
      Provide init scripts for these distros too.
      
      For now, I'm not introducing config files which would correspond
      to the init files except for libvirtd and virtproxyd init scripts
      where it might be desirable to tweak the command line of
      corresponding daemons.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      49c6fe62
  15. 14 12月, 2019 2 次提交
  16. 11 12月, 2019 1 次提交
  17. 10 12月, 2019 2 次提交
  18. 29 11月, 2019 1 次提交
    • M
      remote_daemon_stream: Hold an extra reference to stream in daemonStreamFilter · 5e9bdccd
      Michal Privoznik 提交于
      In v5.9.0-273-g8ecab214 I've tried to fix a lock ordering
      problem, but introduced a crasher. Problem is that because the
      client lock is unlocked (in order to honour lock ordering) the
      stream we are currently checking in daemonStreamFilter() might be
      freed and thus stream->priv might not even exist when the control
      get to virMutexLock() call.
      
      To resolve this, grab an extra reference to the stream and handle
      its cleanup should the refcounter reach zero after the deref.
      If that's the case and we are the only ones holding a reference
      to the stream, we MUST return a positive value to make
      virNetServerClientDispatchRead() break its loop where it iterates
      over filters. The problem is, if we did not do so, then
      "filter = filter->next" line will read from a memory that was
      just freed (freeing a stream also unregisters its filter).
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      5e9bdccd
  19. 19 11月, 2019 1 次提交
  20. 15 11月, 2019 1 次提交
    • J
      Add API to change qemu agent response timeout · 95f5ac9a
      Jonathon Jongsma 提交于
      Some layered products such as oVirt have requested a way to avoid being
      blocked by guest agent commands when querying a loaded vm. For example,
      many guest agent commands are polled periodically to monitor changes,
      and rather than blocking the calling process, they'd prefer to simply
      time out when an agent query is taking too long.
      
      This patch adds a way for the user to specify a custom agent timeout
      that is applied to all agent commands.
      
      One special case to note here is the 'guest-sync' command. 'guest-sync'
      is issued internally prior to calling any other command. (For example,
      when libvirt wants to call 'guest-get-fsinfo', we first call
      'guest-sync' and then call 'guest-get-fsinfo').
      
      Previously, the 'guest-sync' command used a 5-second timeout
      (VIR_DOMAIN_QEMU_AGENT_COMMAND_DEFAULT), whereas the actual command that
      followed always blocked indefinitely
      (VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK). As part of this patch, if a
      custom timeout is specified that is shorter than
      5 seconds,  this new timeout is also used for 'guest-sync'. If there is
      no custom timeout or if the custom timeout is longer than 5 seconds, we
      will continue to use the 5-second timeout.
      Signed-off-by: NJonathon Jongsma <jjongsma@redhat.com>
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      95f5ac9a
  21. 14 11月, 2019 1 次提交
  22. 13 11月, 2019 1 次提交
  23. 12 11月, 2019 2 次提交
  24. 11 11月, 2019 1 次提交
  25. 09 11月, 2019 5 次提交
  26. 25 10月, 2019 3 次提交