From: "Huang, Kai" Subject: Re: [PATCH 10/10] kvm: vmx: handle VMEXIT from SGX Enclave Date: Thu, 29 Jun 2017 10:22:03 +1200 Message-ID: <35f82952-8731-6722-f2f7-ef27b66fb93c@linux.intel.com> References: <20170508052434.3627-1-kai.huang@linux.intel.com> <20170508052434.3627-11-kai.huang@linux.intel.com> <23e2cc83-8cbf-07f7-56c0-6fe422bac06e@redhat.com> <0fe15915-1d2a-288e-bfec-9096412cc26f@linux.intel.com> <20170627152917.GB1503@potion> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Paolo Bonzini , Kai Huang , kvm@vger.kernel.org To: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= Return-path: Received: from mga14.intel.com ([192.55.52.115]:45678 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751518AbdF1WWa (ORCPT ); Wed, 28 Jun 2017 18:22:30 -0400 In-Reply-To: <20170627152917.GB1503@potion> Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: On 6/28/2017 3:29 AM, Radim Krčmář wrote: > 2017-06-19 17:02+1200, Huang, Kai: >> Hi Paolo, all, >> >> Sorry for reply late. > > I'm sorry as well, > >> Do you think it is feasible to turn on PLE again on another further VMEXIT? >> Or another VMEXIT that is not from enclave? >> >> Any suggestions so that I can improve in next version RFC? > > KVM doesn't enable "PAUSE exiting", it enables "PAUSE loop exiting". > SDM recommends disabling "PAUSE exiting" because the VM exits > (fault-like) on every PAUSE and needs intervention in order to progress, > but SDM doesn't say to disable "PAUSE loop exiting". > > Being inside an enclave doesn't change the usefulness of PLE (yielding > the CPU to a task that isn't blocked), so I think it would be best to do > nothing with it, thanks. Hi Radim, Thanks for feedback. You are right, and obviously I didn't read SDM carefully. Will do in next version. :) Thanks, -Kai >