From: Tim Deegan Subject: Re: [PATCH v5 1/2] add a new p2m type class - P2M_DISCARD_WRITE_TYPES Date: Thu, 4 Dec 2014 16:56:39 +0100 Message-ID: <20141204155639.GC43116@deinos.phlegethon.org> References: <1417698806-26807-1-git-send-email-yu.c.zhang@linux.intel.com> <1417698806-26807-2-git-send-email-yu.c.zhang@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1417698806-26807-2-git-send-email-yu.c.zhang@linux.intel.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: Yu Zhang 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, zhiyuan.lv@intel.com, JBeulich@suse.com, yang.z.zhang@intel.com List-Id: xen-devel@lists.xenproject.org At 21:13 +0800 on 04 Dec (1417724005), Yu Zhang wrote: > From: Yu Zhang > > Currently, the P2M_RO_TYPES bears 2 meanings: one is > "_PAGE_RW bit is clear in their PTEs", and another is > to discard the write operations on these pages. This > patch adds a p2m type class, P2M_DISCARD_WRITE_TYPES, > to bear the second meaning, so we can use this type > class instead of the P2M_RO_TYPES, to decide if a write > operation is to be ignored. > > Signed-off-by: Yu Zhang Reviewed-by: Tim Deegan