From: "Jan Beulich" Subject: Re: [PATCH v4] x86: add p2m_mmio_write_dm Date: Tue, 02 Dec 2014 11:52:04 +0000 Message-ID: <547DB5F4020000780004C18B@mail.emea.novell.com> References: <1417161552-5155-1-git-send-email-yu.c.zhang@linux.intel.com> <54785525020000780004B588@mail.emea.novell.com> <547C2BAF.6010004@linux.intel.com> <547C43BA020000780004B9BE@mail.emea.novell.com> <20141201103012.GA69236@deinos.phlegethon.org> <547C5C43020000780004BAFD@mail.emea.novell.com> <20141201121300.GB69236@deinos.phlegethon.org> <547D6C86.4090400@linux.intel.com> <20141202114016.GD69236@deinos.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20141202114016.GD69236@deinos.phlegethon.org> 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: Tim Deegan Cc: kevin.tian@intel.com, keir@xen.org, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, ian.jackson@eu.citrix.com, donald.d.dugger@intel.com, Xen-devel@lists.xen.org, Paul.Durrant@citrix.com, Zhang Yu , zhiyuan.lv@intel.com, yang.z.zhang@intel.com List-Id: xen-devel@lists.xenproject.org >>> On 02.12.14 at 12:40, wrote: > At 15:38 +0800 on 02 Dec (1417531126), Yu, Zhang wrote: >> 2> p2m_grant_map_ro is also supposed to be discarded? Will handling of >> this type of pages goes into __hvm_copy()/__hvm_clear(), or should? > > I think so, yes. At the moment we inject #GP when the guest writes to > a read-only grant, which is OK: the guest really ought to know better. > But I think we'll probably end up with neater code if we handle > read-only grants the same way as p2m_ram_ro. > > Anyone else have an opinion on the right thing to do here? I actually came to the same conclusion. Jan