1. 19 3月, 2020 1 次提交
  2. 17 3月, 2020 2 次提交
  3. 11 3月, 2020 1 次提交
  4. 05 3月, 2020 1 次提交
  5. 04 3月, 2020 2 次提交
  6. 11 2月, 2020 1 次提交
  7. 07 2月, 2020 1 次提交
    • Z
      qemu: support Panic Crashloaded event handling · 26badd13
      zhenwei pi 提交于
      Pvpanic device supports bit 1 as crashloaded event, it means that
      guest actually panicked and run kexec to handle error by guest side.
      
      Handle crashloaded as a lifecyle event in libvirt.
      
      Test case:
      Guest side:
      before testing, we need make sure kdump is enabled,
      1, build new pvpanic driver (with commit from upstream
         e0b9a42735f2672ca2764cfbea6e55a81098d5ba
         191941692a3d1b6a9614502b279be062926b70f5)
      2, insmod new kmod
      3, enable crash_kexec_post_notifiers,
        # echo 1 > /sys/module/kernel/parameters/crash_kexec_post_notifiers
      4, trigger kernel panic
        # echo 1 > /proc/sys/kernel/sysrq
        # echo c > /proc/sysrq-trigger
      
      Host side:
      1, build new qemu with pvpanic patches (with commit from upstream
         600d7b47e8f5085919fd1d1157f25950ea8dbc11
         7dc58deea79a343ac3adc5cadb97215086054c86)
      2, build libvirt with this patch
      3, handle lifecycle event and trigger guest side panic
        # virsh event stretch --event lifecycle
        event 'lifecycle' for domain stretch: Crashed Crashloaded
        events received: 1
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      Signed-off-by: Nzhenwei pi <pizhenwei@bytedance.com>
      26badd13
  8. 30 1月, 2020 1 次提交
  9. 13 12月, 2019 2 次提交
  10. 10 12月, 2019 1 次提交
  11. 27 11月, 2019 1 次提交
  12. 22 11月, 2019 1 次提交
    • D
      util: consolidate on one free callback for hash data · bc7e7291
      Daniel P. Berrangé 提交于
      This previous commit introduced a simpler free callback for
      hash data with only 1 arg, the value to free:
      
        commit 49288fac
        Author: Peter Krempa <pkrempa@redhat.com>
        Date:   Wed Oct 9 15:26:37 2019 +0200
      
          util: hash: Add possibility to use simpler data free function in virHash
      
      It missed two functions in the hash table code which need
      to call the alternate data free function, virHashRemoveEntry
      and virHashRemoveSet.
      
      After the previous patch though, there is no code that
      makes functional use of the 2nd key arg in the data
      free function. There is merely one log message that can
      be dropped.
      
      We can thus purge the current virHashDataFree callback
      entirely, and rename virHashDataFreeSimple to replace
      it.
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      bc7e7291
  13. 21 11月, 2019 6 次提交
  14. 20 11月, 2019 1 次提交
  15. 25 10月, 2019 1 次提交
  16. 21 10月, 2019 1 次提交
  17. 16 10月, 2019 1 次提交
  18. 07 10月, 2019 4 次提交
  19. 30 9月, 2019 2 次提交
  20. 27 9月, 2019 1 次提交
    • M
      qemu_monitor: s/size_t/ULL/ in qemuMonitorSave{Virtual,Physical}Memory · 9a293d33
      Michal Privoznik 提交于
      As it turns out, on my 32bit ARM machine size_t is not the same
      size as ULL. However, @length argument for both functions is type
      of size_t but it's treated as ULL - for instance when passed to
      qemuMonitorJSONMakeCommand(). The problem is that because of
      "U:size" the virJSONValueObjectAddVArgs() expects an ULL argument
      but on the stack there are size_t and char * arguments (which
      coincidentally add up to size of ULL). So the created command has
      only two arguments "val" and incorrect "size" and no "path" which
      is required.
      
      I've tried to find other occurrences of this pattern but at the
      rest of places where size_t is used it tracks size of an array so
      that's safe.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      ACKed-by: NPeter Krempa <pkrempa@redhat.com>
      9a293d33
  21. 25 9月, 2019 1 次提交
  22. 20 9月, 2019 4 次提交
  23. 06 9月, 2019 1 次提交
  24. 29 8月, 2019 1 次提交
  25. 18 7月, 2019 1 次提交