1. 22 6月, 2016 4 次提交
  2. 21 6月, 2016 9 次提交
    • L
      conf: limit chassisNr, and busNr to a minimum value of 1, not 0 · df2fb9bf
      Laine Stump 提交于
      In the case of chassisNr (used to set chassis_nr of a pci-bridge
      controller), 0 is reserved for / used by the pci[e]-root bus. In the
      base of busNr, a value of 0 would mean that the root bus had no places
      available to plug in new buses, including the pxb itself (the
      documentation I wrote for pxb even noted the limit of busNr as 1.254).
      
      NB: oddly, the "chassis" attribute, which is used for pcie-root-port
      and pcie-switch-downstream-port *can* be set to 0, since it's the
      combination of {chassis, slot} that needs to be unique, not chassis by
      itself (and slot 0 of pcie-root is reserved, while pcie-*-port can use
      *only* slot 0).
      
      This resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1342962
      df2fb9bf
    • A
      f83ab972
    • J
      virsh migrate: Fix positional parameters · c61360e1
      Jiri Denemark 提交于
      Thanks to our smart option parser which automatically assigns positional
      parameters the following (previously working) command fails:
      
          virsh migrate test qemu+ssh://1.2.3.4/system tcp://1.2.3.4/
          error: invalid argument: Unsupported compression method
          'tcp://1.2.3.4/'
      
      We need to make sure new options are added at the end of the list rather
      than where they logically belong.
      
      Reported by Brian Rak.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      c61360e1
    • J
      Mark virsh-optparse as expensive · a1e1679c
      Ján Tomko 提交于
      a1e1679c
    • J
      Drop virrandomtest · 031b477b
      Ján Tomko 提交于
      This test only checks if mocking of virRandomBytes works correctly.
      
      Drop it to avoid infinite recursion by testing the test suite.
      031b477b
    • J
      Remove virsh-synopsis · 79d3fc85
      Ján Tomko 提交于
      This tests checks that the first word after SYNOPSIS
      in virsh help ${command} output is ${command}.
      
      This was only good to check that the command option structures
      are valid, which is now served by 'virsh self-test'.
      79d3fc85
    • J
      Introduce virsh self-test · 920ab8bd
      Ján Tomko 提交于
      A new hidden command for virsh that will iterate over
      all command groups and commands and print help for every single one.
      
      This involves running vshCmddefOptParse so we can get an error if
      one of the command's option structure is invalid.
      920ab8bd
    • J
      tests: mock gnutls_dh_params_generate2 · 743bda06
      Ján Tomko 提交于
      This function generates some big random numbers.
      
      Cache the result and supply it to any subsequent generate2 calls.
      743bda06
    • J
      Remove virsh-all · 9f95593d
      Ján Tomko 提交于
      Since e8ac4a79 this test wastes some CPU cycles by blindly trying to
      run almost every virsh command, blindly throwing away the output
      and the return value and returning success if 'virsh help' successfully
      returned at least one command.
      
      Drop it completely.
      9f95593d
  3. 20 6月, 2016 14 次提交
    • P
      util: Make failure to get supplementary group list for a uid non-fatal · 832f1602
      Peter Krempa 提交于
      Since introduction of the DAC security driver we've documented that
      seclabels with a leading + can be used with numerical uid. This would
      not work though with the rest of libvirt if the uid was not actually
      used in the system as we'd fail when trying to get a list of
      supplementary groups for the given uid. Since a uid without entry in
      /etc/passwd (or other user database) will not have any supplementary
      groups we can treat the failure to obtain them as such.
      
      This patch modifies virGetGroupList to not report the error for missing
      users and makes it return an empty list or just the group specified in
      @gid.
      
      All callers will grant less permissions to a user in case of failure of
      this function and thus this change is safe.
      832f1602
    • P
      util: Add option not to report errors in virGetUserEnt · c674dccc
      Peter Krempa 提交于
      In some cases it will be necessary to ignore errors reported from this
      function. This allows suppressing them to avoid spamming logs.
      c674dccc
    • P
      tools: virt-login-shell: Fix cut'n'paste mistake in error message · e29f5575
      Peter Krempa 提交于
      Whine about 'allowed_users' having wrong format rather than 'shell'
      e29f5575
    • P
      tools: virt-login-shell: Fix group list bounds checking · 94f93d70
      Peter Krempa 提交于
      The list certainly isn't zero terminated and it would disallow usage of
      group 'root'. Pass in the array size and match against it.
      94f93d70
    • P
      conf: Fix label name in virDomainGraphicsListensParseXML · 0a07bf3d
      Peter Krempa 提交于
      Use 'cleanup' since it's also used on success.
      0a07bf3d
    • P
      conf: Fix memory leak in graphics XML parser · 9982758c
      Peter Krempa 提交于
      When loading status XMLs with following graphics definition:
      
        <graphics type='spice' port='5900' autoport='yes' listen='127.0.0.1'>
          <listen type='address' address='127.0.0.1' fromConfig='1'/>
          <image compression='off'/>
        </graphics>
      
      libvirtd would leak a few bytes:
      
      10 bytes in 1 blocks are definitely lost in loss record 71 of 1,127
         at 0x4C2C000: malloc (vg_replace_malloc.c:299)
         by 0x6789298: xmlStrndup (in /usr/lib64/libxml2.so.2.9.4)
         by 0x552AB0A: virXMLPropString (virxml.c:479)
         by 0x5539536: virDomainGraphicsListensParseXML (domain_conf.c:11171)
         by 0x553DD5E: virDomainGraphicsDefParseXMLSpice (domain_conf.c:11414)
         by 0x553DD5E: virDomainGraphicsDefParseXML (domain_conf.c:11749)
         by 0x5566061: virDomainDefParseXML (domain_conf.c:16939)
         by 0x556953F: virDomainObjParseXML (domain_conf.c:17348)
         by 0x556953F: virDomainObjParseNode (domain_conf.c:17513)
         by 0x5569902: virDomainObjParseFile (domain_conf.c:17532)
         by 0x5571E02: virDomainObjListLoadStatus (virdomainobjlist.c:514)
         by 0x5571E02: virDomainObjListLoadAllConfigs (virdomainobjlist.c:596)
         by 0x26E0BDC8: qemuStateInitialize (qemu_driver.c:911)
         by 0x55B1FDB: virStateInitialize (libvirt.c:770)
         by 0x122039: daemonRunStateInit (libvirtd.c:960)
      9982758c
    • C
      util: fix a typo · a7822ba3
      Chen Hanxiao 提交于
      s/succcess/success
      Signed-off-by: NChen Hanxiao <chenhanxiao@gmail.com>
      a7822ba3
    • J
      docs: virsh: Added note for the dump command · dd14032b
      Jaroslav Suchanek 提交于
      Crash dump in a old kvmdump format is being obsolete and cannot be loaded and
      processed by crash utility since its version 6.1.0. A --memory-only option is
      required in order to produce valid ELF file which can be later processed by the
      crash utility. A new note is added to the dump command description.
      dd14032b
    • J
      Allow disjunct ranges in VIR_TEST_RANGE · 0cd5a726
      Ján Tomko 提交于
      Use virBitmapParseUnlimited to parse the env variable.
      0cd5a726
    • J
      Introduce virBitmapParseUnlimited · dc56b3a7
      Ján Tomko 提交于
      For parsing a bitmap of an unknown size.
      dc56b3a7
    • J
      Remove separator argument from virBitmapParse · ff52e9d4
      Ján Tomko 提交于
      Most the callers pass 0 in one form or another, including
      vircapstest which used VIR_ARCH_NONE.
      ff52e9d4
    • J
      Introduce virBitmapParseSeparator · d728689d
      Ján Tomko 提交于
      This will be used for the caller that needs to specify a separator.
      Currently identical to virBitmapParse.
      
      Also change one test case to use the new function.
      d728689d
    • J
      Do not return number of set bits in virBitmapParse · ba7c026d
      Ján Tomko 提交于
      This is only used by one caller.
      ba7c026d
    • A
      qemu: Don't use legacy USB for aarch64 mach-virt guests · dc5821d7
      Andrea Bolognani 提交于
      The '-usb' option doesn't have any effect for aarch64 mach-virt
      guests, so the fact that it's currently enabled by default is not
      really causing any issue.
      
      However, that might change in the future (although unlikely), and
      having it as part of the QEMU command line can cause confusion to
      someone looking through the process list.
      
      Avoid it completely, like it's already happening for q35.
      dc5821d7
  4. 19 6月, 2016 1 次提交
  5. 18 6月, 2016 10 次提交
  6. 17 6月, 2016 2 次提交