1. 27 9月, 2014 1 次提交
  2. 26 9月, 2014 5 次提交
    • D
      Fix typo s/EMULATORIN/EMULATORPIN/ · 42571dfa
      Daniel P. Berrange 提交于
      Fix the typo in VIR_DOMAIN_TUNABLE_CPU_EMULATORIN
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      42571dfa
    • D
      Rename tunable event constants · 0778c0be
      Daniel P. Berrange 提交于
      For the new VIR_DOMAIN_EVENT_ID_TUNABLE event we have a bunch of
      constants added
      
         VIR_DOMAIN_EVENT_CPUTUNE_<blah>
         VIR_DOMAIN_EVENT_BLKDEVIOTUNE_<blah>
      
      This naming convention is bad for two reasons
      
        - There is no common prefix unique for the events to both
          relate them, and distinguish them from other event
          constants
      
        - The values associated with the constants were chosen
          to match the names used with virConnectGetAllDomainStats
          so having EVENT in the constant name is not applicable in
          that respect
      
      This patch proposes renaming the constants to
      
          VIR_DOMAIN_TUNABLE_CPU_<blah>
          VIR_DOMAIN_TUNABLE_BLKDEV_<blah>
      
      ie, given them a common VIR_DOMAIN_TUNABLE prefix.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      0778c0be
    • M
      qemuPrepareNVRAM: Save domain after NVRAM path generation · 3a3c3780
      Michal Privoznik 提交于
      On a domain startup, the variable store path is generated if needed.
      The path is intended to be generated only once. However, the updated
      domain definition is not saved into config dir rather than state XML
      only. So later, whenever the domain is destroyed and the daemon is
      restarted, the generated path is forgotten and the file may be left
      behind on virDomainUndefine() call.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      3a3c3780
    • T
      nodeinfo: fix version of nodeAllocPages · efafc9c1
      Tomoki Sekiyama 提交于
      Fix comments about the version in which '.nodeAllocPages' are added.
      Signed-off-by: NTomoki Sekiyama <tomoki.sekiyama@hds.com>
      efafc9c1
    • P
      qemu: Always re-detect backing chain · fe7ef7b1
      Peter Krempa 提交于
      Since 363e9a68 we track backing chain metadata when creating snapshots
      the right way even for the inactive configuration. As we did not yet
      update other code paths that modify the backing chain (blockpull) the
      newDef backing chain gets out of sync.
      
      After stopping of a VM the new definition gets copied to the next start
      one. The new VM then has incorrect backing chain info. This patch
      switches the backing chain detector to always purge the existing backing
      chain and forces re-detection to avoid this issue until we'll have full
      backing chain tracking support.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1144922
      fe7ef7b1
  3. 25 9月, 2014 3 次提交
  4. 24 9月, 2014 5 次提交
  5. 23 9月, 2014 8 次提交
  6. 22 9月, 2014 6 次提交
  7. 19 9月, 2014 4 次提交
  8. 18 9月, 2014 8 次提交
    • J
      Fixes for domains with no iothreads · c1480871
      Ján Tomko 提交于
      Plug a memory leak and silence a warning.
      c1480871
    • J
      qemu: Don't fail startup/attach for IOThreads if no JSON · 15ee3c25
      John Ferlan 提交于
      If the qemu being used doesn't support JSON, then querying for IOThread
      data would fail. In that case, ensure the *iothreads is NULL and return 0
      as the count of iothreads available.
      15ee3c25
    • R
      Fix build in qemu_command · e29d28e7
      Roman Bogorodskiy 提交于
      Currently, build with clang fails with:
      
        CC       qemu/libvirt_driver_qemu_impl_la-qemu_command.lo
      qemu/qemu_command.c:6580:58: error: implicit conversion from enumeration type
      'virMemAccess' to different enumeration type 'virTristateSwitch'
      [-Werror,-Wenum-conversion]
              virTristateSwitch memAccess = def->cpu->cells[i].memAccess;
                                ~~~~~~~~~   ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
      1 error generated.
      
      Fix that by using virMemAccess instead of virTristateSwitch.
      e29d28e7
    • R
      Fix build in qemu_capabilities · 3b3947ea
      Roman Bogorodskiy 提交于
      Commit f05b6a91 added virQEMUDriverConfigPtr argument to the
      virQEMUCapsFillDomainCaps function and it uses forward declaration
      of virQEMUDriverConfig and virQEMUDriverConfigPtr that casues clang
      build to fail:
      
      gmake[3]: Entering directory `/usr/home/novel/code/libvirt/src'
        CC       qemu/libvirt_driver_qemu_impl_la-qemu_capabilities.lo
      In file included from qemu/qemu_capabilities.c:43:
      In file included from qemu/qemu_hostdev.h:27:
      qemu/qemu_conf.h:63:37: error: redefinition of typedef 'virQEMUDriverConfig'
      is a C11 feature [-Werror,-Wtypedef-redefinition]
      typedef struct _virQEMUDriverConfig virQEMUDriverConfig;
                                          ^
      qemu/qemu_capabilities.h:328:37: note: previous definition is here
      typedef struct _virQEMUDriverConfig virQEMUDriverConfig;
                                          ^
      
      Fix that by passing loader and nloader config attributes directly
      instead of passing complete config.
      3b3947ea
    • J
      qemu: fix crash with shared disks · 540ee872
      Ján Tomko 提交于
      Commit f36a94f2 introduced a double free on all success paths
      in qemuSharedDeviceEntryInsert.
      
      Only call qemuSharedDeviceEntryFree on the error path and
      set entry to NULL before jumping there if the entry already
      is in the hash table.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1142722
      540ee872
    • P
      qemu: Improve check for local storage · 434dd551
      Peter Krempa 提交于
      Now that we have a simple function to check locality of storage, reuse
      it in qemuDomainCheckDiskPresence().
      
      Also reuse check for empty storage source.
      434dd551
    • P
      qemu: Drop unused formatting of uuid · 7c7981eb
      Peter Krempa 提交于
      The formatted UUID isn't used anywhere else in
      qemuDomainCheckDiskStartupPolicy. Drop it.
      7c7981eb
    • W
      maint: clean up _virDomainMemoryStat · 18a6dc93
      Wang Yufei 提交于
      Clean up all _virDomainMemoryStat.
      Signed-off-by: NJames <james.wangyufei@huawei.com>
      Signed-off-by: NWang Rui <moon.wangrui@huawei.com>
      Signed-off-by: NEric Blake <eblake@redhat.com>
      18a6dc93