From: Christian Borntraeger <borntraeger@de.ibm.com>
To: Max Reitz <mreitz@redhat.com>, qemu-block@nongnu.org
Cc: qemu-devel@nongnu.org, Kevin Wolf <kwolf@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] iotests: Use virtio-blk in 155
Date: Mon, 12 Feb 2018 13:54:09 +0100 [thread overview]
Message-ID: <ec6116a6-80f7-4375-ecce-d34cb532c77d@de.ibm.com> (raw)
In-Reply-To: <20180212124718.21935-1-mreitz@redhat.com>
On 02/12/2018 01:47 PM, Max Reitz wrote:
> Only a few select machine types support floppy drives and there is
> actually nothing preventing us from using virtio here, so let's do it.
>
> Reported-by: Christian Borntraeger <borntraeger@de.ibm.com>
> Signed-off-by: Max Reitz <mreitz@redhat.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
> ---
> tests/qemu-iotests/155 | 14 +++++++++-----
> 1 file changed, 9 insertions(+), 5 deletions(-)
>
> diff --git a/tests/qemu-iotests/155 b/tests/qemu-iotests/155
> index fc9fa975be..42dae04c83 100755
> --- a/tests/qemu-iotests/155
> +++ b/tests/qemu-iotests/155
> @@ -64,7 +64,7 @@ class BaseClass(iotests.QMPTestCase):
> 'file': {'driver': 'file',
> 'filename': source_img}}
> self.vm.add_blockdev(self.qmp_to_opts(blockdev))
> - self.vm.add_device('floppy,id=qdev0,drive=source')
> + self.vm.add_device('virtio-blk,id=qdev0,drive=source')
> self.vm.launch()
>
> self.assertIntactSourceBackingChain()
> @@ -173,21 +173,24 @@ class MirrorBaseClass(BaseClass):
> def testFull(self):
> self.runMirror('full')
>
> - node = self.findBlockNode('target', 'qdev0')
> + node = self.findBlockNode('target',
> + '/machine/peripheral/qdev0/virtio-backend')
> self.assertCorrectBackingImage(node, None)
> self.assertIntactSourceBackingChain()
>
> def testTop(self):
> self.runMirror('top')
>
> - node = self.findBlockNode('target', 'qdev0')
> + node = self.findBlockNode('target',
> + '/machine/peripheral/qdev0/virtio-backend')
> self.assertCorrectBackingImage(node, back2_img)
> self.assertIntactSourceBackingChain()
>
> def testNone(self):
> self.runMirror('none')
>
> - node = self.findBlockNode('target', 'qdev0')
> + node = self.findBlockNode('target',
> + '/machine/peripheral/qdev0/virtio-backend')
> self.assertCorrectBackingImage(node, source_img)
> self.assertIntactSourceBackingChain()
>
> @@ -239,7 +242,8 @@ class TestCommit(BaseClass):
>
> self.vm.event_wait('BLOCK_JOB_COMPLETED')
>
> - node = self.findBlockNode(None, 'qdev0')
> + node = self.findBlockNode(None,
> + '/machine/peripheral/qdev0/virtio-backend')
> self.assert_qmp(node, 'image' + '/backing-image' * 0 + '/filename',
> back1_img)
> self.assert_qmp(node, 'image' + '/backing-image' * 1 + '/filename',
>
next prev parent reply other threads:[~2018-02-12 12:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-12 12:47 [Qemu-devel] [PATCH] iotests: Use virtio-blk in 155 Max Reitz
2018-02-12 12:54 ` Christian Borntraeger [this message]
2018-02-12 13:16 ` Kevin Wolf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ec6116a6-80f7-4375-ecce-d34cb532c77d@de.ibm.com \
--to=borntraeger@de.ibm.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).