WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] xen vtpm: Initialize the comms ring w

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] xen vtpm: Initialize the comms ring with zeroes.
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 08 Jan 2008 15:10:28 -0800
Delivery-date: Tue, 08 Jan 2008 15:11:28 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1199786129 0
# Node ID fedc10fba9f1d5ec0c72dbcbca87e508222b4c48
# Parent  a5204f1a316fc675619fcd0d1b4217dc47e5bf14
xen vtpm: Initialize the comms ring with zeroes.

Initialize the ring with zeroes on the backend side and on the
frontend set the 'unused' member to zeroes.

Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>
---
 drivers/char/tpm/tpm_xen.c      |    1 +
 drivers/xen/tpmback/interface.c |    1 +
 2 files changed, 2 insertions(+)

diff -r a5204f1a316f -r fedc10fba9f1 drivers/char/tpm/tpm_xen.c
--- a/drivers/char/tpm/tpm_xen.c        Sun Dec 30 13:07:44 2007 -0700
+++ b/drivers/char/tpm/tpm_xen.c        Tue Jan 08 09:55:29 2008 +0000
@@ -617,6 +617,7 @@ static int tpm_xmit(struct tpm_private *
                tx = &tp->tx->ring[i].req;
                tx->addr = virt_to_machine(txb->data);
                tx->size = txb->len;
+               tx->unused = 0;
 
                DPRINTK("First 4 characters sent by TPM-FE are "
                        "0x%02x 0x%02x 0x%02x 0x%02x\n",
diff -r a5204f1a316f -r fedc10fba9f1 drivers/xen/tpmback/interface.c
--- a/drivers/xen/tpmback/interface.c   Sun Dec 30 13:07:44 2007 -0700
+++ b/drivers/xen/tpmback/interface.c   Tue Jan 08 09:55:29 2008 +0000
@@ -126,6 +126,7 @@ int tpmif_map(tpmif_t *tpmif, unsigned l
        }
 
        tpmif->tx = (tpmif_tx_interface_t *)tpmif->tx_area->addr;
+       memset(tpmif->tx, 0, PAGE_SIZE);
 
        err = bind_interdomain_evtchn_to_irqhandler(
                tpmif->domid, evtchn, tpmif_be_int, 0, tpmif->devname, tpmif);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] xen vtpm: Initialize the comms ring with zeroes., Xen patchbot-linux-2.6.18-xen <=