1. 22 9月, 2016 1 次提交
    • 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
  2. 10 5月, 2016 3 次提交
    • R
      conf: don't redefine virDomainCapsDeviceHostdev · 9dec97dd
      Roman Bogorodskiy 提交于
      Commit 5ed235c6 added unnecessary redifinition of
      virDomainCapsDeviceHostdev in conf/domain_capabilities.h. This breaks
      build with clang 3.4:
      
      In file included from conf/domain_capabilities.c:25:
      conf/domain_capabilities.h:88:44: error: redefinition of typedef
      'virDomainCapsDeviceHostdev' is a C11 feature
      [-Werror,-Wtypedef-redefinition]
      typedef struct _virDomainCapsDeviceHostdev virDomainCapsDeviceHostdev;
                                                 ^
      conf/domain_capabilities.h:86:44: note: previous definition is here
      typedef struct _virDomainCapsDeviceHostdev virDomainCapsDeviceHostdev;
      
      So drop one of those.
      9dec97dd
    • C
      domaincaps: Report video modelType · 5ed235c6
      Cole Robinson 提交于
      Requires adding the plumbing for <device><video>
      The value is <enum name='modelType'> to match the associated domain
      XML of <video><model type='XXX'/>
      
      Wire it up for qemu too
      5ed235c6
    • C
      domaincaps: Report graphics type enum · 6da27ad1
      Cole Robinson 提交于
      Requires adding the plumbing for <device><graphics>
      Wire it up for qemu too
      6da27ad1
  3. 20 4月, 2016 2 次提交
    • A
      conf: Expose GIC capabilities · 4e2d82f7
      Andrea Bolognani 提交于
      Add information about GIC capabilities to virDomainCaps and update
      the formatter to include them in the XML output.
      4e2d82f7
    • 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
  4. 17 9月, 2014 2 次提交
  5. 03 7月, 2014 1 次提交
    • M
      Introduce domain_capabilities · 614581f3
      Michal Privoznik 提交于
      This new module holds and formats capabilities for emulator. If you
      are about to create a new domain, you may want to know what is the
      host or hypervisor capable of. To make sure we don't regress on the
      XML, the formatting is not something left for each driver to
      implement, rather there's general format function.
      
      The domain capabilities is a lockable object (even though the locking
      is not necessary yet) which uses reference counter.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      614581f3