All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Berger <stefanb@linux.vnet.ibm.com>
To: Quan Xu <quan.xu@intel.com>,
	stefano.stabellini@eu.citrix.com, eblake@redhat.com
Cc: dgdegra@tycho.nsa.gov, wei.liu2@citrix.com,
	qemu-devel@nongnu.org, xen-devel@lists.xen.org
Subject: Re: [Qemu-devel] [PATCH v6 5/6] Qemu-Xen-vTPM: Qemu vTPM xenstubdoms backen.
Date: Mon, 04 May 2015 11:30:00 -0400	[thread overview]
Message-ID: <55479078.8050008@linux.vnet.ibm.com> (raw)
In-Reply-To: <1430724181-476-6-git-send-email-quan.xu@intel.com>

On 05/04/2015 03:23 AM, Quan Xu wrote:
> This Patch provides the glue for the TPM_TIS(Qemu frontend) to Xen
> stubdom vTPM domain that provides the actual TPM functionality. It
> sends data and TPM commends with xen_vtpm_frontend. It is similar as
> another two vTPM backens:
>    *vTPM passthrough backen Since QEMU 1.5.
>    *vTPM libtpms-based backen.
>
> Some details:
> This part of the patch provides support for the spawning of a thread
> that will interact with stubdom vTPM domain by the xen_vtpm_frontend.
> It expects a signal from the frontend to wake and pick up the TPM
> command that is supposed to be processed and delivers the response
> packet using a callback function provided by the frontend.
>
> The backend connects itself to the frontend by filling out an interface
> structure with pointers to the function implementing support for various
> operations.
>
> (QEMU) vTPM XenStubdoms backen is initialized by Qemu command line options,
>        "-tpmdev xenstubdoms,id=xenvtpm0 -device tpm-tis,tpmdev=xenvtpm0"
>
> Signed-off-by: Quan Xu <quan.xu@intel.com>

Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com>

+
+#ifdef DEBUG_TPM
+#define DPRINTF(fmt, ...) \
+    do { fprintf(stderr, fmt, ## __VA_ARGS__); } while (0)
+#else
+#define DPRINTF(fmt, ...) \
+    do { } while (0)
+#endif


In case some other parts needs revision, please use the following instead:

#define DEBUG_TPM 0

#define DPRINTF(fmt, ...) do { \
     if (DEBUG_TPM) { \
         fprintf(stderr, fmt, ## __VA_ARGS__); \
     } \
} while (0);


    Stefan

  parent reply	other threads:[~2015-05-04 15:30 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-04  7:22 [Qemu-devel] [PATCH v6 0/6] QEMU:Xen stubdom vTPM for HVM virtual machine(QEMU Part) Quan Xu
2015-05-04  7:22 ` [PATCH v6 1/6] Qemu-Xen-vTPM: Support for Xen stubdom vTPM command line options Quan Xu
2015-05-04  7:22 ` [Qemu-devel] " Quan Xu
2015-05-05 14:28   ` Eric Blake
2015-05-05 14:28   ` [Qemu-devel] " Eric Blake
2015-05-06  2:02     ` Xu, Quan
2015-05-06  2:02     ` Xu, Quan
2015-05-04  7:22 ` [Qemu-devel] [PATCH v6 2/6] Qemu-Xen-vTPM: Xen frontend driver infrastructure Quan Xu
2015-05-04  7:22   ` Quan Xu
2015-05-07 17:25   ` [Qemu-devel] " Stefano Stabellini
2015-05-12  1:28     ` [Qemu-devel] [Xen-devel] " Xu, Quan
2015-05-12 14:12       ` Stefano Stabellini
2015-05-12 14:12       ` [Qemu-devel] [Xen-devel] " Stefano Stabellini
2015-05-12  1:28     ` Xu, Quan
2015-05-07 17:25   ` Stefano Stabellini
2015-05-08  9:52   ` [Qemu-devel] " Stefano Stabellini
2015-05-08  9:52     ` Stefano Stabellini
2015-05-04  7:22 ` [Qemu-devel] [PATCH v6 3/6] " Quan Xu
2015-05-04  7:22   ` Quan Xu
2015-05-04 12:57   ` Xu, Quan
2015-05-04 12:57   ` [Qemu-devel] " Xu, Quan
2015-05-04 15:36   ` Stefan Berger
2015-05-05  2:41     ` Xu, Quan
2015-05-05 10:23       ` Stefan Berger
2015-05-05  2:41     ` Xu, Quan
2015-05-11 12:56     ` [Qemu-devel] " Xu, Quan
2015-05-11 12:56       ` Xu, Quan
2015-05-11 14:49       ` Stefan Berger
2015-05-11 14:49       ` [Qemu-devel] " Stefan Berger
2015-05-11 14:51         ` Xu, Quan
2015-05-11 14:51         ` Xu, Quan
2015-05-04 15:36   ` Stefan Berger
2015-05-08  9:52   ` [Qemu-devel] " Stefano Stabellini
2015-05-08  9:52     ` Stefano Stabellini
2015-05-04  7:22 ` [Qemu-devel] [PATCH v6 4/6] Qemu-Xen-vTPM: Move tpm_passthrough_is_selftest() into tpm_util.c Quan Xu
2015-05-04 15:25   ` Stefan Berger
2015-05-04 15:25   ` [Qemu-devel] " Stefan Berger
2015-05-05  2:33     ` Xu, Quan
2015-05-05  2:33     ` [Qemu-devel] " Xu, Quan
2015-05-04  7:22 ` Quan Xu
2015-05-04  7:23 ` [PATCH v6 5/6] Qemu-Xen-vTPM: Qemu vTPM xenstubdoms backen Quan Xu
2015-05-04  7:23 ` [Qemu-devel] " Quan Xu
2015-05-04 15:30   ` Stefan Berger
2015-05-04 15:30   ` Stefan Berger [this message]
2015-05-05  2:34     ` Xu, Quan
2015-05-05  2:34     ` [Qemu-devel] " Xu, Quan
2015-05-04  7:23 ` [Qemu-devel] [PATCH v6 6/6] Qemu-Xen-vTPM: QEMU machine class is initialized before tpm_init() Quan Xu
2015-05-04  7:23   ` Quan Xu

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=55479078.8050008@linux.vnet.ibm.com \
    --to=stefanb@linux.vnet.ibm.com \
    --cc=dgdegra@tycho.nsa.gov \
    --cc=eblake@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quan.xu@intel.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.