|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [linux-2.6.18-xen] xen vtpm: Initialize the comms ring w
# 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 <=
|
|
|
|
|