qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Daniel Henrique Barboza <danielhb413@gmail.com>,
	qemu-devel@nongnu.org, famz@redhat.com,
	qemu block <qemu-block@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v1 1/1] scsi-disk: Block Device Characteristics emulation fix
Date: Thu, 12 Jul 2018 17:04:17 +0200	[thread overview]
Message-ID: <20180712150417.GF4541@localhost.localdomain> (raw)
In-Reply-To: <d4353326-28db-0094-e998-f92026d8e7a9@redhat.com>

Am 12.07.2018 um 16:53 hat Paolo Bonzini geschrieben:
> On 11/07/2018 22:58, Daniel Henrique Barboza wrote:
> > The current BDC VPD page (page 0xb1) is too short. This can be
> > seen running sg_utils:
> > 
> > $ sg_vpd --page=bdc /dev/sda
> > Block device characteristics VPD page (SBC):
> > Block device characteristics VPD page length too short=8
> > 
> > By the SCSI spec, the expected size of the SBC page is 0x40.
> > There is no telling how the guest will behave with a shorter
> > message - it can ignore it, or worse, make (wrong)
> > assumptions.
> > 
> > This patch fixes the emulation by setting the size to 0x40.
> > This is the output of the previous sg_vpd command after
> > applying it:
> > 
> > $ sg_vpd --page=bdc /dev/sda -v
> >     inquiry cdb: 12 01 b1 00 fc 00
> > Block device characteristics VPD page (SBC):
> >    [PQual=0  Peripheral device type: disk]
> >   Medium rotation rate is not reported
> >   Product type: Not specified
> >   WABEREQ=0
> >   WACEREQ=0
> >   Nominal form factor not reported
> >   FUAB=0
> >   VBULS=0
> > 
> > To improve readability, this patch also adds the VBULS value
> > explictly and add comments on the existing fields we're
> > setting.
> > 
> > Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
> 
> Kevin kindly agreed to take this through the block tree, so
> 
> Acked-by: Paolo Bonzini <pbonzini@redhat.com>

Thanks, applied to the block branch.

Kevin

      reply	other threads:[~2018-07-12 15:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-11 20:58 [Qemu-devel] [PATCH v1 1/1] scsi-disk: Block Device Characteristics emulation fix Daniel Henrique Barboza
2018-07-12 14:53 ` Paolo Bonzini
2018-07-12 15:04   ` Kevin Wolf [this message]

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=20180712150417.GF4541@localhost.localdomain \
    --to=kwolf@redhat.com \
    --cc=danielhb413@gmail.com \
    --cc=famz@redhat.com \
    --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).