1. 21 5月, 2018 1 次提交
  2. 18 11月, 2017 1 次提交
  3. 12 4月, 2017 1 次提交
  4. 27 3月, 2017 1 次提交
  5. 09 12月, 2016 1 次提交
  6. 22 9月, 2016 1 次提交
  7. 15 9月, 2016 1 次提交
  8. 25 4月, 2016 1 次提交
  9. 14 8月, 2015 1 次提交
    • E
      tools: Introduce new client generic module vsh · 834c5720
      Erik Skultety 提交于
      In order to share as much virsh' logic as possible with upcomming
      virt-admin client we need to split virsh logic into virsh specific and
      client generic features.
      
      Since majority of virsh methods should be generic enough to be used by
      other clients, it's much easier to rename virsh specific data to virshX
      than doing this vice versa. It moved generic virsh commands (including info
      and opts structures) to generic module vsh.c.
      
      Besides renaming methods and structures, this patch also involves introduction
      of a client specific control structure being referenced as private data in the
      original control structure, introduction of a new global vsh Initializer,
      which currently doesn't do much, but there is a potential for added
      functionality in the future.
      Lastly it introduced client hooks which are especially necessary during
      client connecting phase.
      834c5720
  10. 16 7月, 2015 1 次提交
  11. 15 7月, 2015 1 次提交
    • M
      virsh: Teach cmdFreepages to work with lxc driver · f69ece07
      Michal Privoznik 提交于
      Some drivers don't expose available huge page sizes in the
      capabilities XML. For instance, LXC driver is one of those.
      This has a downside that when virsh is trying to get
      aggregated info on free pages per all NUMA nodes, it fails.
      The problem is that the virNodeGetFreePages() API expects
      caller to pass an array of page sizes he is interested in.
      In virsh, this array is filled from the capabilities from
      '/capabilities/host/cpu/pages' XPath. As said, in LXC
      there's no such XPath and therefore virsh fails currently.
      But hey, we can fallback: the page sizes are exposed under
      '/capabilities/host/topology/cells/cell/pages'. The page
      size can be collected from there, and voilà the command
      works again. But now we must make sure that there are no
      duplicates in the array passed to the public API. Otherwise
      we won't get as beautiful output as we are getting now.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      f69ece07
  12. 02 6月, 2015 2 次提交
  13. 18 5月, 2015 1 次提交
  14. 15 11月, 2014 1 次提交
  15. 11 11月, 2014 1 次提交
    • H
      Fix invalid log, misused option types and a typo · 12bd207e
      Hao Liu 提交于
      This patch fixes the following issues.
      
      1)  When an invalid wwn is introduced, libvirt reports
          "Malformed wwn: %s". The template won't be replaced.
      
      2)  "target" option for dompmsuspend and "xml" option for
          save-image-define are required options and should use
          VSH_OT_DATA instead of VSH_OT_STRING as an option type.
      
      3)  A typo.
      Signed-off-by: NHao Liu <hliu@redhat.com>
      12bd207e
  16. 29 9月, 2014 1 次提交
  17. 25 9月, 2014 1 次提交
  18. 23 9月, 2014 1 次提交
  19. 05 9月, 2014 1 次提交
    • E
      maint: use consistent if-else braces in remaining spots · d194d6e7
      Eric Blake 提交于
      I'm about to add a syntax check that enforces our documented
      HACKING style of always using matching {} on if-else statements.
      
      This patch focuses on all remaining problems, where there weren't
      enough issues to warrant splitting it further.
      
      * src/remote/remote_driver.c (doRemoteOpen): Correct use of {}.
      * src/security/virt-aa-helper.c (vah_add_path, valid_path, main):
      Likewise.
      * src/rpc/virnetsocket.c (virNetSocketNewConnectLibSSH2):
      Likewise.
      * src/esx/esx_vi_types.c (esxVI_Type_FromString): Likewise.
      * src/uml/uml_driver.c (umlDomainDetachDevice): Likewise.
      * src/util/viralloc.c (virShrinkN): Likewise.
      * src/util/virbuffer.c (virBufferURIEncodeString): Likewise.
      * src/util/virdbus.c (virDBusCall): Likewise.
      * src/util/virnetdev.c (virNetDevValidateConfig): Likewise.
      * src/util/virnetdevvportprofile.c
      (virNetDevVPortProfileGetNthParent): Likewise.
      * src/util/virpci.c (virPCIDeviceIterDevices)
      (virPCIDeviceWaitForCleanup)
      (virPCIDeviceIsBehindSwitchLackingACS): Likewise.
      * src/util/virsocketaddr.c (virSocketAddrGetNumNetmaskBits):
      Likewise.
      * src/util/viruri.c (virURIParseParams): Likewise.
      * daemon/stream.c (daemonStreamHandleAbort): Likewise.
      * tests/testutils.c (virtTestResult): Likewise.
      * tests/cputest.c (cpuTestBaseline): Likewise.
      * tools/virsh-domain.c (cmdDomPMSuspend): Likewise.
      * tools/virsh-host.c (cmdNodeSuspend): Likewise.
      * src/esx/esx_vi_generator.py (Type.generate_typefromstring):
      Tweak generated code.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      d194d6e7
  20. 22 8月, 2014 1 次提交
  21. 03 7月, 2014 1 次提交
  22. 24 6月, 2014 1 次提交
    • M
      cmdFreepages: initialize @tmp · 8d8e1d9d
      Michal Privoznik 提交于
      In the 404bac14 the @tmp variable was introduced. It's purpose is to
      avoid typecasting when parsing --pagesize argument. However, if the
      argument is not presented, tmp may be used uninitialized resulting in
      bogus virNodeGetFreePages() API call:
      
      virsh freepages --cellno 2
      error: Failed to open file '/sys/devices/system/node/node2/hugepages/hugepages-4294967295kB/free_hugepages': No such file or directory
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      8d8e1d9d
  23. 19 6月, 2014 2 次提交
  24. 06 6月, 2014 1 次提交
  25. 25 3月, 2014 1 次提交
  26. 25 2月, 2014 1 次提交
  27. 06 2月, 2014 2 次提交
  28. 22 1月, 2014 1 次提交
  29. 20 1月, 2014 1 次提交
  30. 24 9月, 2013 1 次提交
  31. 16 9月, 2013 1 次提交
  32. 11 7月, 2013 1 次提交
  33. 02 5月, 2013 1 次提交
    • M
      virutil: Move string related functions to virstring.c · 7c9a2d88
      Michal Privoznik 提交于
      The source code base needs to be adapted as well. Some files
      include virutil.h just for the string related functions (here,
      the include is substituted to match the new file), some include
      virutil.h without any need (here, the include is removed), and
      some require both.
      7c9a2d88
  34. 05 4月, 2013 1 次提交
    • P
      virsh: Move cmdConnect from virsh-host.c to virsh.c · ca9e73eb
      Peter Krempa 提交于
      The function is used to establish connection so it should be in the main
      virsh file. This movement also enables further improvements done in next
      patches.
      
      Note that the "connect" command has moved from the host section of virsh to the
      main section. It is now listed by 'virsh help virsh' instead of 'virsh help
      host'.
      ca9e73eb
  35. 21 3月, 2013 1 次提交
  36. 15 3月, 2013 1 次提交
    • M
      Cleanup useless flags specifications · 73cc87d1
      Martin Kletzander 提交于
      After we switched to C99 initialization, I noticed there were many
      places where the specification of .flags parameter differed.  After
      going through many options and deciding whether to unify the
      initialization to be '.flags = 0' or '.flags = VSH_OFLAG_NONE', I
      realized both can be removed and it makes the code easier to go
      through.
      73cc87d1
  37. 13 2月, 2013 1 次提交