1. 27 3月, 2017 35 次提交
  2. 26 3月, 2017 5 次提交
    • 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