Displaying 6 results from an estimated 6 matches for "tpm_chip".
2019 Feb 22
0
[PATCH] tpm: Add driver for TPM over virtio
...ine TPM_VIRTIO_TIMEOUT (120 * HZ)
Should we read this from device? E.g. a busy hypervisor might
take longer to respond ...
> +
> +struct vtpm_device {
> + /*
> + * Data structure for integration with the common code of the TPM driver
> + * in tpm-chip.c.
> + */
> + struct tpm_chip *chip;
> +
> + /*
> + * Virtio queue for sending TPM commands out of the virtual machine and
> + * receiving TPM responses back from the hypervisor.
> + */
> + struct virtqueue *vq;
> +
> + /*
> + * Completion that is notified when a virtio operation has been
> +...
2019 Feb 22
0
[PATCH] tpm: Add driver for TPM over virtio
...timeout do you envision
that require the extra kicks?
>
> >> +
> >> +struct vtpm_device {
> >> + /*
> >> + * Data structure for integration with the common code of the TPM driver
> >> + * in tpm-chip.c.
> >> + */
> >> + struct tpm_chip *chip;
> >> +
> >> + /*
> >> + * Virtio queue for sending TPM commands out of the virtual machine and
> >> + * receiving TPM responses back from the hypervisor.
> >> + */
> >> + struct virtqueue *vq;
> >> +
> >> + /*
> &g...
2017 May 04
0
[PATCH v1] ACPI: Switch to use generic UUID API
...+static const uuid_le crb_acpi_start_uuid =
> + UUID_LE(0x6BBF6CAB, 0x5463, 0x4714,
> + 0xB7, 0xCD, 0xF0, 0x20, 0x3C, 0x03, 0x68, 0xD4);
>
> enum crb_defaults {
> CRB_ACPI_START_REVISION_ID = 1,
> @@ -266,7 +265,7 @@ static int crb_do_acpi_start(struct tpm_chip *chip)
> int rc;
>
> obj = acpi_evaluate_dsm(chip->acpi_dev_handle,
> - CRB_ACPI_START_UUID,
> + &crb_acpi_start_uuid,
> CRB_ACPI_START_REVISION_ID,
>...
2017 May 04
12
[PATCH v1] ACPI: Switch to use generic UUID API
.../ 0xB7, 0xCD, 0xF0, 0x20, 0x3C, 0x03, 0x68, 0xD4
-};
+static const uuid_le crb_acpi_start_uuid =
+ UUID_LE(0x6BBF6CAB, 0x5463, 0x4714,
+ 0xB7, 0xCD, 0xF0, 0x20, 0x3C, 0x03, 0x68, 0xD4);
enum crb_defaults {
CRB_ACPI_START_REVISION_ID = 1,
@@ -266,7 +265,7 @@ static int crb_do_acpi_start(struct tpm_chip *chip)
int rc;
obj = acpi_evaluate_dsm(chip->acpi_dev_handle,
- CRB_ACPI_START_UUID,
+ &crb_acpi_start_uuid,
CRB_ACPI_START_REVISION_ID,
CRB_ACPI_START_INDEX,
NULL);
diff --git a/drivers/char/tpm/tpm_ppi.c b/drivers/char/tpm/tpm_ppi.c
index 692a2c6ae036..7cf6824263...
2013 Dec 03
22
[PATCH] xen/pvhvm: If xen_platform_pci=0 is set don''t blow up.
...pm/xen-tpmfront.c
index c8ff4df..62e7d38 100644
--- a/drivers/char/tpm/xen-tpmfront.c
+++ b/drivers/char/tpm/xen-tpmfront.c
@@ -17,6 +17,7 @@
#include <xen/xenbus.h>
#include <xen/page.h>
#include "tpm.h"
+#include <xen/platform_pci.h>
struct tpm_private {
struct tpm_chip *chip;
@@ -421,6 +422,9 @@ static int __init xen_tpmfront_init(void)
if (!xen_domain())
return -ENODEV;
+ if (!xen_has_pv_devices())
+ return -ENODEV;
+
return xenbus_register_frontend(&tpmfront_driver);
}
module_init(xen_tpmfront_init);
diff --git a/drivers/input/misc/xen-kbdfront....
2012 Nov 20
52
[PATCH RFC] stubdom: Change vTPM shared page ABI
Since the vTPM implementations are being incorproated into Xen and
possibly upstream Linux, I would like to see if this protocol change
could be added before we have significant legacy implementations. If
not, I still think it would be useful as either a v2 or negotiated
protocol change.
The current vTPM protocol is a copy of the network protocol. This was
likely done for ease of implementation,