1. 12 3月, 2017 2 次提交
    • F
      bhyve: add video support · 04664327
      Fabian Freyer 提交于
      bhyve supports 'gop' video device that allows clients to connect
      to VMs using VNC clients. This commit adds support for that to
      the bhyve driver:
      
       - Introducr 'gop' video device type
       - Add capabilities probing for the 'fbuf' device that's
         responsible for graphics
       - Update command builder routines to let users configure
         domain's VNC via gop graphics.
      Signed-off-by: NRoman Bogorodskiy <bogorodskiy@gmail.com>
      04664327
    • R
      virt-host-validate: add bhyve support · 321ff408
      Roman Bogorodskiy 提交于
      Add bhyve support to virt-host-validate(1). It checks for the
      essential kernel modules to be available so that user can actually
      start VMs, have networking and console access.
      
      It uses the kldnext(2)/kldstat(2) routines to retrieve modules list.
      As bhyve is only available on FreeBSD and these routines were available
      long before bhyve appeared, not adding any specific configure checks
      for that.
      
      Also, update tools/Makefile.am to add
      virt-host-validate-$driver.[hc] to the build only if the
      appropriate driver is enabled.
      321ff408
  2. 08 3月, 2017 1 次提交
    • J
      conf: Introduce virnwfilterobj · 079747a3
      John Ferlan 提交于
      Move all the NWFilterObj API's into their own module virnwfilterobj
      from the nwfilter_conf
      
      Purely code motion at this point, plus adjustments to cleanly build.
      079747a3
  3. 06 3月, 2017 1 次提交
    • J
      conf: Introduce virinterfaceobj · eabeff8e
      John Ferlan 提交于
      Move all the InterfaceObj API's into their own module virinterfaceobj
      from the interface_conf
      
      Purely code motion at this point.
      eabeff8e
  4. 04 3月, 2017 1 次提交
    • J
      conf: Introduce virnodedeviceobj · bc20200e
      John Ferlan 提交于
      Move all the NodeDeviceObj API's into their own module virnodedeviceobj
      from the node_device_conf
      
      Purely code motion at this point, plus adjustments to cleanly build.
      bc20200e
  5. 19 2月, 2017 2 次提交
    • J
      util: Move scsi_host specific functions from virutil · 03346def
      John Ferlan 提交于
      Create a virscsihost.c and place the functions there. That removes the
      last #ifdef __linux__ from virutil.c.
      
      Take the opporunity to also change the function names and in one case
      the parameters slightly
      03346def
    • J
      util: Create a new virvhba module and move/rename API's · 16416816
      John Ferlan 提交于
      Rather than have them mixed in with the virutil apis, create a separate
      virvhba.c module and move the vHBA related calls into there. Soon there
      will be more added.
      
      Also modify the names of the functions and some arguments to be more
      indicative of what is really happening. Adjust the callers respectively.
      
      While I was changing fchosttest, rather than the non-descriptive names
      test1...test6, rename them to match what the test is doing.
      16416816
  6. 31 1月, 2017 1 次提交
    • R
      bhyve: fix SATA address allocation · 803966c7
      Roman Bogorodskiy 提交于
      As bhyve for a long time didn't have a notion of the explicit SATA
      controller and created a controller for each drive, the bhyve driver
      in libvirt acted in a similar way and didn't care about the SATA
      controllers and assigned PCI addresses to drives directly, as
      the generated command will look like this anyway:
      
       2:0,ahci-hd,somedisk.img
      
      This no longer makes sense because:
      
       1. After commit c07d1c1c it's not possible to assign
          PCI addresses to disks
       2. Bhyve now supports multiple disk drives for a controller,
          so it's going away from 1:1 controller:disk mapping, so
          the controller object starts to make more sense now
      
      So, this patch does the following:
      
       - Assign PCI address to SATA controllers (previously we didn't do this)
       - Assign disk addresses instead of PCI addresses for disks. Now, when
         building a bhyve command, we take PCI address not from the disk
         itself but from its controller
       - Assign addresses at XML parsing time using the
         assignAddressesCallback. This is done mainly for being able to
         verify address allocation via xml2xml tests
       - Adjust existing bhyvexml2{xml,argv} tests to chase the new
         address allocation
      
      This patch is largely based on work of Fabian Freyer.
      803966c7
  7. 26 1月, 2017 1 次提交
  8. 19 1月, 2017 1 次提交
  9. 06 1月, 2017 1 次提交
  10. 09 12月, 2016 1 次提交
  11. 06 12月, 2016 1 次提交
  12. 25 11月, 2016 1 次提交
    • E
      util: Management routines for scsi_host devices · 629544be
      Eric Farman 提交于
      For a new hostdev type='scsi_host' we have a number of
      required functions for managing, adding, and removing the
      host device to/from guests.  Provide the basic infrastructure
      for these tasks.
      
      The name "SCSIVHost" (and its variants) is chosen to avoid
      conflicts with existing code named "SCSIHost" to refer to
      a hostdev type='scsi' protcol='none'.
      Signed-off-by: NEric Farman <farman@linux.vnet.ibm.com>
      629544be
  13. 15 11月, 2016 1 次提交
    • P
      libssh_transport: add new libssh-based transport · 6917467c
      Pino Toscano 提交于
      Implement a new libssh transport, which uses libssh to communicate with
      remote hosts, and add all the build system stuff (search of libssh,
      private symbols, etc) to built it.
      
      This new transport supports all the common ssh authentication methods,
      making use of libvirt's auth callbacks for interaction with the user.
      6917467c
  14. 14 11月, 2016 1 次提交
    • E
      datatypes: Introduce some admin-related close callback handling helpers · 7cea74a3
      Erik Skultety 提交于
      Well, there were three different spots where closeCallback->freeCallback was
      called, not looking the same --> potential for bugs - and there indeed is a bug
      with refcounting of the @conn object. So this patch partially follows the path
      set by commit 24dbb69f by introducing some close callback helpers both to
      replace all the spots where we call clean the close callback data with a
      dedicated function and to be able to fix the refcounting bug causing a memleak.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      7cea74a3
  15. 22 9月, 2016 1 次提交
    • J
      cpu: Rework cpuUpdate · 3b6be3c0
      Jiri Denemark 提交于
      The reworked API is now called virCPUUpdate and it should change the
      provided CPU definition into a one which can be consumed by the QEMU
      command line builder:
      
          - host-passthrough remains unchanged
          - host-model is turned into custom CPU with a model and features
            copied from host
          - custom CPU with minimum match is converted similarly to host-model
          - optional features are updated according to host's CPU
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      3b6be3c0
  16. 02 8月, 2016 1 次提交
    • J
      Introduce node device lifecycle event APIs · fcabc1ca
      Jovanka Gulicoska 提交于
      Node device lifecycle event API entry points for registering and
      deregistering node deivce events, as well as types of events
      associated with node device.
      These entry points will be used for implementing asynchronous
      lifecycle events.
      
      Node device API:
      virConnectNodeDeviceEventRegisterAny
      virConnectNodeDeviceEventDeregisterAny
      virNodeDeviceEventLifecycleType which has events CREATED and DELETED
      fcabc1ca
  17. 12 7月, 2016 2 次提交
  18. 11 7月, 2016 2 次提交
    • F
      bhyve: implement virConnectDomainXMLFromNative · 01163b1b
      Fabian Freyer 提交于
      First, remove escaped newlines and split up the string into an argv-list for
      the bhyve and loader commands, respectively. This is done by iterating over the
      string splitting it by newlines, and then re-iterating over each line,
      splitting it by spaces.
      
      Since this code reuses part of the code of qemu_parse_command.c
      (in bhyveCommandLine2argv), add the appropriate copyright notices.
      Signed-off-by: NFabian Freyer <fabian.freyer@physik.tu-berlin.de>
      01163b1b
    • F
      gnulib: add getopt module · b436a8ae
      Fabian Freyer 提交于
      Unconditionally use gnulib's getopt module. This is needed by the bhyve driver
      to provide a reentrant interface for getopt.
      
      Several gnulib headers rely on features.h being included by ctype.h to provide
      __GNUC_PREREQ, but on systems without glibc, this is not provided. In these
      cases __GNUC_PREREQ gets redefined to 0, which causes build errors from checks
      in src/internal.h.
      Therefore, define __GNUC_PREREQ as early as possible. config-post.h is probably
      the first header that is included, before any other headers.
      b436a8ae
  19. 01 7月, 2016 1 次提交
  20. 27 6月, 2016 1 次提交
  21. 24 6月, 2016 1 次提交
  22. 14 6月, 2016 2 次提交
  23. 10 6月, 2016 2 次提交
  24. 07 6月, 2016 1 次提交
  25. 16 5月, 2016 1 次提交
    • P
      secret: util: Refactor virSecretGetSecretString · 1d632c39
      Peter Krempa 提交于
      Call the internal driver callbacks rather than the public APIs to avoid
      calling unnecessarily the error dispatching code and don't overwrite
      the error messages provided by the APIs. They are good enough to
      describe which secret is missing either by UUID or the usage (basically
      name).
      1d632c39
  26. 26 4月, 2016 1 次提交
    • J
      secret: Introduce virSecretObjListAdd* and virSecretObjListRemove · d4287b98
      John Ferlan 提交于
      Add the functions to add/remove elements from the hashed secret obj list.
      These will replace secret_driver functions secretAssignDef and secretObjRemove.
      
      The virSecretObjListAddLocked will perform the necessary lookups and
      decide whether to replace an existing hash entry or create a new one.
      This includes setting up the configPath and base64Path as well as being
      able to support the caller's need to restore from a previous definition
      in case something goes wrong in the caller.
      d4287b98
  27. 18 4月, 2016 2 次提交
  28. 11 4月, 2016 1 次提交
  29. 10 4月, 2016 1 次提交
    • E
      po: fix POTFILES.in file ordering · e72667bd
      Erik Skultety 提交于
      When it comes to a situation that a new translatable file needs to be added
      into the list of files, an automatically generated patch is proposed during
      syntax-check. However, the diff was made against a sorted list of files and
      the same sorted list of files + the new file that actually needs to be added
      into the list. Since we do not keep POTFILES sorted, the proposed patch thus
      can't be applied...most of the time - depending on the context.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      e72667bd
  30. 07 4月, 2016 1 次提交
    • J
      secret: Introduce virSecretGetSecretString · 2844de6f
      John Ferlan 提交于
      Commit id 'fb2bd208' essentially copied the qemuGetSecretString
      creating an libxlGetSecretString.  Rather than have multiple copies
      of the same code, create src/secret/secret_util.{c,h} files and
      place the common function in there.
      
      Modify the the build in order to build the module as a library
      which is then pulled in by both the qemu and libxl drivers for
      usage from both qemu_command.c and libxl_conf.c
      2844de6f
  31. 29 3月, 2016 1 次提交
  32. 19 3月, 2016 1 次提交
  33. 16 3月, 2016 1 次提交
    • E
      virlog: Refactor virLogParseOutputs · 0b231195
      Erik Skultety 提交于
      The problem with the original virLogParseOutputs method was that the way it
      parsed the input, walking the string char by char and using absolute jumps
      depending on the virLogDestination type, was rather complicated to read.
      This patch utilizes virStringSplit method twice, first time to filter out any
      spaces and split the input to individual log outputs and then for each
      individual output to tokenize it by to the parts according to our
      PRIORITY:DESTINATION?(:DATA) format. Also, to STREQLEN for matching destination
      was replaced with virDestinationTypeFromString call.
      0b231195