qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Max Reitz <mreitz@redhat.com>
To: G 3 <programmingkidx@gmail.com>,
	Peter Maydell <peter.maydell@linaro.org>,
	qemu-devel qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Mount image file feature
Date: Sat, 29 Aug 2015 17:40:57 +0200	[thread overview]
Message-ID: <55E1D289.9000202@redhat.com> (raw)
In-Reply-To: <CAKyx-3NoTTH6XGsiLP-Z1G4nzMWvm1_+0ojkLz07vujXzEkZuw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1440 bytes --]

On 27.08.2015 03:05, G 3 wrote:
> I want to share files between my host and guest computer. A feature I
> want to add would be a new menu item in the Machine menu called "Mount
> Image File...". When the user selects it, a file open dialog box
> displays. The user can then select the image file with the file he wants
> to use. After pushing the OK button, the image file would be mounted
> like a USB flash drive. This menu item would only show up if there is
> usb support in the guest machine.
> 
> Would you be open to accepting such a feature?

Generally I'd expect this to be functionality exposed by the management
layer. For instance using virt-manager, this can be achived as follows:
Switch to "Details", then click "Add Hardware", choose "Storage" and
"USB" as the "Bus type". Choose the image, click "Finish", done.

The main problem I see with adding this functionality to qemu itself
would be having to get even further into the GUI business, which hasn't
worked out too well so far…

If we didn't care about that, than we'd have to think about the
implementation. Internally, we'd probably call QMP's blockdev-add to
open the image file, and then QMP's device_add to add the USB device. So
then qemu would use its own management interfaces to execute the
operation, which seems a bit strange to me, further hinting at the fact
that we probably should leave this to the management layer.

Max


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2015-08-29 15:41 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-27  1:05 [Qemu-devel] Mount image file feature G 3
2015-08-29 15:40 ` Max Reitz [this message]
2015-08-29 15:57   ` Programmingkid
2015-08-29 16:39     ` Max Reitz
2015-08-29 17:36       ` Programmingkid
2015-08-29 18:01         ` Max Reitz
2015-08-29 18:34           ` MagicCat Software
2015-08-29 19:34             ` Max Reitz
2015-08-29 20:06               ` Programmingkid
2015-08-29 23:10               ` Eric Blake
2015-08-30  0:02                 ` Programmingkid
2015-08-30  7:15                   ` Paolo Bonzini
2015-08-29 19:52             ` Max Reitz
2015-08-29 20:18               ` Programmingkid
2015-08-29 23:12                 ` Eric Blake
2015-08-29 23:31                   ` Programmingkid
2015-08-29 23:04         ` Eric Blake
2015-08-30  0:03           ` MagicCat Software
2015-08-31  8:02             ` Markus Armbruster
2015-08-30  6:47         ` Paolo Bonzini
2015-08-31  3:47           ` Programmingkid
2015-08-31  7:52         ` Markus Armbruster
2015-08-31 13:12           ` Programmingkid
2015-08-31 16:26             ` Markus Armbruster
2015-08-31 18:29               ` Programmingkid
2015-08-30  6:42       ` Paolo Bonzini
2015-08-31 20:13       ` Programmingkid
2015-08-31 20:26         ` Max Reitz
2015-08-31 20:33           ` Programmingkid
2015-09-02 14:31             ` Max Reitz
2015-09-02 14:38               ` Programmingkid
2015-09-03  9:46                 ` Markus Armbruster
2015-09-03 14:24                   ` Programmingkid
2015-09-03 16:26                     ` Markus Armbruster
2015-09-03 16:51                       ` Programmingkid
2015-09-03  9:34               ` Markus Armbruster

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=55E1D289.9000202@redhat.com \
    --to=mreitz@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=programmingkidx@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).