]> asedeno.scripts.mit.edu Git - linux.git/commit
vTPM: support little endian guests
authorHon Ching \(Vicky\) Lo <honclo@linux.vnet.ibm.com>
Wed, 17 Jun 2015 22:17:08 +0000 (18:17 -0400)
committerPeter Huewe <peterhuewe@gmx.de>
Sun, 18 Oct 2015 23:09:30 +0000 (01:09 +0200)
commit0cc698af36ff22295dce2f5e46b0cfe605789fa4
treecec30aa92173479c797cc0349a0536b5849637c8
parent09e23a4a5dc39ef874403f3f6fa419f49db3677a
vTPM: support little endian guests

This patch makes the code endianness independent. We defined a
macro do_endian_conversion to apply endianness to raw integers
in the event entries so that they will be displayed properly.
tpm_binary_bios_measurements_show() is modified for the display.

Signed-off-by: Hon Ching(Vicky) Lo <honclo@linux.vnet.ibm.com>
Signed-off-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
Reviewed-by: Ashley Lai <ashley@ahsleylai.com>
Reviewed-by: Ashley Lai <ashley@ahsleylai.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm_eventlog.c
drivers/char/tpm/tpm_eventlog.h