1. 21 3月, 2016 1 次提交
    • C
      domain: Add virDomainDefAddImplicitDevices · 9a423d18
      Cole Robinson 提交于
      It's just a combination of AddImplicitControllers, and AddConsoleCompat.
      Every caller that wants ImplicitControllers also wants the ConsoleCompat
      AFAICT, so lump them together. We also need it for future patches.
      9a423d18
  2. 19 3月, 2016 8 次提交
  3. 18 3月, 2016 5 次提交
    • J
      conf: Format disk pool part_separator attribute for running pool · efb5e46b
      John Ferlan 提交于
      Commit id '4f846170' added printing of a new field 'part_separator';
      however, neglected to do so when there was an "freeExtent" defined
      for the device (as there would be when the disk pool was started).
      
      This patch adjusts the logic to appropriately format the device path and
      if there the part_separator attribute.
      efb5e46b
    • J
      qemu: Move last error save/restore to qemuBuildNetCommandLine · 1019bf14
      John Ferlan 提交于
      Commit 'ef2ab8fd' moved just the virDomainConfNWFilterTeardown and left
      the logic to save/restore the current error essentially doing nothing
      in the error path for qemuBuildCommandLine.  So move it to where it
      was meant to be.
      
      Although the original code would reset the filter on command creation
      errors after building the network command portion and commit 'ef2ab8fd'
      altered that logic, the teardown is called during qemuProcessStop from
      virDomainConfVMNWFilterTeardown and that code has the save/restore
      last error logic, so just allow that code to handle the teardown rather
      than running it twice. The qemuProcessStop would be called in the failure
      path of qemuBuildCommandLine.
      1019bf14
    • M
      Drop paths.h include · 865764de
      Michal Privoznik 提交于
      We include the file in plenty of places. This is mostly due to
      historical reasons. The only place that needs something from the
      header file is storage_backend_fs which opens _PATH_MOUNTED. But
      it gets the file included indirectly via mntent.h. At no other
      place in our code we need _PATH_.*. Drop the include and
      configure check then.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      865764de
    • J
      driver: log missing modules as INFO, not WARN · 9a0c7f5f
      Jovanka Gulicoska 提交于
      Missing modules is a common expected scenario for most libvirt usage on
      RPM distributions like Fedora, so it doesn't really warrant logging at
      WARN level. Use INFO instead
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1274849
      9a0c7f5f
    • M
      admin: Add virAdmConnectLookupServer · b9a3ce95
      Martin Kletzander 提交于
      It does not have a suffix ByName because there are no other means of
      looking up the server and since the name is known, this should be the
      preferred one.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      b9a3ce95
  4. 17 3月, 2016 11 次提交
  5. 16 3月, 2016 6 次提交
    • E
      virlog: Refactor virLogParseOutputs · 0b231195
      Erik Skultety 提交于
      The problem with the original virLogParseOutputs method was that the way it
      parsed the input, walking the string char by char and using absolute jumps
      depending on the virLogDestination type, was rather complicated to read.
      This patch utilizes virStringSplit method twice, first time to filter out any
      spaces and split the input to individual log outputs and then for each
      individual output to tokenize it by to the parts according to our
      PRIORITY:DESTINATION?(:DATA) format. Also, to STREQLEN for matching destination
      was replaced with virDestinationTypeFromString call.
      0b231195
    • E
      virlog: Introduce Type{To,From}String for virLogDestination · 034337fb
      Erik Skultety 提交于
      In order to refactor the ugly virLogParseOutputs method, this is a neat way of
      finding out whether the destination type (in the form of a string) user
      provided is a valid one. As a bonus, if it turns out it is valid, we get the
      actual enum which will later be passed to any of virLogAddOutput methods right
      away.
      034337fb
    • M
      nodedev: Shorten match condition · c1276177
      Martin Kletzander 提交于
      Just a cleanup I stumbled upon in one of my older branches I did when
      browsing through some code and forgot to send it.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      c1276177
    • M
      qemu: Don't access uninitialized memory · 71fa2eb2
      Martin Kletzander 提交于
      In qemuConnectDomainXMLToNative() we set up the monitor, but we never
      memset() it to zeros.  Thanks to the introduction of the logfile
      parameter of chardevs (and the logfile member of the struct), we started
      checking whether that's non-NULL and that exposed this old error.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      71fa2eb2
    • C
      qemu: Don't overwrite DomainSave errors · 26f3d9c2
      Cole Robinson 提交于
      These functions already report fine grained errors, there's no
      benefit to overwriting the error here.
      26f3d9c2
    • D
      qemuDomainRevertToSnapshot: save domain configuration · c5e81090
      Dmitry Andreev 提交于
      Reverting to a snapshot may change domain configuration. New
      configuration should be saved if domain has persistent flag.
      
      VIR_DOMAIN_EVENT_DEFINED_FROM_SNAPSHOT is emitted in case of
      configuration update.
      c5e81090
  6. 15 3月, 2016 9 次提交