1. 25 3月, 2017 1 次提交
  2. 12 3月, 2017 1 次提交
    • 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
  3. 08 3月, 2017 9 次提交
  4. 07 3月, 2017 1 次提交
  5. 23 2月, 2017 2 次提交
    • D
      Add ATTRIBUTE_FALLTHROUGH for switch cases without break · 5d84f596
      Daniel P. Berrange 提交于
      In GCC 7 there is a new warning triggered when a switch
      case has a conditional statement (eg if ... else...) and
      some of the code paths fallthrough to the next switch
      statement. e.g.
      
      conf/domain_conf.c: In function 'virDomainChrEquals':
      conf/domain_conf.c:14926:12: error: this statement may fall through [-Werror=implicit-fallthrough=]
               if (src->targetTypeAttr != tgt->targetTypeAttr)
                  ^
      conf/domain_conf.c:14928:5: note: here
           case VIR_DOMAIN_CHR_DEVICE_TYPE_CONSOLE:
           ^~~~
      conf/domain_conf.c: In function 'virDomainChrDefFormat':
      conf/domain_conf.c:22143:12: error: this statement may fall through [-Werror=implicit-fallthrough=]
               if (def->targetTypeAttr) {
                  ^
      conf/domain_conf.c:22151:5: note: here
           default:
           ^~~~~~~
      
      GCC introduced a __attribute__((fallthrough)) to let you
      indicate that this is intentionale behaviour rather than
      a bug.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      5d84f596
    • J
      virsh: Alter formatting a bit for output of domstats fields · ff029e44
      John Ferlan 提交于
      Alter the formatting of each line to not give the appearance of
      one long run-on sentence and to be consistent between the various
      elements of collected/displayed data. The formatting should fit
      within the 80 character display. This removes the need for commas
      at the end of each line.
      ff029e44
  6. 21 2月, 2017 1 次提交
  7. 17 2月, 2017 1 次提交
    • M
      nodedev: Introduce new drm cap · 78c01869
      Michal Privoznik 提交于
      After 7f1bdec5 our nodedev driver is capable of
      determining DRM devices (DRM stands for Direct Render Manager not
      Digital rights management). There is still one bit missing
      though: virConnectListAllNodeDevices() is capable of listing
      either all devices or just those with specified capability. Well,
      DRM capability is missing there.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      78c01869
  8. 30 1月, 2017 2 次提交
  9. 27 1月, 2017 3 次提交
  10. 26 1月, 2017 1 次提交
  11. 19 1月, 2017 1 次提交
    • A
      nss: Remove RES_USE_INET6 usage · 5fff7b99
      Andrea Bolognani 提交于
      The recent deprecation in glibc (commit b76e065991ec) means the
      module will fail to build entirely:
      
        nss/libvirt_nss.c: In function '_nss_libvirt_gethostbyname_r':
        nss/libvirt_nss.c:363:13: error: RES_USE_INET6 is deprecated [-Werror]
           int af = ((_res.options & RES_USE_INET6) ? AF_INET6 : AF_INET);
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      This resolver option was removed shortly after being introduced,
      and application using it are already broken anyway.
      5fff7b99
  12. 18 1月, 2017 3 次提交
  13. 17 1月, 2017 1 次提交
  14. 11 1月, 2017 1 次提交
  15. 10 1月, 2017 9 次提交
    • J
      storage: Add overwrite flag checking for logical pool · f573f84e
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1373711
      
      Add support and documentation for the [NO_]OVERWRITE flags for the
      logical backend.
      
      Update virsh.pod with a description of the process for usage of
      the flags and building of the pool's volume group.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      f573f84e
    • J
      storage: Move and rename disk backend label checking · a48c674f
      John Ferlan 提交于
      Rather than have the Disk code having to use PARTED to determine if
      there's something on the device, let's use the virStorageBackendDeviceProbe.
      and only fallback to the PARTED probing if the BLKID code isn't built in.
      
      This will also provide a mechanism for the other current caller (File
      System Backend) to utilize a PARTED parsing algorithm in the event that
      BLKID isn't built in to at least see if *something* exists on the disk
      before blindly trying to use. The PARTED error checking will not find
      file system types, but if there is a partition table set on the device,
      it will at least cause a failure.
      
      Move virStorageBackendDiskValidLabel and virStorageBackendDiskFindLabel
      to storage_backend and rename/rework the code to fit the new model.
      
      Update the virsh.pod description to provide a more generic description
      of the process since we could now use either blkid or parted to find
      data on the target device.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      a48c674f
    • J
      storage: Fix implementation of no-overwrite for file system backend · f23d4bbc
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1363586
      
      Commit id '27758859' introduced the "NO_OVERWRITE" flag check for
      file system backends; however, the implementation, documentation,
      and algorithm was inconsistent. For the "flag" description for the
      API the flag was described as "Do not overwrite existing pool";
      however, within the storage backend code the flag is described
      as "it probes to determine if filesystem already exists on the
      target device, renurning an error if exists".
      
      The code itself was implemented using the paradigm to set up the
      superblock probe by creating a filter that would cause the code
      to only search for the provided format type. If that type wasn't
      found, then the algorithm would return success allowing the caller
      to format the device. If the format type already existed on the
      device, then the code would fail indicating that the a filesystem
      of the same type existed on the device.
      
      The result is that if someone had a file system of one type on the
      device, it was possible to overwrite it if a different format type
      was specified in updated XML effectively trashing whatever was on
      the device already.
      
      This patch alters what NO_OVERWRITE does for a file system backend
      to be more realistic and consistent with what should be expected when
      the caller requests to not overwrite the data on the disk.
      
      Rather than filter results based on the expected format type, the
      code will allow success/failure be determined solely on whether the
      blkid_do_probe calls finds some known format on the device. This
      adjustment also allows removal of the virStoragePoolProbeResult
      enum that was under utilized.
      
      If it does find a formatted file system different errors will be
      generated indicating a file system of a specific type already exists
      or a file system of some other type already exists.
      
      In the original virsh support commit id 'ddcd5674', the description
      for '--no-overwrite' within the 'pool-build' command help output
      has an ambiguous "of this type" included in the short description.
      Compared to the longer description within the "Build a given pool."
      section of the virsh.pod file it's more apparent that the meaning
      of this flag would cause failure if a probe of the target already
      has a filesystem.
      
      So this patch also modifies the short description to just be the
      antecedent of the 'overwrite' flag, which matches the API description.
      This patch also modifies the grammar in virsh.pod for no-overwrite
      as well as reworking the paragraph formats to make it easier to read.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      f23d4bbc
    • L
      docs: fix list of domain states in virsh manpage · 24d4a0a1
      Laine Stump 提交于
      The virsh manpage lists "shutdown" and "dying" as two of the possible
      domain states that could be listed in the output of the "virsh list"
      command. However, a domain that is being shutdown will be listed as
      "in shutdown", and the "dying" state doesn't even exist (and never
      has, as far as I can tell from looking through git history - it was
      shown in the original import of the virsh.pod file in 2006; there was
      no VIR_DOMAIN_DYING state then, there wasn't one when those lines of
      virsh.pod were tweaked in 2008, and there still isn't one
      today. Apparently it was just something that sounded like a good idea
      to someone at some time, but was never implemented...)
      
      Resolves: https://bugzilla.redhat.com/1408778
      24d4a0a1
    • N
      perf: Add cache_l1d perf event support · ae16c95f
      Nitesh Konkar 提交于
      This patch adds support and documentation for
      a generalized hardware cache event called cache_l1d
      perf event.
      Signed-off-by: NNitesh Konkar <nitkon12@linux.vnet.ibm.com>
      ae16c95f
    • N
      docs: Reword virsh manpage for --uuid --name --table options · 0977ada8
      Nitesh Konkar 提交于
      The virsh manpage lists options --uuid and --name as
      mutually exclusive along option --table when actually
      the option --table is mutually exclusive and can't go
      with options --uuid and/or --name. This patch rewords the
      virsh manpage to state the correct meaning.
      Signed-off-by: NNitesh Konkar <nitkon12@linux.vnet.ibm.com>
      0977ada8
    • N
      virsh: Display perf enabled/disabled message for set operations · 0289b8b2
      Nitesh Konkar 提交于
      When setting perf events, the enabled/disabled perf events are not
      listed. Since we know which events were changed it's possible to
      print out the values on successful set, such as :
      
          virsh perf Domain --enable instructions --disable cache_misses
          instructions   : enabled
          cache_misses   : disabled
      
      Created a helper to print the messages - use the vshPrintExtra to
      adhere to the --quiet|-q option being set by some script. This will
      cause the get code to print nothing, but will return success/failure.
      Signed-off-by: NNitesh Konkar <nitkon12@linux.vnet.ibm.com>
      0289b8b2
    • N
      virsh: Fix English grammar in the virsh perf manpage · 779073c5
      Nitesh Konkar 提交于
      779073c5
    • D
      secret: add support for value change events · 42241208
      Daniel P. Berrange 提交于
      Emit an event whenever a secret value changes
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      42241208
  16. 09 1月, 2017 2 次提交
  17. 07 1月, 2017 1 次提交