1. 23 11月, 2017 17 次提交
  2. 22 11月, 2017 2 次提交
  3. 21 11月, 2017 3 次提交
  4. 20 11月, 2017 10 次提交
  5. 18 11月, 2017 8 次提交
    • J
      libvirtd: Fix order of cleanup processing · 2f3054c2
      John Ferlan 提交于
      Current cleanup processing is ad-hoc at best - it's led to a couple of
      strange and hard to diagnose timing problems and crashes.
      
      So rather than perform cleanup in a somewhat random order, let's
      perform cleanup in the exact opposite order of startup.
      
      NB: It is possible that virNetlinkEventServerStart fails and we jump
      to cleanup before driversInitialized has been set. That could leave
      things inconsistent; however, resolution of that possibility is perhaps
      more trouble than it's worth to handle.
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      2f3054c2
    • J
      libvirtd: Alter order of virNetDaemonNew · 723cadd9
      John Ferlan 提交于
      Let's be sure we can get a Daemon object before the server object.
      This is a more "orderly" way to do things since the svr object would
      be added to the dmn object afterwards.
      723cadd9
    • J
      libvirtd: Move pid_file_fd setup to before run_dir · b5726b7e
      John Ferlan 提交于
      Once we have forked the daemon successfully, let's claim the pidfile
      immediately rather than waiting for setup of run_dir.
      b5726b7e
    • M
      13f59039
    • M
      qemu: add vmcoreinfo support · 7e4177a3
      Marc-André Lureau 提交于
      Starting from qemu 2.11, the `-device vmcoreinfo` will create a fw_cfg
      entry for a guest to store dump details, necessary to process kernel
      dump with KASLR enabled and providing additional kernel details.
      
      In essence, it is similar to -fw_cfg name=etc/vmcoreinfo,file=X but in
      this case it is not backed by a file, but collected by QEMU itself.
      
      Since the device is a singleton and shouldn't use additional hardware
      resources, it is presented as a <feature> element in the libvirt
      domain XML.
      
      The device is arm/x86 only for now (targets that support fw_cfg+dma).
      
      Related to:
      https://bugzilla.redhat.com/show_bug.cgi?id=1395248Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      7e4177a3
    • M
      tests: Add resctrl-skx-twocaches test case to vircaps2xmltest · d8070145
      Martin Kletzander 提交于
      This doesn't add very much value for now, but future test for virresctrl will
      take information from vircaps2xmldata (since it is dependent on the same info
      then why duplicate it) and this particular use case helps us cover bit more of
      the code regarding proper formatting and handling errors.  And one more test for
      vircaps2xmltest doesn't hurt either.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      d8070145
    • M
      tests: Minor adjustments for test data · 993c7f00
      Martin Kletzander 提交于
      This patch modifies some not yet used test data so that the adding a test using
      this data is a clean patch and not an addition of huge file with some
      adjustments in small files that will be hidden in the middle of that commit.
      These changes include:
      
      - Add system dir in vircaps2xmldata/linux-caches
      
        Back when data for systems with resctrl support were added they had the
        /sys/fs/system directory put into a system/ subdir of the test and
        /sys/fs/resctrl in a resctrl/ subdir of that test.  However, if we also want a
        negative test for the resctrl (requesting allocation on a system that does not
        support resctrl), we need one a test case with any sensible (with cache info)
        system/ subdir and no resctrl/ one.  Easiest way is to add a
        system -> . symlink into existing test case.
      
      - Change default group schemata for linux-resctrl and linux-resctrl-cdp
      
        That way we can fit some allocation in.
      
      - Remove one cache from resctrl-skx's schemata and make some room for
        allocations
      
        That system already has only one cache, so that file was wrong anyway.  We
        have a version with 2 caches already (linux-resctrl-skx-twocaches), so this
        will also add variety to future tests.
      
      - Add some empty allocation for resctrl-skx
      
        Just to have slightly more coverage and variety.  We can be sure nothing bad
        happens if such allocation exists in case we have that in the tests.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      993c7f00
    • M
      02e822e0