diff options
author | Peter Gonda <[email protected]> | 2021-01-05 08:33:11 -0800 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2021-01-05 18:55:00 +0100 |
commit | a8f7e08a81708920a928664a865208fdf451c49f (patch) | |
tree | 27736d459831e12c6fb5f39a59884b87c29cb247 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | d1c5246e08eb64991001d97a3bd119c93edbc79a (diff) |
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: 25189d08e5168 ("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]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions