Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1594469

Re: [RFC PATCH v4 28/28] x86: Add support to make use of Secure Memory Encryption

From Borislav Petkov <bp@alien8.de>
Newsgroups linux.kernel
Subject Re: [RFC PATCH v4 28/28] x86: Add support to make use of Secure Memory Encryption
Date 2017-03-07 18:50 +0100
Message-ID <tirpg-2s0-15@gated-at.bofh.it> (permalink)
References <tbyvy-1iO-79@gated-at.bofh.it> <tgiq5-7Fz-5@gated-at.bofh.it> <tgiq5-7Fz-3@gated-at.bofh.it> <tirpg-2s0-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Mar 07, 2017 at 10:05:00AM -0600, Tom Lendacky wrote:
> I can do that.  Because phys_base hasn't been updated yet, I'll have to
> create "on" and "off" constants and get their address in a similar way
> to the command line option so that I can do the strncmp properly.

Actually, wouldn't it be simpler to inspect the passed in buffer for
containing the chars 'o', 'n' - in that order, or 'o', 'f', 'f' - in
that order too? Because __cmdline_find_option() does copy the option
characters into the buffer.

Then you wouldn't need those "on" and "off" constants...

-- 
Regards/Gruss,
    Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [RFC PATCH v4 28/28] x86: Add support to make use of Secure  Memory Encryption Borislav Petkov <bp@alien8.de> - 2017-03-01 20:50 +0100
  Re: [RFC PATCH v4 28/28] x86: Add support to make use of Secure  Memory Encryption Borislav Petkov <bp@alien8.de> - 2017-03-07 18:50 +0100
  Re: [RFC PATCH v4 28/28] x86: Add support to make use of Secure  Memory Encryption Borislav Petkov <bp@alien8.de> - 2017-03-08 16:20 +0100

csiph-web