Message ID | 20210211212241.3958897-2-bsd@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | AMD invpcid exception fix | expand |
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 72a1bd04dfe1..78b47fe60239 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -4956,7 +4956,8 @@ static const struct opcode opcode_map_0f_38[256] = { /* 0x00 - 0x7f */ X16(N), X16(N), X16(N), X16(N), X16(N), X16(N), X16(N), X16(N), /* 0x80 - 0xef */ - X16(N), X16(N), X16(N), X16(N), X16(N), X16(N), X16(N), + N, N, D(SrcNone | Prot), N, X4(N), X8(N), + X16(N), X16(N), X16(N), X16(N), X16(N), X16(N), /* 0xf0 - 0xf1 */ GP(EmulateOnUD | ModRM, &three_byte_0f_38_f0), GP(EmulateOnUD | ModRM, &three_byte_0f_38_f1),
Upon an exception, this can be used to successfully decode the instruction and will be used by the next patch to inject the correct exception. Signed-off-by: Bandan Das <bsd@redhat.com> --- arch/x86/kvm/emulate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)