1. 28 4月, 2015 6 次提交
    • J
      qemu: Remove need for qemuMonitorIOThreadInfoFree · b515339f
      John Ferlan 提交于
      Replace with just VIR_FREE.
      b515339f
    • J
      qemu: Remove need for qemuDomainParseIOThreadAlias · 4c2ca566
      John Ferlan 提交于
      Rather than have a separate routine to parse the alias of an iothread
      returned from qemu in order to get the iothread_id value, parse the alias
      when returning and just return the iothread_id in qemuMonitorIOThreadInfoPtr
      
      This set of patches removes the function, changes the "char *name" to
      "unsigned int" and handles all the fallout.
      4c2ca566
    • L
      test: Fix actual vs. expected in virtTestCompareFiles · dcbedfa6
      Laine Stump 提交于
      Commit ca329299 added a utility function virtTestCompareFiles() to
      eliminate repetitive code in several test programs. It unfortunately
      calls virtTestDifference() with the arguments in the wrong order -
      strcontent is the "actual" output gathered by the test rig, while
      filecontent is the "expected", and virtTestDifference() wants expected
      (filecontent) followed by actual (strcontent), but
      virtTestCompareFiles() does the opposite, which can make the output a
      bit confusing when there is a failure.
      dcbedfa6
    • J
      conf: Adjust the iothreadsched expectations · 4dec8a01
      John Ferlan 提交于
      With iothreadid's allowing any 'id' value for an iothread_id, the
      iothreadsched code needs a slight adjustment to allow for "any"
      unsigned int value in order to create the bitmap of ids that will
      have scheduler adjustments. Adjusted the doc description as well.
      4dec8a01
    • J
      Move iothreadspin information into iothreadids · b266486f
      John Ferlan 提交于
      Remove the iothreadspin array from cputune and replace with a cpumask
      to be stored in the iothreadids list.
      
      Adjust the test output because our printing goes in order of the iothreadids
      list now.
      b266486f
    • J
      qemu: Use domain iothreadids to IOThread's 'thread_id' · 8d4614a5
      John Ferlan 提交于
      Add 'thread_id' to the virDomainIOThreadIDDef as a means to store the
      'thread_id' as returned from the live qemu monitor data.
      
      Remove the iothreadpids list from _qemuDomainObjPrivate and replace with
      the new iothreadids 'thread_id' element.
      
      Rather than use the default numbering scheme of 1..number of iothreads
      defined for the domain, use the iothreadid's list for the iothread_id
      
      Since iothreadids list keeps track of the iothread_id's, these are
      now used in place of the many places where a for loop would "know"
      that the ID was "+ 1" from the array element.
      
      The new tests ensure usage of the <iothreadid> values for an exact number
      of iothreads and the usage of a smaller number of <iothreadid> values than
      iothreads that exist (and usage of the default numbering scheme).
      8d4614a5
  2. 27 4月, 2015 4 次提交
  3. 25 4月, 2015 1 次提交
  4. 24 4月, 2015 5 次提交
  5. 23 4月, 2015 2 次提交
    • D
      rng: fix port number range validation · 615bdfda
      Daniel P. Berrange 提交于
      The PortNumber data type is declared to derive from 'short'.
      Unfortunately this is an signed type, so validates the range
      [-32,768, 32,767] which excludes valid port numbers between
      32767 and 65535.
      
      We can't use 'unsignedShort', since we need -1 to be a valid
      port number too.
      
      This change is to use 'int' and set an explicit max boundary
      instead of relying on the data types' built-in max.
      
      One of the existing tests is changed to use a high port number
      to validate the schema.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1214664Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      615bdfda
    • R
      bhyve: fix build in tests · c42dbd8a
      Roman Bogorodskiy 提交于
      Commit 835cf84b dropped expectedVirtTypes argument for
      virDomainDefParse*() functions, however bhyve tests still try to pass
      that to virDomainDefParseFile(), therefore build fails.
      
      Fix build by fixing virDomainDefParseFile() usage.
      c42dbd8a
  6. 21 4月, 2015 7 次提交
  7. 20 4月, 2015 1 次提交
  8. 17 4月, 2015 4 次提交
    • M
      virNetDevBandwidthSet: Add priority to filter · 2397be69
      Michal Privoznik 提交于
      Currently, when constructing traffic shaping rules, the ingress
      filter is created without any priority specified on the command
      line. This makes kernel to make up one. While this works, it
      simplifies things a bit if we provide the filter priority. In
      this case, since it's the root filter lets give it the highest
      priority of number 1.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      2397be69
    • J
      libxl: support HVM direct kernel boot · 13e2c220
      Jim Fehlig 提交于
      Add support for HVM direct kernel boot in libxl.  Also add a
      test to verify domXML <-> native conversions.
      Signed-off-by: NChunyan Liu <cyliu@suse.com>
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      13e2c220
    • J
      xenconfig: don't use "kernel" for hvmloader · 0fe504f1
      Jim Fehlig 提交于
      In xl config, hvmloader is implied for hvm guests.  It is not
      specified with the "kernel" option like xm config.  The "kernel"
      option, along with "ramdisk" and "extra", is used for HVM direct
      kernel boot.  Instead of using "kernel" option to populate
      virDomainDef object's os.loader->path, use hvmloader discovered
      when gathering capabilities.
      
      This change required fixing initialization of capabilities in
      the test utils and removing 'kernel = "/usr/lib/xen/boot/hvmloader"'
      from the test config files.
      0fe504f1
    • J
      xenconfig: move <os> parsing/formating to config-specific files · 717a9251
      Jim Fehlig 提交于
      xl and xm differ a bit in how <os> configuration is represented.
      E.g. xl config supports <os><nvram .../></os> via its "bios"
      setting.
      
      Move the xenParseOS and xenFormatOS functions from xen_common.c
      and copy to xen_xl.c and xen_xm.c so they can be customized for
      xm vs xl config.  An unfortunate fallout is reordering of entries
      in the test config files.
      717a9251
  9. 16 4月, 2015 5 次提交
  10. 15 4月, 2015 3 次提交
  11. 13 4月, 2015 2 次提交