1. 17 2月, 2016 27 次提交
  2. 16 2月, 2016 8 次提交
    • A
      tests: Add more GIC test cases · 998a936c
      Andrea Bolognani 提交于
      Test all kinds of scenarios, including guests asking for GIC but
      failing to specify a version, guests specifying an invalid version
      and guests trying to use GIC with non-virt or even non-ARM machines.
      998a936c
    • A
      tests: Reorganize and simplify GIC test cases · 161a3418
      Andrea Bolognani 提交于
      Unify the naming to prepare for new test cases that will be added
      later on.
      
      Convert a couple of output XML files for the qemuxml2xml test to
      symlinks while at it, since they were identical to the corresponding
      input XML files anyways.
      
      Moreover, since we're only interested in testing GIC support here,
      simplify XML files by getting rid of the unrelevant bits.
      161a3418
    • A
      qemu: Always enable GIC on ARM virt machines · bd236950
      Andrea Bolognani 提交于
      GIC is always available to ARM virt machines, and the domain XML should
      reflect this fact.
      bd236950
    • A
      qemu: Default to GIC v2 · 5b2c2a10
      Andrea Bolognani 提交于
      When a domain is configured to use GIC but no version has been
      specified by the user, default to GIC v2.
      5b2c2a10
    • A
      conf: Use virGICVersion enumeration in virDomainDef · 768b7ed2
      Andrea Bolognani 提交于
      Instead of allowing any random positive number, restrict the possible
      values to the ones that are part of the virGICVersion enumeration.
      768b7ed2
    • A
      schema: List allowed GIC versions · 2a7b11ea
      Andrea Bolognani 提交于
      This change allows to use "host" as a GIC version in the domain XML.
      
      Since we'll need to update the virGICVersion enumeration to support
      new GIC versions anyway, it makes sense to be a bit more strict in
      the schema as well and reject values that are not in the enumeration.
      2a7b11ea
    • A
      gic: Introduce virGICVersion enumeration · e76bef7f
      Andrea Bolognani 提交于
      We currently blindly accept any numeric value as a GIC version, even
      though only GIC v2 and GIC v3 actually exist; on the other hand, we
      reject "host", which is a perfectly legitimate value for QEMU guests.
      
      This new enumeration contains all GIC versions libvirt is aware of.
      e76bef7f
    • L
      qemu: fix hot unplug of PCI devices with VFIO · 8fbdff16
      Ludovic Beliveau 提交于
      Currently, on hot unplug of PCI devices with VFIO driver for QEMU, libvirt is
      trying to restore the host devices to it's previous value (basically a chown
      on the previous user/group).
      
      However for devices with VFIO driver, when the device is unbinded it is
      removed from the /dev/vfio file system causing the restore label to fail.
      
      The fix is to not restore the label for those PCI devices since they are going
      to be teared down anyway.
      Signed-off-by: NLudovic Beliveau <ludovic.beliveau@windriver.com>
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      8fbdff16
  3. 15 2月, 2016 5 次提交
    • J
      Spell VMware with a lowercase w · d6165440
      Ján Tomko 提交于
      Replace all occurrences of VMWare outside the news.
      d6165440
    • P
      vsh: Replace vshPrint macro with function · 27fa42b2
      Peter Krempa 提交于
      The macro would eat the first parameter. In some cases the format string
      for vshPrint was eaten. In other cases the calls referenced variables
      which did not exist in the given context. Avoid errors by doing compile
      time checking.
      27fa42b2
    • P
      vsh: Simplify bailing out on OOM conditions · 018010f0
      Peter Krempa 提交于
      When we hit OOM it doesn't really make sense to format the error message
      by attempting to allocate it. Introduce a simple helper that prints a
      static message and terminates the execution.
      018010f0
    • L
      util: clean up and expand 802.1QbX negotiation logging · 9cb8b0e5
      Laine Stump 提交于
      The existing log messages for this have several problems; there are
      two lines of log when one will suffice, they duplicate the function
      name in log message (when it's already included by VIR_DEBUG), they're
      missing some useful bits, they get logged even when the call is a NOP.
      
      This patch cleans up the problems with those existing logs, and also
      adds a new VIR_INFO-level log down at the function that is actually
      creating and sending the netlink message that logs *everything* going
      into the netlink message (which turns out to be much more useful in
      practice for me; I didn't want to eliminate the logs at the existing
      location though, in case they are useful in some scenario I'm
      unfamiliar with; anyway those logs are remaining at debug level, so it
      shouldn't be a bother to anyone).
      9cb8b0e5
    • L
      network: consolidated info log for all network allocate/free operations · eb72bd63
      Laine Stump 提交于
      There are three functions that deal with allocating and freeing
      devices from a networks netdev/pci device pool:
      network(Allocate|Notify|Release)ActualDevice(). These functions also
      maintain a counter of the number of domains currently using a network
      (regardless of whether or not that network uses a device pool). Each
      of these functions had multiple log messages (output using VIR_DEBUG)
      that were in slightly different formats and gave varying amounts of
      information.
      
      This patch creates a single function to log the pertinent information
      in a consistent manner for all three of these functions. Along with
      assuring that all the functions produce a consistent form of output
      (and making it simpler to change), it adds the MAC address of the
      domain interface involved in the operation, making it possible to
      verify which interface of which domain the operation is being done for
      (assuming that all MAC addresses are unique, of course).
      
      All of these messages are raised from DEBUG to INFO, since they don't
      happen that often (once per interface per domain/libvirtd start or
      domain stop), and can be very informative and helpful - eliminating
      the need to log debug level messages makes it much easier to sort
      these out.
      eb72bd63