1. 27 3月, 2017 17 次提交
  2. 26 3月, 2017 6 次提交
    • R
      bhyve: add xhci tablet support · daecaea0
      Roman Bogorodskiy 提交于
      Along with video and VNC support, bhyve has introduced USB tablet
      support as an input device. This tablet is exposed to a guest
      as a device on an XHCI controller.
      
      At present, tablet is the only supported device on the XHCI controller
      in bhyve, so to make things simple, it's allowed to only have a
      single XHCI controller with a single tablet device.
      
      In detail, this commit:
      
       - Introduces a new capability bit for XHCI support in bhyve
       - Adds an XHCI controller and tabled support with 1:1 mapping
         between them
       - Adds a couple of unit tests
      daecaea0
    • R
      bhyve: helper function to probe hypervisor caps · 9bf6b9df
      Roman Bogorodskiy 提交于
      There are a number of functions in bhyve_capabilities.c that probe
      hypervisor capabilities by executing the bhyve(1) binary with the
      specific device arugment, checking error message (if any) and setting
      proper capability bit. As those are extremely similar, move this logic
      into a helper function and convert existing functions to use that.
      9bf6b9df
    • R
      domaincapstest: add bhyve caps test · 74cfb5bb
      Roman Bogorodskiy 提交于
       * Extract filling bhyve capabilities from virBhyveDomainCapsBuild()
         into a new function virBhyveDomainCapsFill() to make testing
         easier by not having to mock firmware directory listing and
         hypervisor capabilities probing
       * Also, just presence of the firmware files is not sufficient
         to enable os.loader.supported, hypervisor should support UEFI
         boot too
       * Add tests to domaincapstest for the main caps possible flows:
          - when UEFI bootrom is supported
          - when video (fbus) is supported
          - neither of above is supported
      74cfb5bb
    • R
      schema: domaincaps: make machine element optional · c27aa647
      Roman Bogorodskiy 提交于
      Commit df769041 made the 'machine' element in domaincaps
      optional. Update the schema to reflect that.
      c27aa647
    • R
      qemu: fix build with clang · 4035baeb
      Roman Bogorodskiy 提交于
      qemuMigrationResetTLS() does not initialize 'ret' by default,
      so when it jumps to 'cleanup' on error, the 'ret' variable will be
      uninitialized, which clang complains about.
      
      Set it to '-1' by default.
      4035baeb
    • R
      virpci: fix build on non-Linux · 27a59a92
      Roman Bogorodskiy 提交于
      virPCIGetDeviceAddressFromSysfsLink() should return
      virPCIDeviceAddressPtr, so return NULL in the stub instead of "-1".
      27a59a92
  3. 25 3月, 2017 11 次提交
  4. 24 3月, 2017 6 次提交
    • P
      qemu: snapshot: Forbid internal snapshots with pflash firmware · 9e246583
      Peter Krempa 提交于
      If the variable store (<nvram>) file is raw qemu can't do a snapshot of
      it and thus the snapshot fails. QEMU rejects such snapshot by a message
      which would not be properly interpreted as an error by libvirt.
      
      Additionally allowing to use a qcow2 variable store backing file would
      solve this issue but then it would become eligible to become target of
      the memory dump.
      
      Offline internal snapshot would be incomplete too with either storage
      format since libvirt does not handle the pflash file in this case.
      
      Forbid such snapshot so that we can avoid problems.
      9e246583
    • L
      network: only check for IPv6 RA routes when the network has an IPv6 address · a1f46c71
      Laine Stump 提交于
      commit 00d28a78 added a check to see if there were any IPv6 routes
      added by RA (Router Advertisement) via an interface that had accept_ra
      set to something other than "2". The check was being done
      unconditionally, but it's only relevant if IPv6 forwarding is going to
      be turned on, and that will only happen if the network has an IPv6
      address.
      a1f46c71
    • J
      Revert "qemu: forbid migration with an IOMMU device" · da17090b
      Ján Tomko 提交于
      This reverts commit b7118623.
      
      Migration was implemented by QEMU commit:
      commit 8cdcf3c1e58d04b6811956d7608efeb66c42d719
      Author: Peter Xu <peterx@redhat.com>
      Date:   Fri Jan 6 12:06:13 2017 +0800
      
          intel_iommu: allow migration
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1433994
      da17090b
    • L
      util: new function virNetDevPFGetVF() · 554253ad
      Laine Stump 提交于
      Given an SRIOV PF netdev name (e.g. "enp2s0f0") and VF#, this new
      function returns the netdev name of the referenced VF device
      (e.g. "enp2s11f6"), or NULL if the device isn't bound to a net driver.
      554253ad
    • L
      util: new internal function to permit silent failure of virNetDevSetMAC() · f4ef3a71
      Laine Stump 提交于
      We will want to allow silent failure of virNetDevSetMAC() in the case
      that the SIOSIFHWADDR ioctl fails with errno == EADDRNOTAVAIL. (Yes,
      that is very specific, but we really *do* want a logged failure in all
      other circumstances, and don't want to duplicate code in the caller
      for the other possibilities).
      
      This patch renames the 3 different virNetDevSetMAC() functions to
      virNetDevSetMACInternal(), adding a 3rd arg called "quiet" and making
      them static (because this extra control will only be needed within
      virnetdev.c). A new global virNetDevSetMAC() is defined that calls
      whichever of the three *Internal() functions gets compiled with quiet
      = false. Callers in virnetdev.c that want to notice a failure with
      errno == EADDRNOTAVAIL and retry with a different strategy rather than
      immediately failing, can call virNetDevSetMACInternal(..., true).
      f4ef3a71
    • L
      util: new function virPCIDeviceRebind() · 251d179b
      Laine Stump 提交于
      This function unbinds a device from its driver, then immediately
      rebinds it to its driver again. The code for this new function is just
      the 2nd half of virPCIDeviceBindWithDriverOverride(), so that
      function's 2nd half is replaced with a call to virPCIDeviceRebind().
      251d179b
新手
引导
客服 返回
顶部