From: Ian Campbell <ian.campbell@citrix.com>
To: Quan Xu <quan.xu@intel.com>
Cc: wei.liu2@citrix.com, keir@xen.org,
stefano.stabellini@eu.citrix.com, tim@xen.org,
stefanb@linux.vnet.ibm.com, ian.jackson@eu.citrix.com,
xen-devel@lists.xen.org, jbeulich@suse.com,
samuel.thibault@ens-lyon.org, dgdegra@tycho.nsa.gov
Subject: Re: [PATCH v3 1/7] vTPM: event channel bind interdomain with para/hvm virtual machine
Date: Thu, 19 Mar 2015 12:59:40 +0000 [thread overview]
Message-ID: <1426769980.610.66.camel@citrix.com> (raw)
In-Reply-To: <1425989642-2758-2-git-send-email-quan.xu@intel.com>
On Tue, 2015-03-10 at 08:13 -0400, Quan Xu wrote:
Isn't this patch just a coding style change? If there is any substance I
can't spot it, please can you do them separately, or else say in the
commit message that this is a coding style cleanup and "no functional
change" etc.
Also, you seem to have reindented everything by one more space than the
surrounding code, which doesn't seem right.
> Signed-off-by: Quan Xu <quan.xu@intel.com>
> ---
> extras/mini-os/tpmback.c | 25 ++++++++++++++-----------
> 1 file changed, 14 insertions(+), 11 deletions(-)
>
> diff --git a/extras/mini-os/tpmback.c b/extras/mini-os/tpmback.c
> index 00b66e8..8a0a983 100644
> --- a/extras/mini-os/tpmback.c
> +++ b/extras/mini-os/tpmback.c
> @@ -608,18 +608,21 @@ int connect_fe(tpmif_t* tpmif)
> }
> free(value);
>
> - domid = tpmif->domid;
> - if((tpmif->page = gntmap_map_grant_refs(>pmdev.map, 1, &domid, 0, &ringref, PROT_READ | PROT_WRITE)) == NULL) {
> - TPMBACK_ERR("Failed to map grant reference %u/%u\n", (unsigned int) tpmif->domid, tpmif->handle);
> - return -1;
> - }
> + domid = (unsigned int)tpmif->domid;
> + if ((tpmif->page = gntmap_map_grant_refs(>pmdev.map, 1, &domid, 0, &ringref,
> + PROT_READ | PROT_WRITE)) == NULL) {
> + TPMBACK_ERR("Failed to map grant reference %u/%u\n",
> + tpmif->domid, tpmif->handle);
> + return -1;
> + }
> +
> + /* Bind the event channel */
> + if ((evtchn_bind_interdomain(domid, evtchn, tpmback_handler, tpmif, &tpmif->evtchn))) {
> + TPMBACK_ERR("%u/%u Unable to bind to interdomain event channel!\n",
> + (unsigned int) tpmif->domid, tpmif->handle);
> + goto error_post_map;
> + }
>
> - /*Bind the event channel */
> - if((evtchn_bind_interdomain(tpmif->domid, evtchn, tpmback_handler, tpmif, &tpmif->evtchn)))
> - {
> - TPMBACK_ERR("%u/%u Unable to bind to interdomain event channel!\n", (unsigned int) tpmif->domid, tpmif->handle);
> - goto error_post_map;
> - }
> unmask_evtchn(tpmif->evtchn);
>
> /* Write the ready flag and change status to connected */
next prev parent reply other threads:[~2015-03-19 12:59 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-10 12:13 [PATCH v3 0/7] vTPM: Xen stubdom vTPM for HVM virtual machine Quan Xu
2015-03-10 12:13 ` [PATCH v3 1/7] vTPM: event channel bind interdomain with para/hvm " Quan Xu
2015-03-13 14:02 ` Wei Liu
2015-03-13 15:26 ` Xu, Quan
2015-03-19 12:59 ` Ian Campbell [this message]
2015-03-10 12:13 ` [PATCH v3 2/7] vTPM: limit libxl__add_vtpms() function to para " Quan Xu
2015-03-13 15:41 ` Wei Liu
2015-03-19 13:00 ` Ian Campbell
2015-03-10 12:13 ` [PATCH v3 3/7] vTPM: add TPM TCPA and SSDT for HVM virtual machine when vTPM is added Quan Xu
2015-03-13 15:46 ` Wei Liu
2015-03-19 13:02 ` Ian Campbell
2015-03-10 12:13 ` [PATCH v3 4/7] vTPM: add vTPM device for HVM virtual machine Quan Xu
2015-03-13 16:08 ` Wei Liu
2015-03-10 12:14 ` [PATCH v3 5/7] vTPM: Delete the xenstore directory of frontend device Quan Xu
2015-03-13 16:11 ` Wei Liu
2015-03-10 12:14 ` [PATCH v3 6/7] vTPM: Parse envent string from QEMU frontend Quan Xu
2015-03-13 16:13 ` Wei Liu
2015-03-10 12:14 ` [PATCH v3 7/7] vTPM: add QEMU_STUBDOM_VTPM compile option 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=1426769980.610.66.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=dgdegra@tycho.nsa.gov \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=keir@xen.org \
--cc=quan.xu@intel.com \
--cc=samuel.thibault@ens-lyon.org \
--cc=stefanb@linux.vnet.ibm.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--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.