1. 21 7月, 2015 8 次提交
  2. 20 7月, 2015 4 次提交
    • R
      nodeinfo: fix build on FreeBSD · e46791e0
      Roman Bogorodskiy 提交于
      Currently, build fails on FreeBSD with:
      
        CC       libvirt_driver_la-nodeinfo.lo
      nodeinfo.c:1941:56: error: use of undeclared identifier 'SYSFS_SYSTEM_PATH'
          const char *prefix = sysfs_prefix ? sysfs_prefix : SYSFS_SYSTEM_PATH;
                                                             ^
      1 error generated.
      
      This is caused by commit b97b3048 that added sysfs_prefix to
      nodeCapsInitNUMA and used SYSFS_CPU_PATH.
      
      Fix it by unconditionally defining SYSFS_CPU_PATH instead of defining it
      under #ifdef __linux__.
      e46791e0
    • M
      qemu: Reject updating unsupported disk information · 717c99f3
      Martin Kletzander 提交于
      If one calls update-device with information that is not updatable,
      libvirt reports success even though no data were updated.  The example
      used in the bug linked below uses updating device with <boot order='2'/>
      which, in my opinion, is a valid thing to request from user's
      perspective.  Mainly since we properly error out if user wants to update
      such data on a network device for example.
      
      And since there are many things that might happen (update-device on disk
      basically knows just how to change removable media), check for what's
      changing and moreover, since the function might be usable in other
      drivers (updating only disk path is a valid possibility) let's abstract
      it for any two disks.
      
      We can't possibly check for everything since for many fields our code
      does not properly differentiate between default and unspecified values.
      Even though this could be changed, I don't feel like it's worth the
      complexity so it's not the aim of this patch.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1007228
      717c99f3
    • M
      Escape left brace as new perl suggests · 0aa81bbd
      Martin Kletzander 提交于
      After upgrade to perl-5.22.0, it started complaining about one of our
      scripts.  The thing is that even though it works, it wants all curly
      brackets escaped properly.  The change is not functional, it merely gets
      rid of the following error:
      
        Unescaped left brace in regex is deprecated, passed through in regex;
        marked by <-- HERE in m/^enum { <-- HERE / at -e line 3.
      
      There is one more error like this that I'm getting, but it is because of
      GNU automake bug #21001:
      
        https://debbugs.gnu.org/cgi/bugreport.cgi?bug=21001Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      0aa81bbd
    • F
      qemu: Use heads parameter for QXL driver · 7b401c3b
      Frediano Ziglio 提交于
      Allows to specify maximum number of head to QXL driver.
      
      Actually can be a compatiblity problem as heads in the XML configuration
      was set by default to '1'.
      Signed-off-by: NFrediano Ziglio <fziglio@redhat.com>
      7b401c3b
  3. 17 7月, 2015 6 次提交
  4. 16 7月, 2015 1 次提交
  5. 15 7月, 2015 11 次提交
  6. 14 7月, 2015 10 次提交
    • P
      qemu: process: Improve update of maximum balloon state at startup · c212e0c7
      Peter Krempa 提交于
      In commit 641a145d I've added code that
      resets the balloon memory value to full size prior to resuming the vCPUs
      since the size certainly was not reduced at that point.
      
      Since qemuProcessStart is used also in code paths with already booted
      up guests (migration, save/restore) the assumption is not entirely true
      since the guest might already been running before.
      
      This patch adds a function that queries the monitor rather than using
      the full size since a balloon event would not be reissued in case we are
      recovering a saved migration state.
      
      Additionally the new function is used also when reconnecting to a VM
      after libvirtd restart since we might have missed a few balloon events
      while libvirtd was not running.
      c212e0c7
    • M
      qemuDomainSetNumaParamsLive: Check for NUMA mode more wisely · 1cf25f63
      Michal Privoznik 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1232663
      
      In one of my previous ptaches (bcd9a564) I've tried to fix the problem
      that we blindly assumed strict NUMA mode for guests. This led to
      several problems like us pinning a domain onto a nodeset via libnuma
      among with CGroups. Once the nodeset was changed by user, well, it did
      not result in desired effect. See the original commit for more info.
      But, the commit I wrote had a bug: when NUMA parameters are changed on
      a running domain we require domain to be strictly pinned onto a
      nodeset. Due to a typo a condition was mis-evaluated.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      1cf25f63
    • M
      network: Add another collision check into networkCheckRouteCollision · 0e3ad241
      Martin Kletzander 提交于
      The comment above that function says: "This function can be a lot more
      exhaustive, ...", so let's be.
      
      Check for collisions between routes in the system and static routes
      being added explicitly from the <route/> element of the network XML.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1094205Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      0e3ad241
    • M
      conf: Add getter for network routes · 0f10eb6a
      Martin Kletzander 提交于
      Add virNetworkDefGetRouteByIndex() similarly to
      virNetworkDefGetIpByIndex(), but for routes.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      0f10eb6a
    • A
      tests: Add nodeinfo test for non-present CPUs · f8b784a8
      Andrea Bolognani 提交于
      Some of the possible CPUs in a system might not be present, eg. they
      might be defective or might have been deconfigured from the ASM console
      in a Power system. Due to this fact, Linux keeps track of what CPUs are
      possible and what are present separately.
      
      This test uses the data from a system where not all the possible CPUs
      are present to make sure libvirt handles this situation correctly.
      f8b784a8
    • K
      nodeinfo: fix to parse present cpus rather than possible cpus · bb31f453
      Kothapally Madhu Pavan 提交于
      This patch resolves a situation where a core is defective and is not
      in the present mask during boot. Optionally a host can have empty sockets
      could be brought online if the socket is added. In this case the present
      mask contains the cpu's that are actually there in the sockets even though
      they might be offline for some reason. This patch excludes the cpu's that
      are offline because the socket is defective/empty by checking the present
      mask before reading the cpu directory. Otherwise, the nodeinfo on such
      hosts always displays wrong output which includes the defective/empty
      sockets as set of offline cpu's.
      Signed-off-by: NKothapally Madhu Pavan <kmp@linux.vnet.ibm.com>
      bb31f453
    • J
      nodeinfo: Add sysfs_prefix to nodeGetMemoryStats · c71f0654
      John Ferlan 提交于
      Add the sysfs_prefix argument to the call to allow for setting the
      path for tests to something other than SYSFS_SYSTEM_PATH.
      c71f0654
    • J
      nodeinfo: Add sysfs_prefix to nodeCapsInitNUMA · b97b3048
      John Ferlan 提交于
      Add the sysfs_prefix argument to the call to allow for setting the
      path for tests to something other than SYSFS_CPU_PATH which is a
      derivative of SYSFS_SYSTEM_PATH
      
      Use cpupath for nodeCapsInitNUMAFake and remove SYSFS_CPU_PATH
      b97b3048
    • J
      nodeinfo: Add sysfs_prefix to nodeGetInfo · 29e4f224
      John Ferlan 提交于
      Add the sysfs_prefix argument to the call to allow for setting the
      path for tests to something other than SYSFS_SYSTEM_PATH.
      29e4f224
    • J
      nodeinfo: Add sysfs_prefix to nodeGetCPUMap · f1c6179f
      John Ferlan 提交于
      Add the sysfs_prefix argument to the call to allow for setting the
      path for tests to something other than SYSFS_SYSTEM_PATH.
      f1c6179f