Enable support to Intel Key locker instructions.

Cui, Lili lili.cui@intel.com
Mon Sep 21 08:40:06 GMT 2020


> -----Original Message-----
> From: H.J. Lu <hjl.tools@gmail.com>
> Sent: Monday, September 21, 2020 11:43 AM
> To: Cui, Lili <lili.cui@intel.com>
> Cc: binutils@sourceware.org; Jan Beulich <jbeulich@suse.com>
> Subject: Re: Enable support to Intel Key locker instructions.
> 
> On Sun, Sep 20, 2020 at 8:26 PM Cui, Lili <lili.cui@intel.com> wrote:
> >
> > Hi all,
> >
> > This patch is about to enable binutils support for Key Locker, Key
> > Locker provides a mechanism to encrypt and decrypt data with an AES
> > key without having access to the raw key value by converting AES keys
> > into "handles", more details please refer to
> > https://software.intel.com/content/www/us/en/develop/download/intel-
> ke
> > y-locker-specification.html
> >
> > Make check-gas is ok.
> >
> > Enable support to Intel Key locker instructions.
> >
> > gas/
> >         * config/tc-i386.c (cpu_arch): Add .kl and .wide_kl.
> >         (cpu_noarch): Likewise.
> >         * doc/c-i386.texi: Document kl and wide_kl.
> >         * testsuite/gas/i386/i386.exp: Run keylocker tests.
> >         * testsuite/gas/i386/keylocker-intel.d: New test.
> >         * testsuite/gas/i386/keylocker.d: Likewise.
> >         * testsuite/gas/i386/keylocker.s: Likewise.
> >         * testsuite/gas/i386/x86-64-keylocker-intel.d: Likewise.
> >         * testsuite/gas/i386/x86-64-keylocker.d: Likewise.
> >         * testsuite/gas/i386/x86-64-keylocker.s: Likewise.
> >
> > opcodes/
> >         * i386-dis.c (enum): Add REG_0F38D8_PREFIX_1,
> >         MOD_0F38FA_PREFIX_1, MOD_0F38FB_PREFIX_1,
> >         MOD_0F38DC_PREFIX_1, MOD_0F38DD_PREFIX_1,
> >         MOD_0F38DE_PREFIX_1, MOD_0F38DF_PREFIX_1,
> >         PREFIX_0F38D8, PREFIX_0F38FA, PREFIX_0F38FB.
> >         (reg_table): New instructions (see prefixes above).
> >         (prefix_table): Likewise.
> >         (three_byte_table): Likewise.
> >         (mod_table): Likewise
> >         * i386-gen.c (cpu_flag_init): Add CPU_KL_FLAGS, CPU_WIDE_KL_FLAGS,
> >         CPU_ANY_KL_FLAGS and CPU_ANY_WIDE_KL_FLAGS.
> >         (cpu_flags): Likewise.
> >         (operand_type_init): Likewise.
> >         * i386-opc.h (enum): Add CpuKL and CpuWIDE_KL.
> >         (i386_cpu_flags): Add cpukl and cpuwide_kl.
> >         * i386-opc.tbl: Add KL and WIDE_KL insns.
> >         * i386-init.h: Regenerate.
> >         * i386-tbl.h: Likewise.
> 
> Please add an entry to gas/NEWS:
> 
> * Add support for Intel Key Locker instructions.
> 
> OK with this change.
> 
> Thanks.
> 
> --
> H.J.

Added it, Thanks.

Lili.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Enable-support-to-Intel-Keylocker-instructions.patch
Type: application/octet-stream
Size: 24098 bytes
Desc: 0001-Enable-support-to-Intel-Keylocker-instructions.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20200921/5c04e1da/attachment-0001.obj>


More information about the Binutils mailing list