qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: John Snow <jsnow@redhat.com>
To: Peter Teoh <htmldeveloper@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] What is the meaning of "Device automatic Partial to Slumber transitions"?
Date: Wed, 9 Sep 2015 09:56:08 -0400	[thread overview]
Message-ID: <55F03A78.6050504@redhat.com> (raw)
In-Reply-To: <CAHnt0GXhO_=-3s+C7R21v6ujS=G1JddMM0hLbCcvwysWphFRgg@mail.gmail.com>



On 09/09/2015 06:51 AM, Peter Teoh wrote:
> I am trying to compare the difference between hdparm running inside
> qemu (as checkout from latest development git tree) and running on
> native.   My /dev/sdb is an Intel SSD harddisk.
> 
> So running this:
> 
> sudo qemu-system-x86_64 -m 1024 -boot c -enable-kvm -net nic -net user \
> -device virtio-scsi-pci \
> -drive if=none,file=/dev/sdb,id=sdb,cache=off,format=raw \
> -device scsi-block,drive=sdb \
> -hda fedora_hdd.img  \
> -monitor stdio -vga std
> 
> and then followed by "hdparm -I --verbose /dev/sdb" inside the qemu
> guest, versus the hdparm running on the native machine, I can see that
> only this entry is identified as "Unknown 76 (14)"  but whereas on the
> native machine it is listed as:
> 
>         "Device automatic Partial to Slumber transitions",/* word 76 bit 14 */
> 
> Can someone explained the difference (and its meaning) in the virtio emulation?
> 

In your QEMU invocation, you are not "passing through" this SATA device
directly to QEMU, but rather you are passing through just the /data/,
and QEMU is emulating a SCSI block device for you.

When you query this device inside of QEMU, it's going to be answering as
an emulated SCSI device. When you query it on your native machine, it
will be answering as a SATA device.

That should explain differences you see.

As for what this feature bit means; It's defined in the SATA spec as
part of S/ATA's IDENTIFY DEVICE command; the feature is described in
section 13.17. It has to do with automatic power state transitions --
something we generally ignore for SATA emulation in QEMU (and I assume
the same of any similar features for SCSI, etc.)

      reply	other threads:[~2015-09-09 13:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-09 10:51 [Qemu-devel] What is the meaning of "Device automatic Partial to Slumber transitions"? Peter Teoh
2015-09-09 13:56 ` John Snow [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=55F03A78.6050504@redhat.com \
    --to=jsnow@redhat.com \
    --cc=htmldeveloper@gmail.com \
    --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).