qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: xiaoqiang zhao <zxq_yx_007@163.com>
To: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>,
	Paolo Bonzini <pbonzini@redhat.com>,
	qemu-devel@nongnu.org
Cc: qemu-block@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 4/7] scsi-disk: introduce dma_readv and dma_writev
Date: Fri, 3 Jun 2016 14:07:14 +0800	[thread overview]
Message-ID: <57511E92.4000807@163.com> (raw)
In-Reply-To: <57511422.6020901@ilande.co.uk>



在 2016年06月03日 13:22, Mark Cave-Ayland 写道:
> On 03/06/16 03:56, xiaoqiang zhao wrote:
>
>> 在 2016年06月02日 03:07, Mark Cave-Ayland 写道:
>>> On 23/05/16 13:54, Paolo Bonzini wrote:
>>>
>>>>> These are replacements for blk_aio_preadv and blk_aio_pwritev that
>>>> allow
>>>>> customization of the data path.  They reuse the DMA helpers' DMAIOFunc
>>>>> callback type, so that the same function can be used in either the
>>>>> QEMUSGList or the bounce-buffered case.
>>>>>
>>>>> This customization will be needed in the next patch to do zero-copy
>>>>> SG_IO on scsi-block.
>>>>>
>>>>> Signed-off-by: Paolo Bonzini<pbonzini@redhat.com>
>>>>> ---
>>>>>   hw/scsi/scsi-disk.c | 63
>>>> +++++++++++++++++++++++++++++++++++++++++++----------
>>>>>   1 file changed, 52 insertions(+), 11 deletions(-)
>>>>>
>>> Hi Paolo,
>>>
>>> This patch appears to break qemu-system-sparc booting from CDROM with
>>> the following command line:
>>>
>>> ./qemu-system-sparc -cdrom debian-40r4a-sparc-netinst.iso -boot d
>>>
>>> Instead of booting straight into SILO, OpenBIOS hangs when trying to
>>> read from the CDROM device.
>> Paolo:
>>    By using git bisect on master branch , I found this patch also break
>> qemu-system-arm from booting.
>>    command line:
>>   qemu-system-arm -M versatilepb -kernel vmlinuz-3.2.0-4-versatile
>> -initrd initrd.img-3.2.0-4-versatile -hda
>> /home/hitmoon/debian_wheezy_armel_standard.qcow2 -append 'root=/dev/sda1'
>>
>>   The booting process stops at mounting the root partition and after
>> timeout droped into a initramfs shell. The device '/dev/sda1' is
>> presented . I guess it can not read properly from sda1.
> I've just sent through a patch which fixes the issue for me - please
> test and report back!
>
> Paolo - not sure if it's worth a follow-up patch that renames the
> relevant _readv/_writev functions in scsi-disk.c to _preadv/_pwritev to
> try and help avoid such confusion in future?
>
>
> ATB,
>
> Mark.
>
>
Mark:
   I can confirm it works for me !

  reply	other threads:[~2016-06-03  6:07 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-23 12:54 [Qemu-devel] [PATCH v2 0/7] dma-helpers, scsi-block: use SG_IO for all I/O on scsi-block Paolo Bonzini
2016-05-23 12:54 ` [Qemu-devel] [PATCH 1/7] dma-helpers: change interface to byte-based Paolo Bonzini
2016-05-23 15:06   ` Eric Blake
2016-05-23 12:54 ` [Qemu-devel] [PATCH 2/7] dma-helpers: change BlockBackend to opaque value in DMAIOFunc Paolo Bonzini
2016-05-23 15:43   ` Eric Blake
2016-05-24  2:47   ` Fam Zheng
2016-05-24  7:05     ` Paolo Bonzini
2016-05-23 12:54 ` [Qemu-devel] [PATCH 3/7] scsi-disk: introduce a common base class Paolo Bonzini
2016-05-23 15:53   ` Eric Blake
2016-05-23 12:54 ` [Qemu-devel] [PATCH 4/7] scsi-disk: introduce dma_readv and dma_writev Paolo Bonzini
2016-05-23 16:09   ` Eric Blake
2016-06-01 19:07   ` Mark Cave-Ayland
2016-06-03  2:56     ` xiaoqiang zhao
2016-06-03  5:22       ` Mark Cave-Ayland
2016-06-03  6:07         ` xiaoqiang zhao [this message]
2016-05-23 12:54 ` [Qemu-devel] [PATCH 5/7] scsi-disk: add need_fua_emulation to SCSIDiskClass Paolo Bonzini
2016-05-23 16:34   ` Eric Blake
2016-05-24  3:04   ` Fam Zheng
2016-05-24  7:02     ` Paolo Bonzini
2016-05-23 12:54 ` [Qemu-devel] [PATCH 6/7] scsi-disk: introduce scsi_disk_req_check_error Paolo Bonzini
2016-05-23 19:16   ` Eric Blake
2016-05-23 12:54 ` [Qemu-devel] [PATCH 7/7] scsi-block: always use SG_IO Paolo Bonzini
2016-05-23 19:49   ` Eric Blake
2016-05-23 19:36 ` [Qemu-devel] [PATCH v2 0/7] dma-helpers, scsi-block: use SG_IO for all I/O on scsi-block Mark Cave-Ayland
2016-05-24 22:59   ` Mark Cave-Ayland
2016-05-25  8:45     ` Paolo Bonzini
2016-05-25  9:13       ` Mark Cave-Ayland
2016-05-25 10:11         ` Paolo Bonzini
2016-05-25 16:38 ` [Qemu-devel] [Qemu-block] " 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=57511E92.4000807@163.com \
    --to=zxq_yx_007@163.com \
    --cc=mark.cave-ayland@ilande.co.uk \
    --cc=pbonzini@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).