1. 07 9月, 2018 5 次提交
  2. 28 8月, 2018 1 次提交
  3. 24 8月, 2018 3 次提交
  4. 20 8月, 2018 2 次提交
    • E
      qemu: caps: Format SEV platform data into qemuCaps cache · 77f51ab5
      Erik Skultety 提交于
      Since we're not saving the platform-specific data into a cache, we're
      not going to populate the structure, which in turn will cause a crash
      upon calling virNodeGetSEVInfo because of a NULL pointer dereference.
      Ultimately, we should start caching this data along with host-specific
      capabilities like NUMA and SELinux stuff into a separate cache, but for
      the time being, this is a semi-proper fix for a potential crash.
      
      Backtrace (requires libvirtd restart to load qemu caps from cache):
          #0 qemuGetSEVInfoToParams
          #1 qemuNodeGetSEVInfo
          #2 virNodeGetSEVInfo
          #3 remoteDispatchNodeGetSevInfo
          #4 remoteDispatchNodeGetSevInfoHelper
          #5 virNetServerProgramDispatchCall
          #6 virNetServerProgramDispatch
          #7 virNetServerProcessMsg
          #8 virNetServerHandleJob
          #9 virThreadPoolWorker
          #10 virThreadHelper
      
      https: //bugzilla.redhat.com/show_bug.cgi?id=1612009
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      Acked-by: NPeter Krempa <pkrempa@redhat.com>
      Tested-by: NBrijesh Singh <brijesh.singh@amd.com>
      77f51ab5
    • E
      qemu: Fix probing of AMD SEV support · 764491c9
      Erik Skultety 提交于
      So the procedure to detect SEV support works like this:
      1) we detect that sev-guest is among the QOM types and set the cap flag
      2) we probe the monitor for SEV support
          - this is tricky, because QEMU with compiled SEV support will always
          report -object sev-guest and query-sev-capabilities command, that
          however doesn't mean SEV is supported
      3) depending on what the monitor returned, we either keep or clear the
      capability flag for SEV
      
      Commit a349c6c2 added an explicit check for "GenericError" in the
      monitor reply to prevent libvirtd to spam logs about missing
      'query-sev-capabilities' command. At the same time though, it returned
      success in this case which means that we didn't clear the capability
      flag afterwards and happily formatted SEV into qemuCaps. Therefore,
      adjust all the relevant callers to handle -1 on errors, 0 on SEV being
      unsupported and 1 on SEV being supported.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      Acked-by: NPeter Krempa <pkrempa@redhat.com>
      764491c9
  5. 15 8月, 2018 1 次提交
  6. 09 8月, 2018 1 次提交
  7. 19 7月, 2018 2 次提交
  8. 17 7月, 2018 2 次提交
  9. 10 7月, 2018 2 次提交
  10. 03 7月, 2018 1 次提交
  11. 26 6月, 2018 2 次提交
  12. 12 6月, 2018 2 次提交
  13. 08 6月, 2018 1 次提交
    • M
      qemu: Add capability flag for setting the extended tseg size · 3ea32b63
      Martin Kletzander 提交于
      For getting the reply I queried the newest and oldest QEMU using
      test/qemucapsprobe.  From the differences I only extracted the reply to the new
      QMP command and discarded the rest.  For all the versions below the one which
      added support for the new option I used the output from the oldest QEMU release
      and for those that support it I used the output from the newest one.
      
      In order to make doubly sure the reply is where it is supposed to be (the
      replies files are very forgiving) I added the property to all the replies files,
      reran the tests again and fixed the order in replies files so that all the
      versions are reporting the new capability.  Then removed that one property.
      
      After that I used test/qemucapsfixreplies to fix the reply IDs.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      3ea32b63
  14. 06 6月, 2018 2 次提交
  15. 29 5月, 2018 1 次提交
  16. 25 5月, 2018 1 次提交
  17. 23 5月, 2018 3 次提交
  18. 17 5月, 2018 2 次提交
  19. 16 5月, 2018 1 次提交
  20. 15 5月, 2018 1 次提交
  21. 14 5月, 2018 3 次提交
  22. 11 5月, 2018 1 次提交