1. 05 5月, 2016 6 次提交
    • C
      conf: Drop restrictions on rng backend path · bc858f46
      Cole Robinson 提交于
      Currently we only allow /dev/random and /dev/hwrng as host input
      for <rng><backend model='random'/> device. This was added after
      various upstream discussions in commit 4932ef45
      
      However this restriction has generated quite a few complaints over
      the years, so a new discussion was initiated:
      
      http://www.redhat.com/archives/libvir-list/2016-April/msg00987.html
      
      Several people suggested removing the restriction, and nobody really
      spoke up to defend it. So this patch drops the path restriction
      entirely
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1074464
      (cherry picked from commit 67f2b727)
      bc858f46
    • C
      vbox: VIR_WARN if we don't support the API version · b68f421a
      Cole Robinson 提交于
      We presently don't give any indication if the VirtualBox version
      isn't in our support whitelist.
      
      (cherry picked from commit 18644491)
      b68f421a
    • M
      qemu: Limit maximum block device I/O tune values · 7b25be9d
      Martin Kletzander 提交于
      The values are currently limited to LLONG_MAX which causes some
      problems.  QEMU conveniently changed their maximum to 1e15 (1 PB) which
      is enough for some time and we need to adapt to that so that we don't
      throw "Unknown error" messages.  Strictly limiting these values actually
      fixes some corner case values (off-by-one checks in QEMU probably).
      
      Since values out of the new specified range do not overflow anything,
      change the type of error as well.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1317531Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      (cherry picked from commit 2d04f6de)
      7b25be9d
    • C
      virconf: Handle conf file without ending newline · ca9180ad
      Cole Robinson 提交于
      $ echo -n 'log_level=1' > ~/.config/libvirt/libvirtd.conf
      $ libvirtd --timeout=10
      2014-10-10 10:30:56.394+0000: 6626: info : libvirt version: 1.1.3.6, package: 1.fc20 (Fedora Project, 2014-09-08-17:50:42, buildvm-05.phx2.fedoraproject.org)
      2014-10-10 10:30:56.394+0000: 6626: error : main:1261 : Can't load config file: configuration file syntax error: /home/rjones/.config/libvirt/libvirtd.conf:1: expecting a value: /home/rjones/.config/libvirt/libvirtd.conf
      
      Rather than try to fix this in the depths of the parser, just catch
      the case when a config file doesn't end in a newline, and manually
      append a newline to the content before parsing
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1151409
      (cherry picked from commit 3cc2a9e0)
      ca9180ad
    • L
      network: fix DHCPv6 on networks with prefix != 64 · 8ceb0fea
      Laine Stump 提交于
      According to the dnsmasq manpage, the netmask for IPv4 address ranges
      will be auto-deteremined from the interface dnsmasq is listening on,
      but it can't do this for IPv6 for some reason - it instead assumes a
      network prefix of 64 for all IPv6 address ranges. If this is
      incorrect, dnsmasq will refuse to give out an address to clients,
      instead logging this message:
      
       dnsmasq-dhcp[2380]: no address range available for DHCPv6 request via virbr0
      
      The solution is for libvirt to add ",$prefix" to all IPv6 dhcp-range
      arguments when building the dnsmasq.conf file.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1033739
      (cherry picked from commit bf3d9f30)
      8ceb0fea
    • B
      rpc: Don't leak fd via CreateXMLWithFiles · 5d4a0b00
      Ben Gray 提交于
      FD passing APIs like CreateXMLWithFiles or OpenGraphicsFD will leak
      file descriptors. The user passes in an fd, which is dup()'d in
      virNetClientProgramCall. The new fd is what is transfered to the
      server virNetClientIOWriteMessage.
      
      Once all the fds have been written though, the parent msg->fds list
      is immediately free'd, so the individual fds are never closed.
      
      This closes each FD as its send to the server, so all fds have been
      closed by the time msg->fds is free'd.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1159766
      (cherry picked from commit 5ba48584)
      5d4a0b00
  2. 21 4月, 2016 1 次提交
  3. 20 4月, 2016 30 次提交
  4. 15 4月, 2016 3 次提交