]> xenbits.xensource.com Git - xen.git/commit
x86/tboot: include all valid frame table entries in S3 integrity check
authorJan Beulich <jbeulich@suse.com>
Mon, 31 May 2021 10:45:51 +0000 (12:45 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 31 May 2021 10:45:51 +0000 (12:45 +0200)
commit8701f68d26afc641527c775d2e56a8709f535ffd
treec1f6e6a20b6696d099667de9cfc6ca92e9316865
parent683d899e4bffca35c5b192ea0662362b0270a695
x86/tboot: include all valid frame table entries in S3 integrity check

The difference of two pdx_to_page() return values is a number of pages,
not the number of bytes covered by the corresponding frame table entries.

Fixes: 3cb68d2b59ab ("tboot: fix S3 issue for Intel Trusted Execution Technology.")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Lukasz Hawrylko <lukasz.hawrylko@linux.intel.com>
xen/arch/x86/tboot.c