1. 11 4月, 2017 1 次提交
  2. 04 4月, 2017 1 次提交
  3. 26 3月, 2017 1 次提交
    • R
      domaincapstest: add bhyve caps test · 74cfb5bb
      Roman Bogorodskiy 提交于
       * Extract filling bhyve capabilities from virBhyveDomainCapsBuild()
         into a new function virBhyveDomainCapsFill() to make testing
         easier by not having to mock firmware directory listing and
         hypervisor capabilities probing
       * Also, just presence of the firmware files is not sufficient
         to enable os.loader.supported, hypervisor should support UEFI
         boot too
       * Add tests to domaincapstest for the main caps possible flows:
          - when UEFI bootrom is supported
          - when video (fbus) is supported
          - neither of above is supported
      74cfb5bb
  4. 17 3月, 2017 1 次提交
  5. 14 3月, 2017 1 次提交
    • J
      qemu: Report better host-model CPUs in domain caps · e958fb5b
      Jiri Denemark 提交于
      One of the main reasons for introducing host-model CPU definition in a
      domain capabilities XML was the inability to express disabled features
      in a host capabilities XML. That is, when a host CPU is, e.g., Haswell
      without x2apic support, host capabilities XML will have to report it as
      Westmere + a bunch of additional features., but we really want to use
      Haswell - x2apic when creating a host-model CPU.
      
      Unfortunately, I somehow forgot to do the last step and the code would
      just copy the CPU definition found in the host capabilities XML. This
      changed recently for new QEMU versions which allow us to query host CPU,
      but any slightly older QEMU will not benefit from any change I did. This
      patch makes sure the right CPU model is filled in the domain
      capabilities even with old QEMU.
      
      The issue was reported in
      https://bugzilla.redhat.com/show_bug.cgi?id=1426456Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      e958fb5b
  6. 04 3月, 2017 1 次提交
  7. 06 1月, 2017 1 次提交
  8. 28 11月, 2016 1 次提交
  9. 26 11月, 2016 6 次提交
  10. 22 9月, 2016 5 次提交
    • J
      Show host model in domain capabilities · 14319c81
      Jiri Denemark 提交于
      The domain capabilities XML is capable of showing whether each guest CPU
      mode is supported or not with a possibility to provide additional
      details. This patch enhances host-model capability to advertise the
      exact CPU model which will be used as a host-model:
      
          <cpu>
              ...
              <mode name='host-model' supported='yes'>
                  <model fallback='allow'>Broadwell</model>
                  <vendor>Intel</vendor>
                  <feature policy='disable' name='aes'/>
                  <feature policy='require' name='vmx'/>
              </mode>
              ...
          </cpu>
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      14319c81
    • J
      qemu: Store host-model CPU in qemu capabilities · 68c70118
      Jiri Denemark 提交于
      Host capabilities provide libvirt's view of the host CPU, but for a
      useful support for host-model CPUs we really need a hypervisor's view of
      the CPU. And since the view can be differ with emulator, qemu
      capabilities is the best place to store the host CPU model.
      
      This patch just copies the CPU model from host capabilities, but this
      will change in the future.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      68c70118
    • J
      domcaps: Add CPU usable flag · d4c007e6
      Jiri Denemark 提交于
      In case a hypervisor is able to tell us a list of supported CPU models
      and whether each CPU models can be used on the current host, we can
      propagate this to domain capabilities. This is a better alternative
      to calling virConnectCompareCPU for each supported CPU model.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      d4c007e6
    • J
      qemu: Fill in CPU domain capabilities · 84d38307
      Jiri Denemark 提交于
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      84d38307
    • J
      domcaps: Add support for listing supported CPU models · 167280e7
      Jiri Denemark 提交于
      The patch adds <cpu> element to domain capabilities XML:
      
          <cpu>
              <mode name='host-passthrough' supported='yes'/>
              <mode name='host-model' supported='yes'/>
              <mode name='custom' supported='yes'>
                  <model>Broadwell</model>
                  <model>Broadwell-noTSX</model>
                  ...
              </mode>
          </cpu>
      
      Applications can use it to inspect what CPU configuration modes are
      supported for a specific combination of domain type, emulator binary,
      guest architecture and machine type.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      167280e7
  11. 01 7月, 2016 2 次提交
  12. 25 6月, 2016 1 次提交
  13. 18 6月, 2016 1 次提交
  14. 14 6月, 2016 2 次提交
  15. 08 6月, 2016 2 次提交
  16. 25 5月, 2016 1 次提交
  17. 16 5月, 2016 3 次提交
  18. 10 5月, 2016 2 次提交
  19. 06 5月, 2016 5 次提交
  20. 20 4月, 2016 1 次提交
    • A
      conf: Get rid of virDomainCapsDevice · 29980231
      Andrea Bolognani 提交于
      The struct contains a single boolean field, 'supported':
      the meaning of this field is too generic to be limited to
      devices only, and in fact it's already being used for
      other things like loaders and OSs.
      
      Instead of trying to come up with a more generic name just
      get rid of the struct altogether.
      29980231
  21. 27 4月, 2015 1 次提交