Re: [Qemu-devel] [PATCH v2 1/3] nvram: Add TPM NVRAM implementation

2013-06-06 Thread Corey Bryant
On 06/06/2013 05:22 AM, Stefan Hajnoczi wrote: On Wed, Jun 05, 2013 at 04:47:59PM -0400, Corey Bryant wrote: +/* + * Coroutine that reads a blob from the drive asynchronously + */ +static void coroutine_fn tpm_nvram_co_read(void *opaque) +{ +TPMNvramRWRequest *rwr = opaque; + +*rwr->bl

Re: [Qemu-devel] [PATCH v2 1/3] nvram: Add TPM NVRAM implementation

2013-06-06 Thread Stefan Hajnoczi
On Wed, Jun 05, 2013 at 04:47:59PM -0400, Corey Bryant wrote: > +/* > + * Coroutine that reads a blob from the drive asynchronously > + */ > +static void coroutine_fn tpm_nvram_co_read(void *opaque) > +{ > +TPMNvramRWRequest *rwr = opaque; > + > +*rwr->blob_r = g_malloc(rwr->size); > + > +

[Qemu-devel] [PATCH v2 1/3] nvram: Add TPM NVRAM implementation

2013-06-05 Thread Corey Bryant
Provides TPM NVRAM implementation that enables storing of TPM NVRAM data in a persistent image file. The block driver is used to read/write the drive image. This will enable, for example, an encrypted QCOW2 image to be used to store sensitive keys. This patch provides APIs that a TPM backend can