From patchwork Wed Jul 5 06:59:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olaf Hering X-Patchwork-Id: 9825931 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2020760237 for ; Wed, 5 Jul 2017 07:02:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 17DBD262FF for ; Wed, 5 Jul 2017 07:02:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B91626E3E; Wed, 5 Jul 2017 07:02:05 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 072C7262FF for ; Wed, 5 Jul 2017 07:02:04 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSeHt-0004Ew-0e; Wed, 05 Jul 2017 06:59:49 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSeHr-0004Ec-4x for xen-devel@lists.xen.org; Wed, 05 Jul 2017 06:59:47 +0000 Received: from [85.158.137.68] by server-17.bemta-3.messagelabs.com id 59/66-01859-26E8C595; Wed, 05 Jul 2017 06:59:46 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGIsWRWlGSWpSXmKPExsUSuHLSIt3Evph Ig1fX1CyWfFzM4sDocXT3b6YAxijWzLyk/IoE1oxZ+94wFvzjr/j/W7SBcSJvFyMXB4vAKmaJ 3ukf2boYOTkkBHIlns99DGRzANkiEk/+p4HUCAmcZpJ4e24nC0gNi4CKxNS7C5lBbDYBJYm9B 48zgtgiApoS/9e9BbOZBaQlrj15CzZTWMBU4vzxNnYQm1dAT2JjTyeYLSTgJPHp+DGouKDEyZ lPWCB6iyUmrd3HBHIDyJzl/zhAwpwCzhJPts8DKxEVkJVYd2c22wRGgVlIumch6Z6F0A0RVpf 4M+8SM4awrcS6de9ZFjCyrWLUKE4tKkst0jU01EsqykzPKMlNzMzRNTQw1stNLS5OTE/NSUwq 1kvOz93ECAxvBiDYwbj6t9MhRkkOJiVR3liz6EghvqT8lMqMxOKM+KLSnNTiQ4wyHBxKEry5v TGRQoJFqempFWmZOcBIg0lLcPAoifAebwFK8xYXJOYWZ6ZDpE4xKkqJ83qD9AmAJDJK8+DaYN F9iVFWSpiXEegQIZ6C1KLczBJU+VeM4hyMSsK83T1AU3gy80rgpr8CWswEtFixEWxxSSJCSqq BMeOtjfXmj7vD0t+zVGuF2G3eXdov9FmjIMFl22z+V9PPp1xam2pylnGDvQTjh1Obpwcdd5P9 +W/5OcljfxS4zboDZmjx+9i9MD0xNeZFPIPer4ef/t+UUfl5b8aGszNUK6YxP67Wv8G00/Sg+ VVWn5sng5WF/tU0v/6gqia5wid+9wy7oxErjiixFGckGmoxFxUnAgBQZnQ26QIAAA== X-Env-Sender: olaf@aepfle.de X-Msg-Ref: server-16.tower-31.messagelabs.com!1499237985!96374713!1 X-Originating-IP: [81.169.146.162] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: QmFkIElQOiA4MS4xNjkuMTQ2LjE2MiA9PiA1ODg3NDY=\n,sa_preprocessor: QmFkIElQOiA4MS4xNjkuMTQ2LjE2MiA9PiA1ODg3NDY=\n X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 45899 invoked from network); 5 Jul 2017 06:59:45 -0000 Received: from mo4-p00-ob.smtp.rzone.de (HELO mo4-p00-ob.smtp.rzone.de) (81.169.146.162) by server-16.tower-31.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 5 Jul 2017 06:59:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1499237985; l=1983; s=domk; d=aepfle.de; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Subject:Cc:To:From:Date; bh=tZORIs5RFKE0tuw+spnkEYDVINnVjTRU5qbjrxJmzHo=; b=pAIkA+4JXq8KVfAexNDSV8AHWZ4N6uNJF2akf9jm+SStVlgCizkdv/BSGbup8g6li+ N/fRo4c0B9N3j1FILsDqHwULMtclPH45nwEb2RiS5cJNEGZ2AlrUBWlAEyMuAUn9jojE Jsjkm37/aQDxJN0Xgw8iDLn/+ohVBepmGBWqQ= X-RZG-AUTH: :P2EQZWCpfu+qG7CngxMFH1J+yackYocTD1iAi8x+OWi/zfN1cLnAYQz4nWZeYaUqZmDcaKDKWuInYjY1AKYxM/KZ8U5sbA== X-RZG-CLASS-ID: mo00 Received: from aepfle.de ([2001:a61:345b:acff:1864:5839:ae0e:f6b6]) by smtp.strato.de (RZmta 41.1 AUTH) with ESMTPSA id 907475t656xi6Lq (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Wed, 5 Jul 2017 08:59:44 +0200 (CEST) Date: Wed, 5 Jul 2017 08:59:41 +0200 From: Olaf Hering To: Glenn Enright Message-ID: <20170705065941.GA14946@aepfle.de> References: MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.8.3 (7099) Cc: xen-devel@lists.xen.org Subject: Re: [Xen-devel] valgrind support for xen4.7+ X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP On Wed, Apr 12, Glenn Enright wrote: > Has anyone seen or been working on patches for valgrind for recent versions > of xen? Upstream requires paperwork, via kde.org bugzilla. This is my variant, which is enough to run 'xl create' with valgrind. Olaf Olaf --- coregrind/m_syswrap/syswrap-xen.c.orig +++ coregrind/m_syswrap/syswrap-xen.c @@ -584,6 +584,8 @@ PRE(sysctl) { case 0x00000009: case 0x0000000a: case 0x0000000b: + case 0x0000000c: + case 0x0000000d: break; default: bad_intf_version(tid, layout, arrghs, status, flags, @@ -626,6 +628,8 @@ PRE(sysctl) { break; case 0x0000000a: case 0x0000000b: + case 0x0000000c: + case 0x0000000d: PRE_XEN_SYSCTL_READ(getdomaininfolist_0000000a, first_domain); PRE_XEN_SYSCTL_READ(getdomaininfolist_0000000a, max_domains); PRE_XEN_SYSCTL_READ(getdomaininfolist_0000000a, buffer); @@ -728,6 +732,9 @@ PRE(domctl) case 0x00000008: case 0x00000009: case 0x0000000a: + case 0x0000000b: + case 0x0000000c: + case 0x0000000d: break; default: bad_intf_version(tid, layout, arrghs, status, flags, @@ -1534,6 +1541,8 @@ POST(sysctl) case 0x00000009: case 0x0000000a: case 0x0000000b: + case 0x0000000c: + case 0x0000000d: break; default: return; @@ -1568,6 +1577,8 @@ POST(sysctl) break; case 0x0000000a: case 0x0000000b: + case 0x0000000c: + case 0x0000000d: POST_XEN_SYSCTL_WRITE(getdomaininfolist_0000000a, num_domains); POST_MEM_WRITE((Addr)sysctl->u.getdomaininfolist_0000000a.buffer.p, sizeof(*sysctl->u.getdomaininfolist_0000000a.buffer.p)