]> git.baikalelectronics.ru Git - kernel.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)
commit04f90668c90e1b4f87cf2f67c8457acc58cdd214
treecec30aa92173479c797cc0349a0536b5849637c8
parent1f7328649a096912cc6bb026c58f369acc5f5bc1
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