1. 05 2月, 2016 5 次提交
    • P
      util: bitmap: Introduce bitmap subtraction · 9479642f
      Peter Krempa 提交于
      Performs binary subtraction of two bitmaps. Stores result in the first
      operand.
      9479642f
    • M
      systemd: Modernize machine naming · c3bd0019
      Martin Kletzander 提交于
      So, systemd-machined has this philosophy that machine names are like
      hostnames and hence should follow the same rules.  But we always allowed
      international characters in domain names.  Thus we need to modify the
      machine name we are passing to systemd.
      
      In order to change some machine names that we will be passing to systemd,
      we also need to call TerminateMachine at the end of a lifetime of a
      domain.  Even for domains that were started with older libvirt.  That
      can be achieved thanks to virSystemdGetMachineNameByPID().  And because
      we can change machine names, we can get rid of the inconsistent and
      pointless escaping of domain names when creating machine names.
      
      So this patch modifies the naming in the following way.  It creates the
      name as <drivername>-<id>-<name> where invalid hostname characters are
      stripped out of the name and if the resulting name is longer, it
      truncates it to 64 characters.  That way we can start domains we
      couldn't start before.  Well, at least on systemd.
      
      To make it work all together, the machineName (which is needed only with
      systemd) is saved in domain's private data.  That way the generation is
      moved to the driver and we don't need to pass various unnecessary
      arguments to cgroup functions.
      
      The only thing this complicates a bit is the scope generation when
      validating a cgroup where we must check both old and new naming, so a
      slight modification was needed there.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1282846Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      c3bd0019
    • J
      conf: add caps to virDomainSnapshotDefFormat · b8b03f64
      Joao Martins 提交于
      The virDomainSnapshotDefFormat calls into virDomainDefFormat,
      so should be providing a non-NULL virCapsPtr instance. On the
      qemu driver we change qemuDomainSnapshotWriteMetadata to also
      include caps since it calls virDomainSnapshotDefFormat.
      Signed-off-by: NJoao Martins <joao.m.martins@oracle.com>
      b8b03f64
    • D
      conf: add caps to virDomainObjFormat/SaveStatus · 1036ddad
      Daniel P. Berrange 提交于
      The virDomainObjFormat and virDomainSaveStatus methods
      both call into virDomainDefFormat, so should be providing
      a non-NULL virCapsPtr instance.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      1036ddad
    • R
      bhyve: fix build · 02a34d2a
      Roman Bogorodskiy 提交于
      Fix build fail introduced as a side effect of commit d239a542.
      
      Pushed under the build breaker rule.
      02a34d2a
  2. 04 2月, 2016 11 次提交
  3. 03 2月, 2016 21 次提交
  4. 02 2月, 2016 3 次提交
    • M
      include: Handle case when builddir == srcdir · 0d0e41a7
      Michal Privoznik 提交于
      In my previous commit a70f3b1c I've tried to fix case
      when building from VPATH and a file wasn't being installed.
      However, my fix broke non-VPATH build.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      0d0e41a7
    • E
      tests: avoid realpath in test-lib.sh · 041f7c93
      Eric Blake 提交于
      Ever since commit ace4aecd, running 'make check' on RHEL 6 produces:
      
      ./test-lib.sh: line 21: realpath: command not found
      
      for every shell script test, because 'realpath' was not part of
      coreutils back then.
      
      * tests/test-lib.sh (_scriptdir): Compute with only portable shell.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      041f7c93
    • M
      virsh: improve waiting for block job readiness · 86c4df83
      Michael Chapman 提交于
      After a block job hits 100%, we only need to apply a timeout waiting for
      a block job event if exactly one of the BLOCK_JOB or BLOCK_JOB_2
      callbacks were able to be registered.
      
      If neither callback could be registered, there's clearly no need for a
      timeout.
      
      If both callbacks were registered, then we're guaranteed to eventually
      get one of the events. The path being used by virsh must be exactly the
      source path or target device in the domain's disk definition, and these
      are the respective strings sent back in these two events.
      Signed-off-by: NMichael Chapman <mike@very.puzzling.org>
      86c4df83