Received: from eggs.gnu.org ([2001:4830:134:3::10]:32963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDEl6-0001oD-Oo for qemu-devel@nongnu.org; Mon, 19 Jan 2015 11:00:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDEkw-0005jR-W1 for qemu-devel@nongnu.org; Mon, 19 Jan 2015 11:00:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDEkw-0005jC-NE for qemu-devel@nongnu.org; Mon, 19 Jan 2015 11:00:46 -0500 From: Markus Armbruster References: <1421679157-3510-1-git-send-email-armbru@redhat.com> <54BD1E1A.2020706@suse.de> Date: Mon, 19 Jan 2015 17:00:38 +0100 In-Reply-To: <54BD1E1A.2020706@suse.de> ("Andreas =?utf-8?Q?F=C3=A4rber=22?= =?utf-8?Q?'s?= message of "Mon, 19 Jan 2015 16:09:14 +0100") Message-ID: <87iog2hiah.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 00/10] pci: Partial conversion to realize List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?utf-8?Q?F=C3=A4rber?= Cc: pbonzini@redhat.com, arei.gonglei@huawei.com, mst@redhat.com, qemu-devel@nongnu.org, kraxel@redhat.com Andreas F=C3=A4rber writes: > Hi Markus, > > Am 19.01.2015 um 15:52 schrieb Markus Armbruster: >> I posted this series as RFC back in October, but it depended on >> patches then still under review, so I put it aside, and promptly >> forgot. Fortunately, rebasing and updating it wasn't much trouble. > > A question I had brought up for the RFC was that of testing: Did you > check which of your conversions are covered by QTest or where we may > first need additional test cases to verify this doesn't regress? > > As a reminder, when converting ISA devices, I accepted patches that were > only tested with one of two serial devices contained in a file, promptly > breaking the other in some target. I'd like to avoid that for PCI. ;) I got this after I sent my reply to your original question. Perhaps we could create a qtest that tries to -device every known PCI device: grab them from { "execute": "qom-list-types", "arguments": { "implements": "pci-device" = } } Some require properties, typically backends. We could introspect with device-list-properties and try to supply common ones, like "drive", "chardev", "netdev". Doing it as a big device_add / device_del orgy would be cute, except device_del requires guest cooperation, complicating the test. We could special-case device_del before guest starts if we wanted.