From patchwork Thu Apr 25 15:32:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tamas K Lengyel X-Patchwork-Id: 10917377 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 476A5912 for ; Thu, 25 Apr 2019 15:34:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 380CD28A16 for ; Thu, 25 Apr 2019 15:34:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B46C28A41; Thu, 25 Apr 2019 15:34:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D6CB728A16 for ; Thu, 25 Apr 2019 15:34:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hJgNH-0000xj-SG; Thu, 25 Apr 2019 15:33:23 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hJgNG-0000xM-CI for xen-devel@lists.xenproject.org; Thu, 25 Apr 2019 15:33:22 +0000 X-Inumbo-ID: 75026aa9-676f-11e9-843c-bc764e045a96 Received: from mail-io1-f67.google.com (unknown [209.85.166.67]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 75026aa9-676f-11e9-843c-bc764e045a96; Thu, 25 Apr 2019 15:33:21 +0000 (UTC) Received: by mail-io1-f67.google.com with SMTP id m188so291376ioa.9 for ; Thu, 25 Apr 2019 08:33:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eZ0xQmtXsb1Z+NDOML+qI/sBYrUyNMQwKbHOTdXldXQ=; b=f5DxO4u3hG5J6h7zQwTL8mBnWG23R9yCRmLWSrbWpSzyavHK2VwU5nbjjr/We0mZ3F t4Iju3ZTpSkbp4BqGq3jKBlMw+a8cdCnxnxIpWNBQhyUcg+NV6qT2+l1I3HjABMeZc0q 0Qz5EpsDz/SeGuXKYZekIo8fwJI946tmaVe6l0PX5F56TOclNjN7cJUNjvjOvegFH3fC PiVMmSaCbTMNzk2XpToxyUcV+BL37f+ZpF44CFnO+V4LqzqqUs6Am0CDPJG38DarF+da H2+q0LXgbERIds9j83bsT9+ARs4ODtXI1JEdgN7mlz0VgwsH78OG8SGgVupzCZzASJGu 1J2Q== X-Gm-Message-State: APjAAAXbBIR4YpN08rsIvz7rhr/NSYxZ+M7Hj8gtpnJSOE/U/IEM3vtJ OL8z4I6VQn5pslXS/KU2ohSGBlFW X-Google-Smtp-Source: APXvYqz5qo+o1dA0wBISDmLx70leXw2EW/V9skgh+A7DP0JBzQHwk9i1V658UPuRuOV8PkcvlO3GKg== X-Received: by 2002:a05:6602:55:: with SMTP id z21mr10415416ioz.101.1556206400830; Thu, 25 Apr 2019 08:33:20 -0700 (PDT) Received: from localhost.localdomain (c-71-205-12-124.hsd1.co.comcast.net. [71.205.12.124]) by smtp.gmail.com with ESMTPSA id 2sm3589667ioz.77.2019.04.25.08.33.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 08:33:20 -0700 (PDT) From: Tamas K Lengyel To: xen-devel@lists.xenproject.org Date: Thu, 25 Apr 2019 09:32:52 -0600 Message-Id: <20190425153252.14795-3-tamas@tklengyel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190425153252.14795-1-tamas@tklengyel.com> References: <20190425153252.14795-1-tamas@tklengyel.com> MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 3/3] x86/mem_sharing: enable mem_share audit mode only in debug builds X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper , Tamas K Lengyel , Wei Liu , Jan Beulich , Roger Pau Monne Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Improves performance for release builds. Signed-off-by: Tamas K Lengyel Cc: Jan Beulich Cc: Andrew Cooper Cc: Wei Liu Cc: Roger Pau Monne --- xen/include/asm-x86/mem_sharing.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/include/asm-x86/mem_sharing.h b/xen/include/asm-x86/mem_sharing.h index 0e77b7d935..52ea91efa0 100644 --- a/xen/include/asm-x86/mem_sharing.h +++ b/xen/include/asm-x86/mem_sharing.h @@ -25,7 +25,9 @@ #include /* Auditing of memory sharing code? */ +#ifndef NDEBUG #define MEM_SHARING_AUDIT 1 +#endif typedef uint64_t shr_handle_t;