1. 07 2月, 2013 8 次提交
    • E
      qemu_cpu.cfg: set auto_cpu_model = no · 1ea53761
      Eduardo Habkost 提交于
      Without this option, autotest will set a "cpu_model" config option by
      itself.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      1ea53761
    • E
      qemu_cpu.cfg: disable qemu-version-specific test cases by default · a16e6f1c
      Eduardo Habkost 提交于
      Instead of just defining rhel64 and qemu13 and enabling both by default,
      define rhel64, qemu13, and unknown_qemu.
      
      unknown_qemu will be enabled by default, so we don't test for things
      that may fail on non-RHEL-6 or non-qemu-1.3 hosts. This should make the
      tests work by default on most hosts, until we implement some kind of
      host-based autoconfiguration system.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      a16e6f1c
    • I
      virt-test: run cpuid.custom variants without kvm · 15bd768e
      Igor Mammedov 提交于
      cpuid.custom will fail if qemu is built without kvm,
      due to virt-test tries to start qemu in kvm mode.
      
      To fix it run custom variants in TCG mode, since they do
      not have anything kvm specific.
      Signed-off-by: NIgor Mammedov <imammedo@redhat.com>
      15bd768e
    • I
      virt-test: fix disable-kvm once more · cd311a31
      Igor Mammedov 提交于
      If config has only 'disable-kvm=yes' but not 'enable-kvm=no'
      qemu will be started in kvm mode and with kvm disabled at
      compile time it fails to launch.
      
      Currently disable/enable-kvm config options and qemu supported
      options are intermingled in a bunch of ifs, separate apples
      and oranges in different bins and make logic straightforward:
      
      * alias disable-kvm to enable-kvm param
      * get right option set to disable/enable kvm on qemu/qemu-kvm
      * set appropriate option depending on value of param enable-kvm
      Signed-off-by: NIgor Mammedov <imammedo@redhat.com>
      cd311a31
    • L
      cpuid: Make use of new functions on utils_misc · 7f8ea293
      Lucas Meneghel Rodrigues 提交于
      Make use of extract_cpu_models() on cpuid test.
      One of the patches from ehabkost introducing
      get_qemu_cpu_models would have to be rebased
      according to the fact they were introduced
      earlier by this patchset.
      
      CC: Eduardo Habkost <ehabkost@redhat.com>
      CC: Igor Mammedov <imammedo@redhat.com>
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      7f8ea293
    • L
      env_process: Try to find the best possible CPU model for qemu v2 · 213879da
      Lucas Meneghel Rodrigues 提交于
      When auto_cpu_model = yes, we'll try to find the best
      CPU model to be used by qemu, the process being:
      
      1) Find the host CPU model
      2) Try to pass it to qemu
      
      We used to ignore invalid CPU models passed to qemu
      in qemu_vm code, but we had to change that to allow
      negative CPU model testing. So the sanity check of
      whether the CPU model is valid has to be made way
      earlier in the code.
      
      Therefore, introduce get_qemu_best_cpu_model, that
      will find the host CPU model and then check this
      value against the valid CPU models on qemu. In case
      there's no such cpu model in qemu, chose a sensible
      default value (default_cpu_model if it is defined
      in the params dict, or 'qemu64').
      
      The new functions introduced to utils_misc are:
       * get_host_cpu_models -> Rename of get_cpu_model
       * get_qemu_cpu_models
       * extract_qemu_cpu_models
       * get_qemu_best_cpu_model
      
      Some of the functions were extracted from the
      cpuid test. In the next patch, we make the
      test to use the new functions.
      
      Changes from v1:
       * Refactor code to get qemu cpu models to its
         own function on utils_misc
       * Make the code actually work, by making
         involved functions to return lists
      
      CC: Eduardo Habkost <ehabkost@redhat.com>
      CC: Igor Mammedov <imammedo@redhat.com>
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      213879da
    • Y
      virt-libvirt: Fix bug of virsh_save.cfg. · fee28796
      Yu Mingfei 提交于
      Last line said that No newline at end of file.
      When we create subtests.cfg in libvirt project,
      the end of virsh_save will like this:
      (omit)
      save_libvirtd = "off"    - virsh_setmem:
      (omit)
      
      Signed-off-by: Yu Mingfei<yumingfei@cn.fujitsu.com>
      fee28796
    • L
      virt-libvirt:modify function to get id and uuid for virsh managedsave · f783361b
      liyang 提交于
      Hi Chris,Lucas:
      I found that in virsh_managedsave.py, the way to get VM's id or uuid is
      not very exacting,
      so I changed it to use libvirt_vm's function.
      Signed-off-by: NLi Yang <liyang.fnst@cn.fujitsu.com>
      f783361b
  2. 06 2月, 2013 4 次提交
  3. 05 2月, 2013 2 次提交
  4. 04 2月, 2013 26 次提交