qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: Luiz Capitulino <lcapitulino@redhat.com>
Cc: qemu-devel@nongnu.org, Gerd Hoffmann <kraxel@redhat.com>,
	Markus Armbruster <armbru@redhat.com>,
	Avi Kivity <avi@redhat.com>
Subject: Re: [Qemu-devel] Re: RFC: blockdev_add & friends, brief rationale, QMP docs
Date: Mon, 31 May 2010 16:04:47 +0200	[thread overview]
Message-ID: <4C03C1FF.6000007@redhat.com> (raw)
In-Reply-To: <20100531104859.1e63fa85@redhat.com>

Am 31.05.2010 15:48, schrieb Luiz Capitulino:
> On Mon, 31 May 2010 13:05:37 +0200
> Markus Armbruster <armbru@redhat.com> wrote:
> 
>> Avi Kivity <avi@redhat.com> writes:
>>
>>> On 05/28/2010 10:24 PM, Luiz Capitulino wrote:
>>>>
>>>>> If a password is needed, we should throw an error and let the QMP client
>>>>> set the password and try again.
>>>>>      
>>>>   It's what we do today, a password should be set with block_passwd before
>>>> issuing the change command. Otherwise an error is throw.
>>>>    
>>>
>>> Is the password some kind of global or per-monitor property?  In that
>>> case it doesn't work with parallel execution of commands; better to
>>> have a password field (or assign IDs to passwords and require a
>>> passwordid=... argument).
>>
>> It sets the password in the host BlockDriverState.  Which must already
>> exist, i.e. you do it after blockdev_add.
>>
>> What happens if the guest device accesses the host drive before the key
>> is set?
> 
>  It's supposed to fail, right Kevin?

I don't think it's a situation that is even supposed to happen. Which is
exactly why I proposed an additional field to avoid it in the first place.

As far as I know in the old monitor the user would be prompted for the
password and as long as he doesn't enter it the VM is stopped, so we
don't get in the same situation there. But if you enter a wrong password
(I'm not sure if it's the same), it just seems to read garbage.

Kevin

  reply	other threads:[~2010-05-31 14:05 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-28 18:21 [Qemu-devel] RFC: blockdev_add & friends, brief rationale, QMP docs Markus Armbruster
2010-05-28 19:13 ` [Qemu-devel] " Kevin Wolf
2010-05-28 19:17   ` Anthony Liguori
2010-05-28 19:24     ` Luiz Capitulino
2010-05-30  9:11       ` Avi Kivity
2010-05-31 11:05         ` Markus Armbruster
2010-05-31 13:48           ` Luiz Capitulino
2010-05-31 14:04             ` Kevin Wolf [this message]
2010-05-30  9:09 ` Avi Kivity
2010-05-31 10:54   ` Markus Armbruster
2010-05-31 11:23     ` Avi Kivity
2010-05-31 11:50       ` Markus Armbruster
2010-06-04 14:16 ` Markus Armbruster
2010-06-04 14:32   ` Kevin Wolf
2010-06-04 15:53     ` Markus Armbruster
2010-06-04 16:20       ` Kevin Wolf
2010-06-06  8:23   ` Avi Kivity
2010-06-08  9:41     ` 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=4C03C1FF.6000007@redhat.com \
    --to=kwolf@redhat.com \
    --cc=armbru@redhat.com \
    --cc=avi@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=lcapitulino@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 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).