qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Design of the blobstore


From: Stefan Berger
Subject: Re: [Qemu-devel] Design of the blobstore
Date: Wed, 14 Sep 2011 13:49:50 -0400
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc14 Lightning/1.0b3pre Thunderbird/3.1.11

On 09/14/2011 01:40 PM, Michael S. Tsirkin wrote:
On Wed, Sep 14, 2011 at 01:05:44PM -0400, Stefan Berger wrote:
qemu ... \
     -blobstore name=my-blobstore,drive=tpm-bs,showsize \
     -drive if=none,id=tpm-bs \
     -tpmdev libtpms,blobstore=my-blobstore,id=tpm0 \
     -device tpm-tis,tpmdev=tpm0

which would result in QEMU printing to stdout:

Blobstore tpm-store on drive with ID tpm-bs requires 83kb.
So you envision tools parsing this freetext then?
Seems like a step back, we are trying to move to QMP ...
I extended it first for the way I typically interact with QEMU. I do not use the monitor much.

So with above, the raw case which we don't expect to be used often
is easy to use, but qcow which we expect to be the main case
is close to imposible, involving manual cut and paste
of image size.

Formatting images seems a rare enough occasion,
that I think only using monitor command for that
would be a better idea than a ton of new command
line options. On top of that, let's write a
script that run qemu, queries image size,
creates a qcow2 file, run qemu again to format,
all this using QMP.
Creates the qcow2 using 'qemu-img' I suppose.

   Stefan
WRT 'format and run in one go' I strongly disagree with it.
It's just too easy to shoot oneself in the foot.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]