From: "Jan Beulich" Subject: [PATCH 3/5] x86/p2m: restrict auditing to debug builds Date: Tue, 10 Dec 2013 15:47:17 +0000 Message-ID: <52A74595020000780010BF27@nat28.tlf.novell.com> References: <52A744B7020000780010BEF1@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part3F0CC795.1__=" Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VqPWt-0004tF-6A for xen-devel@lists.xenproject.org; Tue, 10 Dec 2013 15:47:23 +0000 In-Reply-To: <52A744B7020000780010BEF1@nat28.tlf.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: xen-devel Cc: George Dunlap , Tim Deegan , Keir Fraser List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part3F0CC795.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline ... since iterating through all of a guest's pages may take unduly long. Signed-off-by: Jan Beulich Acked-by: Ian Campbell --- a/xen/include/asm-x86/p2m.h +++ b/xen/include/asm-x86/p2m.h @@ -600,7 +600,11 @@ int set_p2m_entry(struct p2m_domain *p2m extern void p2m_pt_init(struct p2m_domain *p2m); =20 /* Debugging and auditing of the P2M code? */ +#ifndef NDEBUG #define P2M_AUDIT 1 +#else +#define P2M_AUDIT 0 +#endif #define P2M_DEBUGGING 0 =20 #if P2M_AUDIT --=__Part3F0CC795.1__= Content-Type: text/plain; name="x86-p2m-audit-debug-only.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-p2m-audit-debug-only.patch" x86/p2m: restrict auditing to debug builds=0A=0A... since iterating = through all of a guest's pages may take unduly=0Along.=0A=0ASigned-off-by: = Jan Beulich =0AAcked-by: Ian Campbell =0A=0A--- a/xen/include/asm-x86/p2m.h=0A+++ b/xen/include/asm-x86/p2= m.h=0A@@ -600,7 +600,11 @@ int set_p2m_entry(struct p2m_domain *p2m=0A = extern void p2m_pt_init(struct p2m_domain *p2m);=0A =0A /* Debugging and = auditing of the P2M code? */=0A+#ifndef NDEBUG=0A #define P2M_AUDIT = 1=0A+#else=0A+#define P2M_AUDIT 0=0A+#endif=0A #define P2M_DEBUGGING = 0=0A =0A #if P2M_AUDIT=0A --=__Part3F0CC795.1__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part3F0CC795.1__=--