From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH v2 1/2] x86/HVM: hvm_map_guest_frame_rw() adjustments Date: Wed, 12 Aug 2015 16:44:26 +0100 Message-ID: <55CB69DA.9020904@citrix.com> References: <55CB6FCF020000780009A2B8@prv-mh.provo.novell.com> <55CB7161020000780009A2D3@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZPYCc-0002TX-Fe for xen-devel@lists.xenproject.org; Wed, 12 Aug 2015 15:44:30 +0000 In-Reply-To: <55CB7161020000780009A2D3@prv-mh.provo.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich , xen-devel Cc: Kevin Tian , Wei Liu , suravee.suthikulpanit@amd.com, Aravind Gopalakrishnan , Jun Nakajima , Keir Fraser , Boris Ostrovsky List-Id: xen-devel@lists.xenproject.org On 12/08/15 15:16, Jan Beulich wrote: > ... and its callers. > > While all non-nested users are made fully honor the semantics of that > type, doing so in the nested case seemed insane (if doable at all, > considering VMCS shadowing), and hence there the respective operations > are simply made fail. > > One case not (yet) taken care of is that of a page getting transitioned > to this type after a mapping got established. > > Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper , with one style correction... > @@ -4071,11 +4082,11 @@ void hvm_task_switch( > v->arch.hvm_vcpu.guest_cr[0] |= X86_CR0_TS; > hvm_update_guest_cr(v, 0); > > - if ( (taskswitch_reason == TSW_iret) || > - (taskswitch_reason == TSW_jmp) ) > + if ( (taskswitch_reason == TSW_iret || > + taskswitch_reason == TSW_jmp) && otd_writable) Space. ~Andrew