From: "Jan Beulich" Subject: Re: [PATCH v3 1/2] x86: add p2m_mmio_write_dm Date: Wed, 03 Sep 2014 11:03:47 +0100 Message-ID: <540703A3020000780003029D@mail.emea.novell.com> References: <1409781199-12052-1-git-send-email-wei.ye@intel.com> <1409781199-12052-2-git-send-email-wei.ye@intel.com> <9AAE0902D5BC7E449B7C8E4E778ABCD0446605@AMSPEX01CL01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD0446605@AMSPEX01CL01.citrite.net> 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: Paul Durrant , Wei Ye , "xen-devel@lists.xen.org" Cc: Kevin Tian , "Keir (Xen.org)" , Ian Campbell , "Tim (Xen.org)" , "donald.d.dugger@intel.com" , StefanoStabellini , "zhiyuan.lv@intel.com" , "yang.z.zhang@intel.com" , Ian Jackson List-Id: xen-devel@lists.xenproject.org >>> On 03.09.14 at 11:54, wrote: >> From: Wei Ye [mailto:wei.ye@intel.com] >> --- a/xen/arch/x86/hvm/hvm.c >> +++ b/xen/arch/x86/hvm/hvm.c >> @@ -2739,7 +2739,8 @@ int hvm_hap_nested_page_fault(paddr_t gpa, >> * to the mmio handler. >> */ >> if ( (p2mt == p2m_mmio_dm) || >> - (access_w && (p2mt == p2m_ram_ro)) ) >> + (access_w && ((p2mt == p2m_ram_ro) || >> + (p2mt == p2m_mmio_write_dm))) ) > > Personally I would have put the two p2m_mmio checks next to each other, but > it doesn't really matter. At the very least the indentation would need adjustment if the ordering is to be kept as it is now. Jan