Re: We need a patch in the kernel for tpm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On torsdag 13 september 2018 kl. 12:58:03 EEST George Dunlap wrote:
> Dag,
> 

Just verified after a lengthy compilation of the kernel
that the patch really works and now I can see a TPM on
the virtual side!

> Thanks for tracking this down.  Any chance you could send a PR to
> https://github.com/CentOS-virt7/xen-kernel?

I will definitely join that mailing list. Have a feeling this is not the
last problem I will see :-)

> Otherwise, Anthony or I will take a look when we get a chance.

But I would appreciate it if somebody used to the
procedures would pick it up from here.

The patch was the following:
===================================
diff --git a/drivers/char/tpm/xen-tpmfront.c b/drivers/char/tpm/xen-tpmfront.c
index 5aaa268..dd83a07 100644
--- a/drivers/char/tpm/xen-tpmfront.c
+++ b/drivers/char/tpm/xen-tpmfront.c
@@ -203,7 +203,7 @@  static int setup_ring(struct xenbus_device *dev, struct tpm_private *priv)
 		return -ENOMEM;
 	}
 
-	rv = xenbus_grant_ring(dev, &priv->shr, 1, &gref);
+	rv = xenbus_grant_ring(dev, priv->shr, 1, &gref);
 	if (rv < 0)
 		return rv;
====================================

Best
Dag


_______________________________________________
CentOS-virt mailing list
CentOS-virt@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos-virt



[Index of Archives]     [CentOS Users]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Linux USB]

  Powered by Linux