From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fj5Bp-0001dj-1F for qemu-devel@nongnu.org; Fri, 27 Jul 2018 12:02:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fj5Bo-0001a1-96 for qemu-devel@nongnu.org; Fri, 27 Jul 2018 12:02:01 -0400 Date: Fri, 27 Jul 2018 18:01:49 +0200 From: Kevin Wolf Message-ID: <20180727160149.GG4355@localhost.localdomain> References: <20180727141539.506-1-kwolf@redhat.com> <20180727141539.506-4-kwolf@redhat.com> <89a2b536-0b00-b6f1-74d8-2c9f4748fa0c@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <89a2b536-0b00-b6f1-74d8-2c9f4748fa0c@redhat.com> Subject: Re: [Qemu-devel] [PATCH for-3.0 3/3] qemu-iotests: Test query-blockstats with -drive and -blockdev List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-block@nongnu.org, pkrempa@redhat.com, mreitz@redhat.com, qemu-devel@nongnu.org Am 27.07.2018 um 17:12 hat Eric Blake geschrieben: > On 07/27/2018 09:15 AM, Kevin Wolf wrote: > > Make sure that query-blockstats returns information for every > > BlockBackend that is named or attached to a device model (or both). > > Needed for libvirt switching over to -blockdev, so even though we're rather > late in the 3.0 cycle, I can understand it going in now. > > > > > Signed-off-by: Kevin Wolf > > --- > > Reviewed-by: Eric Blake > > > +++ b/tests/qemu-iotests/227.out > > @@ -0,0 +1,42 @@ > > +QA output created by 227 > > + > > +=== blockstats with -drive if=virtio === > > + > > +Testing: -drive driver=null-co,if=virtio > > +QMP_VERSION > > +{"return": {}} > > +{"return": [{"device": "virtio0", "stats": {"flush_total_time_ns": 0, "wr_highest_offset": 0, "wr_total_time_ns": 0, "failed_wr_operations": 0, "failed_rd_operations": 0, "wr_merged": 0, "wr_bytes": 0, "timed_stats": [], "failed_flush_operations": 0, "account_invalid": true, "rd_total_time_ns": 0, "flush_operations": 0, "wr_operations": 0, "rd_merged": 0, "rd_bytes": 0, "invalid_flush_operations": 0, "account_failed": true, "rd_operations": 0, "invalid_wr_operations": 0, "invalid_rd_operations": 0}, "node-name": "NODE_NAME", "qdev": "/machine/peripheral-anon/device[0]/virtio-backend"}]} > > Long lines. Would it be worth writing the test to use QMP pretty mode? Good idea. I'll do that before applying the patches. Kevin