All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Pavel Hrdina <phrdina@redhat.com>
Cc: kwolf@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] scsi: reset cdrom tray statuses on scsi_disk_reset
Date: Fri, 17 May 2013 14:02:04 +0200	[thread overview]
Message-ID: <51961C3C.1010507@redhat.com> (raw)
In-Reply-To: <51961B3F.3090503@redhat.com>

Il 17/05/2013 13:57, Pavel Hrdina ha scritto:
>>
>> What happens when you suspend the QEMU machine to RAM?  I believe the
>> tray should remain open or, if closed, should remain locked.  Can you
>> try the same test on bare-metal (hint: boot to emergency mode to bypass
>> anything that udev can do with locking the tray, then use sg_prevent to
>> toggle the state).
> 
> I've booted to init 1, then ejected the CD-ROM tray and run the
> pm-suspend. The computer has suspended successfully. And again
> immediately after the computer is turned on before the screen is turned
> on the CD-ROM tray is closed.

Ok, these are good signs. :)

> I don't have SCSI CD-ROM device to use the sg_prevent.

All CD-ROMs ultimately speak SCSI (via ATAPI).  You don't have /dev/sr0?

Paolo

  reply	other threads:[~2013-05-17 12:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-16 15:34 [Qemu-devel] [PATCH] scsi: reset cdrom tray statuses on scsi_disk_reset Pavel Hrdina
2013-05-16 15:42 ` Eric Blake
2013-05-16 15:48   ` Pavel Hrdina
2013-05-16 16:11     ` Paolo Bonzini
2013-05-17 11:57       ` Pavel Hrdina
2013-05-17 12:02         ` Paolo Bonzini [this message]
2013-05-17 12:11           ` Pavel Hrdina
2013-05-17 12:15             ` Paolo Bonzini
2013-05-17 12:34               ` Pavel Hrdina

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=51961C3C.1010507@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=phrdina@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.