Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x86/sev-es: Fix SEV-ES OUT/IN immediate opcode vc handling
The IN and OUT instructions with port address as an immediate operand only use an 8-bit immediate (imm8). The current VC handler uses the entire 32-bit immediate value but these instructions only set the first bytes. Cast the operand to an u8 for that. [ bp: Massage commit message. ] Fixes: 25189d0 ("x86/sev-es: Add support for handling IOIO exceptions") Signed-off-by: Peter Gonda <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Acked-by: David Rientjes <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
- Loading branch information