Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86/entry: fix jump into restore_all_guest without %rbx correctly set
e047b8d went too far when limiting obtaining the vCPU pointer. While the code in ist_dispatch_done does indeed only need the vCPU pointer when PV32 is enabled, the !PV32 path will end up jumping into restore_all_guest which does require rbx == vCPU pointer. Fix by moving the fetching of the vCPU pointer to be done outside of the PV32 code block. Fixes: e047b8d ('x86/entry: replace two GET_CURRENT() uses') Reported-by: Edwin Torok <[email protected]> Signed-off-by: Roger Pau Monné <[email protected]> Reviewed-by: Andrew Cooper <[email protected]>
- Loading branch information