qemu/tests/acceptance
Eduardo Habkost fea374e7c8 pc: Don't make die-id mandatory unless necessary
We have this issue reported when using libvirt to hotplug CPUs:
https://bugzilla.redhat.com/show_bug.cgi?id=1741451

Basically, libvirt is not copying die-id from
query-hotpluggable-cpus, but die-id is now mandatory.

We could blame libvirt and say it is not following the documented
interface, because we have this buried in the QAPI schema
documentation:

> Note: currently there are 5 properties that could be present
> but management should be prepared to pass through other
> properties with device_add command to allow for future
> interface extension. This also requires the filed names to be kept in
> sync with the properties passed to -device/device_add.

But I don't think this would be reasonable from us.  We can just
make QEMU more flexible and let die-id to be omitted when there's
no ambiguity.  This will allow us to keep compatibility with
existing libvirt versions.

Test case included to ensure we don't break this again.

Fixes: commit 176d2cda0d ("i386/cpu: Consolidate die-id validity in smp context")
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20190816170750.23910-1-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
2019-09-03 14:39:46 -03:00
..
avocado_qemu python/qemu: split QEMUMachine out from underneath __init__.py 2019-07-01 19:02:10 -03:00
boot_linux_console.py BootLinuxConsoleTest: Run kerneltests BusyBox on Malta 2019-06-11 14:13:09 -03:00
cpu_queries.py i386: Disable OSPKE on CPU model definitions 2019-03-20 12:18:15 -03:00
empty_cpu_model.py cpu: Fix crash with empty -cpu option 2019-04-25 14:17:35 -03:00
linux_initrd.py tests/acceptance: use "arch:" tag to filter target specific tests 2019-05-02 21:33:26 -03:00
linux_ssh_mips_malta.py BootLinuxSshTest: Test some userspace commands on Malta 2019-05-26 17:45:02 +02:00
migration.py tests.acceptance: adds simple migration test 2019-02-22 14:07:01 -05:00
pc_cpu_hotplug_props.py pc: Don't make die-id mandatory unless necessary 2019-09-03 14:39:46 -03:00
README.rst
version.py Acceptance tests: drop usage of "🥑 enable" 2019-02-22 14:07:01 -05:00
virtio_version.py python/qemu: split QEMUMachine out from underneath __init__.py 2019-07-01 19:02:10 -03:00
vnc.py Acceptance tests: drop usage of "🥑 enable" 2019-02-22 14:07:01 -05:00
x86_cpu_model_versions.py i386: Add Cascadelake-Server-v2 CPU model 2019-07-05 17:12:30 -03:00

============================================
Acceptance tests using the Avocado Framework
============================================

This directory contains functional tests, also known as acceptance
level tests.  They're usually higher level, and may interact with
external resources and with various guest operating systems.

For more information, please refer to ``docs/devel/testing.rst``,
section "Acceptance tests using the Avocado Framework".