1. 11 1月, 2017 2 次提交
    • L
      conf: aggregate multiple pcie-root-ports onto a single slot · 147ebe6d
      Laine Stump 提交于
      Set the VIR_PCI_CONNECT_AGGREGATE_SLOT flag for pcie-root-ports so
      that they will be assigned to all the functions on a slot.
      
      Some qemu test case outputs had to be adjusted due to the
      pcie-root-ports now being put on multiple functions.
      147ebe6d
    • L
      qemu: use virDomainPCIAddressSetAllMulti() to set multi when needed · 8f400871
      Laine Stump 提交于
      If there are multiple devices assigned to the different functions of a
      single PCI slot, they will not work properly if the device at function
      0 doesn't have its "multi" attribute turned on, so it makes sense for
      libvirt to turn it on during PCI address assignment. Setting multi
      then assures that the new setting is stored in the config (so it will
      be used next time the domain is started), preventing any potential
      problems in the case that a future change in the configuration
      eliminates the devices on all non-0 functions (multi will still be set
      for function 0 even though it is the only function in use on the slot,
      which has no useful purpose, but also doesn't cause any problems).
      
      (NB: If we were to instead just decide on the setting for
      multifunction at runtime, a later removal of the non-0 functions of a
      slot would result in a silent change in the guest ABI for the
      remaining device on function 0 (although it may seem like an
      inconsequential guest ABI change, it *is* a guest ABI change to turn
      off the multi bit).)
      8f400871
  2. 10 1月, 2017 2 次提交
    • A
      qemu: Use virtio-pci by default for mach-virt guests · 1d845463
      Andrea Bolognani 提交于
      virtio-pci is the way forward for aarch64 guests: it's faster
      and less alien to people coming from other architectures.
      Now that guest support is finally getting there (Fedora 24,
      CentOS 7.3, Ubuntu 16.04 and Debian testing all support
      virtio-pci out of the box), we'd like to start using it by
      default instead of virtio-mmio.
      
      Users and applications can already opt-in by explicitly using
      
        <address type='pci'/>
      
      inside the relevant elements, but that's kind of cumbersome and
      requires all users and management applications to adapt, which
      we'd really like to avoid.
      
      What we can do instead is use virtio-mmio only if the guest
      already has at least one virtio-mmio device, and use virtio-pci
      in all other situations.
      
      That means existing virtio-mmio guests will keep using the old
      addressing scheme, and new guests will automatically be created
      using virtio-pci instead. Users can still override the default
      in either direction.
      
      Existing tests such as aarch64-aavmf-virtio-mmio and
      aarch64-virtio-pci-default already cover all possible
      scenarios, so no additions to the test suites are necessary.
      1d845463
    • 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
  3. 07 1月, 2017 3 次提交
  4. 06 1月, 2017 6 次提交
  5. 05 1月, 2017 1 次提交
  6. 04 1月, 2017 1 次提交
  7. 02 1月, 2017 7 次提交
  8. 22 12月, 2016 1 次提交
    • P
      tests: enable virpolkittest on any ELF platform · c782a8d9
      Pino Toscano 提交于
      This tests uses preload, which should work on any ELF-based platform
      (and indeed it passes on Linux, GNU/kFreeBSD, and FreeBSD).
      
      Also remove the WITH_DBUS conditional, as the test is already built
      based on that conditional.
      c782a8d9
  9. 21 12月, 2016 1 次提交
  10. 20 12月, 2016 1 次提交
  11. 19 12月, 2016 1 次提交
  12. 16 12月, 2016 4 次提交
  13. 14 12月, 2016 2 次提交
  14. 13 12月, 2016 1 次提交
  15. 09 12月, 2016 1 次提交
    • J
      tests: Fix virmacmaptest when allocation fails · 80acf4b8
      John Ferlan 提交于
      If the allocation fails in DO_TEST_FLUSH_PROLOGUE, then 'mgr == NULL',
      but the code continues on - which won't be good. So modify the macro
      to cause an immediate failure and jump to a cleanup label.
      
      Found by Coverity as FORWARD_NULL event.
      80acf4b8
  16. 08 12月, 2016 2 次提交
    • M
      qemu: Create hugepage path on per domain basis · f55afd83
      Michal Privoznik 提交于
      If you've ever tried running a huge page backed guest under
      different user than in qemu.conf, you probably failed. Problem is
      even though we have corresponding APIs in the security drivers,
      there's no implementation and thus we don't relabel the huge page
      path. But even if we did, so far all of the domains share the
      same path:
      
         /hugepageMount/libvirt/qemu
      
      Our only option there would be to set 0777 mode on the qemu dir
      which is totally unsafe. Therefore, we can create dir on
      per-domain basis, i.e.:
      
         /hugepageMount/libvirt/qemu/domainName
      
      and chown domainName dir to the user that domain is configured to
      run under.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      f55afd83
    • M
      conf: Make scheduler formatting simpler · dc18766b
      Martin Kletzander 提交于
      Since the great rework of how we store vcpu- and iothread-related
      data, we have overly complex part of code that is trying to format the
      scheduler tuning data in as less lines as possible by grouping
      settings for multiple threads.  That was designed as an input syntax
      sugar for users, but we don't need to also use that when formatting
      the XML.  Switching to simple enumeration makes the code nicer,
      shorter and more welcoming to future changes.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      dc18766b
  17. 07 12月, 2016 3 次提交
  18. 06 12月, 2016 1 次提交
    • M
      nss: Introduce libvirt-guest module · 22f7ceb6
      Michal Privoznik 提交于
      So far the NSS module looks up only hostnames as provided by
      guests themselves. However, there are some cases where this is
      not enough: e.g. when there's a fresh new guest being installed
      (with some generic hostname) say from a live ISO image; or some
      (older) systems don't advertise their hostname in DHCP
      transactions at all.
      In cases like that it would be helpful if we translate domain
      name as seen by libvirt too so that users can:
      
        # virsh start $dom && ssh $dom
      
      In order to achieve that new libvirt-guest module is introduced,
      while older libvirt module maintains its current behaviour (that
      is translating guest provided names into IP addresses).
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      22f7ceb6