qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Programmingkid <programmingkidx@gmail.com>
To: Laurent Vivier <lvivier@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
	qemu-devel qemu-devel <qemu-devel@nongnu.org>,
	Qemu-block <qemu-block@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] raw-posix.c: Make physical devices usable in QEMU
Date: Thu, 9 Jul 2015 10:05:41 -0400	[thread overview]
Message-ID: <15C0A91D-073C-4CD0-8563-FABFB463395F@gmail.com> (raw)
In-Reply-To: <559E4070.6040700@redhat.com>


On Jul 9, 2015, at 5:35 AM, Laurent Vivier wrote:

> 
> 
> On 07/07/2015 19:33, Programmingkid wrote:
>> Make physical devices like a USB flash drive or a CDROM drive work in
>> QEMU. With
>> this patch I can use a USB flash drive like a hard drive. Before this
>> patch, 
>> QEMU would just quit with a message like "resource busy". Now it handles
>> issues
>> like these for the user. This patch unmounts volumes of physical devices
>> before
>> using them in QEMU. When QEMU quits, the physical devices are mounted again
>> for the user. The user can find out which device files to use for their
>> physical
>> devices by running the mount command in the terminal. This patch makes
>> "qemu-system-ppc -cdrom /dev/cdrom" work again on Mac OS X.
>> 
>> Signed-off-by: John Arbuckle <programmingkidx@gmail.com
>> <mailto:programmingkidx@gmail.com>>
> 
> Two comments:
> - you should not mix several fixes in one patch (raw block device
> management, partition seek, unmount/mount cdrom...)

I consider this patch one fix with several related changes. 

> - according to Stefan answer, I think you should not unmount the CDROM
> but you should inform the user he must unmount it manually to be able to
> use it.

Having the user unmount the CDROM manually isn't as user friendly as
having QEMU doing it for him or her. 

  reply	other threads:[~2015-07-09 14:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-07 17:33 [Qemu-devel] [PATCH] raw-posix.c: Make physical devices usable in QEMU Programmingkid
2015-07-09  9:35 ` Laurent Vivier
2015-07-09 14:05   ` Programmingkid [this message]
2015-07-09 10:52 ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
2015-07-09 14:02   ` Programmingkid
2015-07-16 13:19     ` Stefan Hajnoczi
2015-07-16 17:26       ` Programmingkid
2015-07-16 19:43         ` Stefan Hajnoczi
2015-07-16 19:51           ` Programmingkid

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=15C0A91D-073C-4CD0-8563-FABFB463395F@gmail.com \
    --to=programmingkidx@gmail.com \
    --cc=kwolf@redhat.com \
    --cc=lvivier@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).