1. 16 12月, 2019 1 次提交
  2. 14 12月, 2019 1 次提交
  3. 13 12月, 2019 3 次提交
    • H
      conf: create memory bandwidth monitor. · 40a070ae
      Huaqiang 提交于
      Following domain configuration changes create two memory bandwidth
      monitors: one is monitoring the bandwidth consumed by vCPU 0,
      another is for vCPU 5.
      
      ```
                     <cputune>
                       <memorytune vcpus='0-4'>
                         <node id='0' bandwidth='20'/>
                         <node id='1' bandwidth='30'/>
             +           <monitor vcpus='0'/>
                       </memorytune>
             +         <memorytune vcpus='5'>
             +           <monitor vcpus='5'/>
             +         </memorytune>
      
                     </cputune>
          ```
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      Signed-off-by: NHuaqiang <huaqiang.wang@intel.com>
      40a070ae
    • H
      cachetune schema: a looser check for the order of <cache> and <monitor> element · 1d0c3c3a
      Huaqiang 提交于
      Originally, inside <cputune/cachetune>, it requires the <cache> element to
      be in the position before <monitor>, and following configuration is not
      permitted by schema, but it is better to let it be valid.
      
        <cputune>
          <cachetune vcpus='0-1'>
            <monitor level='3' vcpus='0-1'/>
                  ^
                  |__ Not permitted originally because it is in the place
                      before <cache> element.
      
            <cache id='0' level='3' type='both' size='3' unit='MiB'/>
            <cache id='1' level='3' type='both' size='3' unit='MiB'/>
          </cachetune>
          ...
        </cputune>
      
      And, let schema do more strict check by identifying following configuration to
      be invalid, due to <cachetune> should contain at least one <cache> or <monitor>
      element.
      
        <cputune>
          <cachetune vcpus='0-1'>
              ^
              |__ a <cachetune> SHOULD contain at least one <cache> or <monitor>
      
          </cachetune>
          ...
        </cputune>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      Signed-off-by: NHuaqiang <huaqiang.wang@intel.com>
      1d0c3c3a
    • D
      docs: remove link to virsh cmd ref & app dev guide · 1100931f
      Daniel P. Berrangé 提交于
      Both the application developer guide and virsh command
      reference are unmaintained for best part of 8 years, and
      so horrifically out of date. This does not give a good
      impression to people reading the docs. Now that we are
      publishing the man pages online, those are a better
      doc to read for virsh.  We can also highlight the API
      reference instead of the app dev guide.
      
      The virsh command reference & app dev guide will
      still exist on the web root, but will not be linked
      to.
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      1100931f
  4. 12 12月, 2019 4 次提交
  5. 11 12月, 2019 14 次提交
  6. 10 12月, 2019 2 次提交
    • P
      conf: domaincaps: Add 'backup' feature flag · 528191c7
      Peter Krempa 提交于
      This flag will allow figuring out whether the hypervisor supports the
      incremental backup and checkpoint features.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      528191c7
    • E
      backup: Document new XML for backups · 252958ee
      Eric Blake 提交于
      Prepare for new backup APIs by describing the XML that will represent
      a backup.  The XML resembles snapshots and checkpoints in being able
      to select actions for a set of disks, but has other differences.  It
      can support both push model (the hypervisor does the backup directly
      into the destination file) and pull model (the hypervisor exposes an
      access port for a third party to grab what is necessary).  Add
      testsuite coverage for some minimal uses of the XML.
      
      The <disk> element within <domainbackup> tries to model the same
      elements as a <disk> under <domain>, but sharing the RNG grammar
      proved to be hairy. That is in part because while <domain> use
      <source> to describe a host resource in use by the guest, a backup job
      is using a host resource that is not visible to the guest: a push
      backup action is instead describing a <target> (which ultimately could
      be a remote network resource, but for simplicity the RNG just
      validates a local file for now), and a pull backup action is instead
      describing a temporary local file <scratch> (which probably should not
      be a remote resource).  A future refactoring may thus introduce some
      way to parameterize RNG to accept <disk type='FOO'>...</disk> so that
      the name of the subelement can be <source> for domain, or <target> or
      <scratch> as needed for backups. Future patches may improve this area
      of code.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      252958ee
  7. 09 12月, 2019 1 次提交
    • D
      conf: pass in default architecture via domain XML options · 6430c005
      Daniel P. Berrangé 提交于
      When parsing the guest XML we must fill in the default guest arch if it
      is not already present because later parts of the parsing process need
      this information.
      
      If no arch is specified we lookup the first guest in the capabilities
      data matching the os type and virt type. In most cases this will result
      in picking the host architecture but there are some exceptions...
      
       - The test driver is hardcoded to always use i686 arch
       - The VMWare/ESX drivers will always place i686 guests ahead
         of x86_64 guests in capabilities, so effectively they always
         use i686
       - The QEMU driver can potentially return any arch at all
         depending on what combination of QEMU binaries are installed.
      
      The domain XML hardware configurations are inherently architecture
      specific in many places. As a result whomever/whatever created the
      domain XML will have had a particular architecture in mind when
      specifying the config. In pretty much any sensible case this arch
      will have been the native host architecture. i686 on x86_64 is
      the only sensible divergance because both these archs are
      compatible from a domaain XML config POV.
      
      IOW, although the QEMU driver can pick an almost arbitrary arch as its
      default, in the real world no application or user is likely to be
      relying on this default arch being anything other than native.
      
      With all this in mind, it is reasonable to change the XML parser to
      allow the default architecture to be passed via the domain XML options
      struct. If no info is explicitly given then it is safe & sane to pick
      the host native architecture as the default for the guest.
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      6430c005
  8. 06 12月, 2019 3 次提交
  9. 05 12月, 2019 10 次提交
  10. 04 12月, 2019 1 次提交