]> git.baikalelectronics.ru Git - kernel.git/commit
x86/tdx: Fix early #VE handling
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Tue, 14 Jun 2022 12:01:33 +0000 (15:01 +0300)
committerDave Hansen <dave.hansen@linux.intel.com>
Wed, 15 Jun 2022 17:52:59 +0000 (10:52 -0700)
commit60428d8bc27f52e8f1540f98e1b6ef0156d43f0d
tree03dc3962dc51821807a8a911366c884804ebb5af
parente32683c6f7d22ba624e0bfc58b02cf3348bdca63
x86/tdx: Fix early #VE handling

tdx_early_handle_ve() does not increment RIP after successfully
handling the exception.  That leads to infinite loop of exceptions.

Move RIP when exceptions are successfully handled.

[ dhansen: make problem statement more clear ]

Fixes: 32e72854fa5f ("x86/tdx: Port I/O: Add early boot support")
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: https://lkml.kernel.org/r/20220614120135.14812-2-kirill.shutemov@linux.intel.com
arch/x86/coco/tdx/tdx.c