1. 03 10月, 2014 5 次提交
    • C
      qemu: Don't compare CPU against host for TCG · 445a09bd
      Cole Robinson 提交于
      Right now when building the qemu command line, we try to do various
      unconditional validations of the guest CPU against the host CPU. However
      this checks are overly applied. The only time we should use the checks
      are:
      
      - The user requests host-model/host-passthrough, or
      
      - When KVM is requsted. CPU features requested in TCG mode are always
        emulated by qemu and are independent of the host CPU, so no host CPU
        checks should be performed.
      
      Right now if trying to specify a CPU for arm on an x86 host, it attempts
      to do non-sensical validation and falls over.
      
      Switch all the test cases that were intending to test CPU validation to
      use KVM, so they continue to test the intended code.
      
      Amend some aarch64 XML tests with a CPU model, to ensure things work
      correctly.
      445a09bd
    • C
      qemu_command: Split qemuBuildCpuArgStr · 3bc6dda6
      Cole Robinson 提交于
      Move the CPU mode/model handling to its own function. This is just
      code movement and re-indentation.
      3bc6dda6
    • S
      qemu: Improve domainSetTime error info report · a4771c58
      Shanzhi Yu 提交于
      check domain's status before call virQEMUCapsGet to report a accurate
      error when domain is shut off
      
      Resolve: https://bugzilla.redhat.com/show_bug.cgi?id=1147847Signed-off-by: NShanzhi Yu <shyu@redhat.com>
      a4771c58
    • E
      qemu: Fix updating balloon period in live XML · e3a7b874
      Erik Skultety 提交于
      Up until now, we set memballoon period in monitor successfully, however
      we did not update domain definition structure, thus dumpxml was omitting
      period attribute in memballoon element
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1140960
      e3a7b874
    • E
      qemu: Fix updating bandwidth limits in live XML · f4ba3385
      Erik Skultety 提交于
      When trying to update bandwidth limits on a running domain, limits get
      updated in our internal structures, however XML parser reads
      bandwidth limits from network 'actual' definition. Committing this patch
      it is now available to update bandwidth 'actual' definition as well,
      thus updating domain runtime XML.
      f4ba3385
  2. 02 10月, 2014 1 次提交
    • G
      qemu: use systemd's TerminateMachine to kill all processes · 4882618e
      Guido Günther 提交于
      If we don't properly clean up all processes in the
      machine-<vmname>.scope systemd won't remove the cgroup and subsequent vm
      starts fail with
      
        'CreateMachine: File exists'
      
      Additional processes can e.g. be added via
      
        echo $PID > /sys/fs/cgroup/systemd/machine.slice/machine-${VMNAME}.scope/tasks
      
      but there are other cases like
      
        http://bugs.debian.org/761521
      
      Invoke TerminateMachine to be on the safe side since systemd tracks the
      cgroup anyway. This is a noop if all processes have terminated already.
      4882618e
  3. 01 10月, 2014 5 次提交
  4. 30 9月, 2014 4 次提交
  5. 29 9月, 2014 1 次提交
  6. 27 9月, 2014 1 次提交
  7. 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
  8. 25 9月, 2014 3 次提交
  9. 24 9月, 2014 5 次提交
  10. 23 9月, 2014 8 次提交
  11. 22 9月, 2014 2 次提交