[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86emul: unconditionally deliver #UD for LWP insns
commit ca5ecd9207af9ca03e5e49f7279b1ec089e494ea Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Tue Jul 23 16:52:19 2019 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Tue Jul 23 16:52:19 2019 +0200 x86emul: unconditionally deliver #UD for LWP insns This is to accompany commit 91f86f8634 ("x86/svm: Drop support for AMD's Lightweight Profiling"). Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/arch/x86/x86_emulate/x86_emulate.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/xen/arch/x86/x86_emulate/x86_emulate.c b/xen/arch/x86/x86_emulate/x86_emulate.c index a0e203f5ae..2543661243 100644 --- a/xen/arch/x86/x86_emulate/x86_emulate.c +++ b/xen/arch/x86/x86_emulate/x86_emulate.c @@ -10525,6 +10525,16 @@ x86_emulate( } goto unrecognized_insn; + case X86EMUL_OPC_XOP(09, 0x12): /* XOP Grp3 */ + switch ( modrm_reg & 7 ) + { + case 0: /* llwpcb r */ + case 1: /* slwpcb r */ + /* LWP is unsupported, so produce #UD unconditionally. */ + generate_exception(EXC_UD); + } + goto unrecognized_insn; + case X86EMUL_OPC_XOP(09, 0x82): /* vfrczss xmm/m128,xmm */ case X86EMUL_OPC_XOP(09, 0x83): /* vfrczsd xmm/m128,xmm */ generate_exception_if(vex.l, EXC_UD); @@ -10609,6 +10619,16 @@ x86_emulate( break; } + case X86EMUL_OPC_XOP(0a, 0x12): /* XOP Grp4 */ + switch ( modrm_reg & 7 ) + { + case 0: /* lwpins $imm32,r/m,r */ + case 1: /* lwpval $imm32,r/m,r */ + /* LWP is unsupported, so produce #UD unconditionally. */ + generate_exception(EXC_UD); + } + goto unrecognized_insn; + default: unimplemented_insn: rc = X86EMUL_UNIMPLEMENTED; -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |