From: "Jan Beulich" Subject: Re: nested VMX issues/questions Date: Thu, 16 Oct 2014 07:34:44 +0100 Message-ID: <543F8324020000780003F018@mail.emea.novell.com> References: <543D09A6020000780003E958@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Xeee9-0005Uw-Pi for xen-devel@lists.xenproject.org; Thu, 16 Oct 2014 06:34:49 +0000 In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Yang Z Zhang Cc: xen-devel , Kevin Tian , Eddie Dong , Jun Nakajima List-Id: xen-devel@lists.xenproject.org >>> On 16.10.14 at 08:13, wrote: > Jan Beulich wrote on 2014-10-14: >> first I noticed that nvmx_vcpu_initialise() doesn't set the two MSR >> bitmap related flags, but nvmx_handle_vmwrite() apparently expects them to > be set. >> Is that correct (and if so, why)? > > What flags do you mean? Contrast this /* * For the following 4 encodings, we need to handle them in VMM. * Let them vmexit as usual. */ set_bit(IO_BITMAP_A, vw); set_bit(IO_BITMAP_A_HIGH, vw); set_bit(IO_BITMAP_B, vw); set_bit(IO_BITMAP_B_HIGH, vw); (in nvmx_vcpu_initialise()) with this switch ( vmcs_encoding ) { case IO_BITMAP_A: case IO_BITMAP_A_HIGH: okay = _map_io_bitmap(v, IO_BITMAP_A); break; case IO_BITMAP_B: case IO_BITMAP_B_HIGH: okay = _map_io_bitmap(v, IO_BITMAP_B); break; case MSR_BITMAP: case MSR_BITMAP_HIGH: okay = _map_msr_bitmap(v); break; } (in nvmx_handle_vmwrite()). Jan