cpuid: when ignoring vendor string, ignore it on 0x80000000 too

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
cpuid: another known CPUID difference

The SVM feature leaf is known to change between versions because it was
(incorrectly) non-zero even if SVM was disabled.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Merge pull request #1048 from ehabkost/cpuid-fixes

CPUID config file updates
virsh_change_media: Backup and restore original vm xml

* In new_from_dumpxml(), the used keyword argument 'options'
  doesn't exist in virsh.dumpxml(). This must be a typo
  s/options/extra.

* Fix a raise typo and some pylint/pep8 issues.

* The original xml of the vm need to be backed up before test
  and restored after it to keep the xml unchanged.

* When backing up, the xml need to be dumped using '--inactive'
  option. Otherwise the xml backup is slightly different from
  the original one like below. I'm not sure this will cause
  any problem, but it's annoying.

---
+++
@@ -4,6 +4,9 @@
   <memory unit='KiB'>1048576</memory>
   <currentMemory unit='KiB'>1048576</currentMemory>
   <vcpu placement='static'>2</vcpu>
+  <resource>
+    <partition>/machine</partition>
+  </resource>
   <os>
     <type arch='x86_64' machine='pc-i440fx-rhel7.0.0'>hvm</type>
     <boot dev='hd'/>
@@ -43,7 +46,9 @@
     </console>
     <input type='tablet' bus='usb'/>
     <input type='mouse' bus='ps2'/>
-    <graphics type='vnc' port='-1' autoport='yes'/>
+    <graphics type='vnc' port='-1' autoport='yes'
listen='127.0.0.1'>
+      <listen type='address' address='127.0.0.1'/>
+    </graphics>
     <video>
       <model type='cirrus' vram='9216' heads='1'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
@@ -52,4 +57,5 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
     </memballoon>
   </devices>
+  <seclabel type='dynamic' model='selinux' relabel='yes'/>
 </domain>

Signed-off-by: Hao Liu <hliu@redhat.com>
libvirt: virsh_edit: Add maximum option for vcpucount

* In RHEL-6, vcpucount --config option must be used with --maximum
  or --active option, using only --config option with cause error:

  > virsh vcpucount virt-tests-vm1 --config
  error: when using --config, either --maximum or --active must
  be specified

* The vm need to backup with '--inactive' option to avoid xml
  inconsistence.

* No need to disable pylint E1111

* Fix some pylint/pep8 problem.

Signed-off-by: Hao Liu <hliu@redhat.com>
virttest.virsh: Add virsh migrate setspeed/getspeed functions

migrate_setspeed(domain, bandwidth, extra=None, **dargs)
migrate_getspeed(domain, **dargs)
qemu.test.ipi_x2apic: Typo fix str -> check_string.

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests.multi_nic_stress: Typo fix % -> %s

Signed-off-by: Feng Yang <fyang@redhat.com>
Merge pull request #1057 from FengYang/ipi_x2apic

qemu.test.ipi_x2apic: Typo fix str -> check_string.
libvirt_vm: Add method to create install cmd with sec_label

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Add test for svirt in virt-install.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
guest-os: Add filter for svirt_install in guest-os.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Merge pull request #909 from yangdongsheng/svirt_install

Svirt install
Merge pull request #1056 from Guannan-Ren/master

virttest.virsh: Add virsh migrate setspeed/getspeed functions
Merge pull request #1055 from Hao-Liu/libvirt_ci

libvirt-test: Backup virsh_change_media xml and fix virsh_edit.
Merge branch 'master' into next

We had a bunch of pull requests that were generated incorrectly
against master, and were pushed, since it is way too easy to
miss that fact when pressing the nice little green buttons that
github offers. So we have to do this to avoid non ff updates to
next and even more confusion.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu.tests.qmp_command: Update the way to get qemu_binary.

After some updating, current code could not get correct qemu binary.
So Case error with message "TestNAError: Host qemu does not support qmp".

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests.pci_hotplug: Make device_add_nic and device_add_block have same parameters

Add a useless parameter in device_add_block().

These two function called by following code:
        try:
            # get function for adding device.
            add_fuction = local_functions["%s_%s" % (cmd_type, pci_type)]
        except Exception:
            raise error.TestError("No function for adding '%s' dev with '%s'" %
                                  (pci_type, cmd_type))
        after_add = None
        if add_fuction:
            # Do add pci device.
            after_add = add_fuction(pci_num, queues)

So they must have same parameters.
Now we meet error:
TypeError: device_add_block() takes exactly 1 argument (2 given)

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests: correct test step

for this test we need to compare images when vm is in paused status;

Signed-off-by: Xu Tian <xutian@redhat.com>
Merge pull request #1065 from FengYang/update5

Fix for next branch - Update5