Subject: Re: [PATCH v13 04/13] x86/sgx: Architectural structures To: Andy Shevchenko , Jarkko Sakkinen References: <20180827185507.17087-1-jarkko.sakkinen@linux.intel.com> <20180827185507.17087-5-jarkko.sakkinen@linux.intel.com> CC: "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Platform Driver , , , , , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Linux Kernel Mailing List From: Dave Hansen Message-ID: <83f5ec5f-1b31-15eb-7341-84ee9c7977e2@intel.com> Date: Tue, 4 Sep 2018 09:04:44 -0700 In-Reply-To: Content-Type: text/plain; charset="utf-8" Sender: Return-Path: linux-kernel-owner@vger.kernel.org MIME-Version: 1.0 List-ID: On 09/03/2018 06:16 AM, Andy Shevchenko wrote: >> + EBLOCK = 0x9, >> + EPA = 0xA, >> + EWB = 0xB, >> + ETRACK = 0xC, >> + EAUG = 0xD, >> + EMODPR = 0xE, >> + EMODT = 0xF, >> +}; > Hmm... This E prefix confuses me with (system wide) error codes. Has > it been discussed before? If so, can you point on the conclusion why > the current format is good? Making them SGX_EWHATEVER isn't a horrible idea.