Re: [Qemu-devel] Design of the blobstore [API of the NVRAM]

2011-09-16 Thread Stefan Berger
On 09/16/2011 06:35 AM, Stefan Hajnoczi wrote: On Thu, Sep 15, 2011 at 08:34:55AM -0400, Stefan Berger wrote: On 09/15/2011 07:17 AM, Stefan Hajnoczi wrote: [...] Everything is kind of changing now. But here's what I have right now: tb->s.tpm_ltpms->nvram = nvram_setup(tpm_ltpms->drive_

Re: [Qemu-devel] Design of the blobstore [API of the NVRAM]

2011-09-16 Thread Stefan Hajnoczi
On Thu, Sep 15, 2011 at 08:34:55AM -0400, Stefan Berger wrote: > On 09/15/2011 07:17 AM, Stefan Hajnoczi wrote: > >On Wed, Sep 14, 2011 at 6:05 PM, Stefan Berger > > wrote: > >> One property of the blobstore is that it has a certain required size for > >>accommodating all blobs of device that wan

Re: [Qemu-devel] Design of the blobstore

2011-09-16 Thread Kevin Wolf
Am 15.09.2011 13:58, schrieb Stefan Hajnoczi: >>> What about live migration? If each VM has a LUN assigned on a SAN >>> then these qcow2 files add a new requirement for a shared file system. >>> >>> Perhaps it makes sense to include the blobstore in the VM state data >>> instead? If you take that

Re: [Qemu-devel] Design of the blobstore

2011-09-16 Thread Kevin Wolf
Am 15.09.2011 16:19, schrieb Stefan Berger: > On 09/15/2011 07:40 AM, Kevin Wolf wrote: >> Am 15.09.2011 13:17, schrieb Stefan Hajnoczi: >>> On Wed, Sep 14, 2011 at 6:05 PM, Stefan Berger >>> wrote: One property of the blobstore is that it has a certain required size for accommodating

Re: [Qemu-devel] Design of the blobstore

2011-09-15 Thread Stefan Berger
On 09/15/2011 07:40 AM, Kevin Wolf wrote: Am 15.09.2011 13:17, schrieb Stefan Hajnoczi: On Wed, Sep 14, 2011 at 6:05 PM, Stefan Berger wrote: One property of the blobstore is that it has a certain required size for accommodating all blobs of device that want to store their blobs onto. The a

Re: [Qemu-devel] Design of the blobstore

2011-09-15 Thread Stefan Berger
On 09/15/2011 09:27 AM, Daniel P. Berrange wrote: On Thu, Sep 15, 2011 at 09:13:25AM -0400, Stefan Berger wrote: On 09/15/2011 09:05 AM, Daniel P. Berrange wrote: On Wed, Sep 14, 2011 at 01:05:44PM -0400, Stefan Berger wrote: Hello! Over the last few days primarily Michael Tsirkin and I ha

Re: [Qemu-devel] Design of the blobstore

2011-09-15 Thread Daniel P. Berrange
On Thu, Sep 15, 2011 at 09:13:25AM -0400, Stefan Berger wrote: > On 09/15/2011 09:05 AM, Daniel P. Berrange wrote: > >On Wed, Sep 14, 2011 at 01:05:44PM -0400, Stefan Berger wrote: > >>Hello! > >> > >> Over the last few days primarily Michael Tsirkin and I have > >>discussed the design of the 'bl

Re: [Qemu-devel] Design of the blobstore

