[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [PATCH v3 3/6] tests/device-plug: Add a simple PCI unpl
From: |
Cornelia Huck |
Subject: |
Re: [qemu-s390x] [PATCH v3 3/6] tests/device-plug: Add a simple PCI unplug request test |
Date: |
Mon, 18 Feb 2019 10:30:21 +0100 |
On Mon, 18 Feb 2019 10:21:59 +0100
David Hildenbrand <address@hidden> wrote:
> The issue with testing asynchronous unplug requests it that they usually
> require a running guest to handle the request. However, to test if
> unplug of PCI devices works, we can apply a nice little trick on some
> architectures:
>
> On system reset, x86 ACPI, s390x and spapr will perform the unplug,
> resulting in the device of interest to get deleted and a DEVICE_DELETED
> event getting sent.
>
> On s390x, we still get a warning
> qemu-system-s390x: -device virtio-mouse-pci,id=dev0:
> warning: Plugging a PCI/zPCI device without the 'zpci' CPU feature
> enabled; the guest will not be able to see/use this device
>
> This will be fixed soon, when we enable the zpci CPU feature always
> (Conny already has a patch for this queued).
Let's see which series makes it into mainline first ;)
>
> Reviewed-by: Michael S. Tsirkin <address@hidden>
> Reviewed-by: Greg Kurz <address@hidden>
> Reviewed-by: Thomas Huth <address@hidden>
> Reviewed-by: Collin Walling <address@hidden>
> Reviewed-by: David Gibson <address@hidden>
> Signed-off-by: David Hildenbrand <address@hidden>
> ---
> tests/Makefile.include | 4 ++
> tests/device-plug-test.c | 93 ++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 97 insertions(+)
> create mode 100644 tests/device-plug-test.c
Looks sane at a glance.
Acked-by: Cornelia Huck <address@hidden>
- [qemu-s390x] [PATCH v3 0/6] tests: Add device unplug tests, David Hildenbrand, 2019/02/18
- [qemu-s390x] [PATCH v3 1/6] cpus: Properly release the iothread lock when killing a dummy VCPU, David Hildenbrand, 2019/02/18
- [qemu-s390x] [PATCH v3 2/6] spapr: support memory unplug for qtest, David Hildenbrand, 2019/02/18
- [qemu-s390x] [PATCH v3 6/6] tests/device-plug: Add memory unplug request test for spapr, David Hildenbrand, 2019/02/18
- [qemu-s390x] [PATCH v3 4/6] tests/device-plug: Add CCW unplug test for s390x, David Hildenbrand, 2019/02/18
- [qemu-s390x] [PATCH v3 5/6] tests/device-plug: Add CPU core unplug request test for spapr, David Hildenbrand, 2019/02/18
- [qemu-s390x] [PATCH v3 3/6] tests/device-plug: Add a simple PCI unplug request test, David Hildenbrand, 2019/02/18
- Re: [qemu-s390x] [PATCH v3 3/6] tests/device-plug: Add a simple PCI unplug request test,
Cornelia Huck <=
- Re: [qemu-s390x] [PATCH v3 0/6] tests: Add device unplug tests, David Gibson, 2019/02/18