2011-09-15 Thread Stefan Berger
On 09/15/2011 09:05 AM, Daniel P. Berrange wrote: On Wed, Sep 14, 2011 at 01:05:44PM -0400, Stefan Berger wrote: Hello! Over the last few days primarily Michael Tsirkin and I have discussed the design of the 'blobstore' via IRC (#virtualization). The intention of the blobstore is to provide

Re: [Qemu-devel] Design of the blobstore

2011-09-15 Thread Daniel P. Berrange
On Wed, Sep 14, 2011 at 01:05:44PM -0400, Stefan Berger wrote: > Hello! > > Over the last few days primarily Michael Tsirkin and I have > discussed the design of the 'blobstore' via IRC (#virtualization). > The intention of the blobstore is to provide storage to persist > blobs that devices crea

Re: [Qemu-devel] Design of the blobstore [API of the NVRAM]

2011-09-15 Thread Stefan Berger
On 09/15/2011 07:17 AM, Stefan Hajnoczi wrote: On Wed, Sep 14, 2011 at 6:05 PM, Stefan Berger wrote: One property of the blobstore is that it has a certain required size for accommodating all blobs of device that want to store their blobs onto. The assumption is that the size of these blobs

Re: [Qemu-devel] Design of the blobstore

2011-09-15 Thread Michael S. Tsirkin
> We'll need to invent our > own key-value store when there are plenty of existing ones. Let's not invent our own. So a proposal I sent uses an existing one (BER encoding) for such a store. I actually think we can switch to BER more widely such as for migration format. -- MST

Re: [Qemu-devel] Design of the blobstore

2011-09-15 Thread Stefan Hajnoczi
On Thu, Sep 15, 2011 at 12:40 PM, Kevin Wolf wrote: > Am 15.09.2011 13:17, schrieb Stefan Hajnoczi: >> On Wed, Sep 14, 2011 at 6:05 PM, Stefan Berger >> wrote: >>>  One property of the blobstore is that it has a certain required size for >>> accommodating all blobs of device that want to store th

Re: [Qemu-devel] Design of the blobstore

2011-09-15 Thread Kevin Wolf
Am 15.09.2011 13:17, schrieb Stefan Hajnoczi: > On Wed, Sep 14, 2011 at 6:05 PM, Stefan Berger > wrote: >> One property of the blobstore is that it has a certain required size for >> accommodating all blobs of device that want to store their blobs onto. The >> assumption is that the size of these

Re: [Qemu-devel] Design of the blobstore

2011-09-15 Thread Daniel P. Berrange
On Thu, Sep 15, 2011 at 12:17:54PM +0100, Stefan Hajnoczi wrote: > On Wed, Sep 14, 2011 at 6:05 PM, Stefan Berger > wrote: > >  One property of the blobstore is that it has a certain required size for > > accommodating all blobs of device that want to store their blobs onto. The > > assumption is

Re: [Qemu-devel] Design of the blobstore

2011-09-15 Thread Stefan Hajnoczi
On Wed, Sep 14, 2011 at 6:05 PM, Stefan Berger wrote: >  One property of the blobstore is that it has a certain required size for > accommodating all blobs of device that want to store their blobs onto. The > assumption is that the size of these blobs is know a-priori to the writer of > the device

Re: [Qemu-devel] Design of the blobstore

2011-09-15 Thread Stefan Berger
On 09/15/2011 06:51 AM, Michael S. Tsirkin wrote: On Thu, Sep 15, 2011 at 06:22:15AM -0400, Stefan Berger wrote: On 09/15/2011 02:57 AM, Michael S. Tsirkin wrote: On Wed, Sep 14, 2011 at 05:12:48PM -0400, Stefan Berger wrote: On 09/14/2011 01:56 PM, Michael S. Tsirkin wrote: On Wed, Sep 14, 2

Re: [Qemu-devel] Design of the blobstore

2011-09-15 Thread Michael S. Tsirkin
On Thu, Sep 15, 2011 at 06:22:15AM -0400, Stefan Berger wrote: > On 09/15/2011 02:57 AM, Michael S. Tsirkin wrote: > >On Wed, Sep 14, 2011 at 05:12:48PM -0400, Stefan Berger wrote: > >>On 09/14/2011 01:56 PM, Michael S. Tsirkin wrote: > >>>On Wed, Sep 14, 2011 at 01:49:50PM -0400, Stefan Berger wro

Re: [Qemu-devel] Design of the blobstore

2011-09-15 Thread Stefan Berger
On 09/15/2011 02:57 AM, Michael S. Tsirkin wrote: On Wed, Sep 14, 2011 at 05:12:48PM -0400, Stefan Berger wrote: On 09/14/2011 01:56 PM, Michael S. Tsirkin wrote: On Wed, Sep 14, 2011 at 01:49:50PM -0400, Stefan Berger wrote: On 09/14/2011 01:40 PM, Michael S. Tsirkin wrote: On Wed, Sep 14, 2

Re: [Qemu-devel] Design of the blobstore

2011-09-15 Thread Gleb Natapov
On Thu, Sep 15, 2011 at 06:18:35AM -0400, Stefan Berger wrote: > On 09/15/2011 01:47 AM, Gleb Natapov wrote: > >On Wed, Sep 14, 2011 at 01:05:44PM -0400, Stefan Berger wrote: > >> One property of the blobstore is that it has a certain required > >>size for accommodating all blobs of device that w

Re: [Qemu-devel] Design of the blobstore

2011-09-15 Thread Stefan Berger
On 09/15/2011 01:47 AM, Gleb Natapov wrote: On Wed, Sep 14, 2011 at 01:05:44PM -0400, Stefan Berger wrote: One property of the blobstore is that it has a certain required size for accommodating all blobs of device that want to store their blobs onto. The assumption is that the size of these b

Re: [Qemu-devel] Design of the blobstore

2011-09-14 Thread Michael S. Tsirkin
On Wed, Sep 14, 2011 at 05:12:48PM -0400, Stefan Berger wrote: > On 09/14/2011 01:56 PM, Michael S. Tsirkin wrote: > >On Wed, Sep 14, 2011 at 01:49:50PM -0400, Stefan Berger wrote: > >>On 09/14/2011 01:40 PM, Michael S. Tsirkin wrote: > >>>On Wed, Sep 14, 2011 at 01:05:44PM -0400, Stefan Berger wro

Re: [Qemu-devel] Design of the blobstore

2011-09-14 Thread Gleb Natapov
On Wed, Sep 14, 2011 at 01:05:44PM -0400, Stefan Berger wrote: > One property of the blobstore is that it has a certain required > size for accommodating all blobs of device that want to store their > blobs onto. The assumption is that the size of these blobs is know > a-priori to the writer of t

Re: [Qemu-devel] Design of the blobstore

2011-09-14 Thread Stefan Berger
On 09/14/2011 01:56 PM, Michael S. Tsirkin wrote: On Wed, Sep 14, 2011 at 01:49:50PM -0400, Stefan Berger wrote: 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 \

Re: [Qemu-devel] Design of the blobstore

2011-09-14 Thread Michael S. Tsirkin
On Wed, Sep 14, 2011 at 01:49:50PM -0400, Stefan Berger wrote: > 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 \ > >>

Re: [Qemu-devel] Design of the blobstore

2011-09-14 Thread Stefan Berger
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=

Re: [Qemu-devel] Design of the blobstore

2011-09-14 Thread Michael S. Tsirkin
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 t