Message ID | 147455592051.8519.5989099211293023972.stgit@brijesh-build-machine (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> 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 BC79160757 for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 22 Sep 2016 15:03:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC1092AB80 for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 22 Sep 2016 15:03:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A0A632AB8E; Thu, 22 Sep 2016 15:03:55 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 747812AB80 for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 22 Sep 2016 15:03:53 +0000 (UTC) Received: from localhost ([::1]:49699 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1bn5XU-00036n-GW for patchwork-qemu-devel@patchwork.kernel.org; Thu, 22 Sep 2016 11:03:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <brijesh.singh@amd.com>) id 1bn5ME-0008JZ-RG for qemu-devel@nongnu.org; Thu, 22 Sep 2016 10:52:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <brijesh.singh@amd.com>) id 1bn5M9-0007Oz-V3 for qemu-devel@nongnu.org; Thu, 22 Sep 2016 10:52:14 -0400 Received: from mail-bn3nam01on0071.outbound.protection.outlook.com ([104.47.33.71]:46387 helo=NAM01-BN3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <brijesh.singh@amd.com>) id 1bn5M9-0007Oh-PK for qemu-devel@nongnu.org; Thu, 22 Sep 2016 10:52:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=fhlnKHSX5gLgLlv0RI59PNlatB/yNsCaNLOQawdS1tA=; b=JcEpjQyMAUfth8aFMzGZ8vM84WPEyeCHHYdbTJFhFdcKEqGUKolzal+bBgDhZuQU49A+5d4PaAwdd60UwmrcSV9bvN51SJtQPbSLgdks57M2vJrEafg2osrVeFe+6Lk4CkLPm3TVZa8fAOtdBl5up6DyG2gSL3GY6jIzauZnpmU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; Received: from [127.0.1.1] (165.204.77.1) by BY2PR12MB0664.namprd12.prod.outlook.com (10.163.113.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.619.10; Thu, 22 Sep 2016 14:52:04 +0000 From: Brijesh Singh <brijesh.singh@amd.com> To: <ehabkost@redhat.com>, <crosthwaite.peter@gmail.com>, <armbru@redhat.com>, <mst@redhat.com>, <p.fedin@samsung.com>, <qemu-devel@nongnu.org>, <lcapitulino@redhat.com>, <pbonzini@redhat.com>, <rth@twiddle.net> Date: Thu, 22 Sep 2016 10:52:00 -0400 Message-ID: <147455592051.8519.5989099211293023972.stgit@brijesh-build-machine> In-Reply-To: <147455590865.8519.11191009507297313736.stgit@brijesh-build-machine> References: <147455590865.8519.11191009507297313736.stgit@brijesh-build-machine> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: CY1PR08CA0022.namprd08.prod.outlook.com (10.163.94.160) To BY2PR12MB0664.namprd12.prod.outlook.com (10.163.113.153) X-MS-Office365-Filtering-Correlation-Id: 1da3268e-c3fd-4744-4d01-08d3e2f804ce X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0664; 2:OTXrtyHpdlzW2UeiY0AgXyQuJUxGuaibUKfpsI6IpbxVr7kV6ZXmTUGq3OhDyXj+O7bF4NT5fBGnjHaxik1lhJwne2T3lgU0pBBhF5WTQNYIeqHQhfLY9llffwXazmRVMMIFalqFv6idwgq2HscdhtvCpPBO5pBfibXeKB/V9uIEZbJagMUjqH0fzuqEiuwt; 3:8u/vOpRlpxkl2rayso9uuypFBWA+W78HD3bcvhvsLqD2xIeADX0VoJgd5Ocrp5SdgOP5SVqaAWlmNRvQxnn7GUV5Q/7FP6X9ELNSI/fVsHYyz483xy1YZHKunwsCSaUQ; 25:YZwhL9SfUQr1J3xEZNYDs/R6UTvEToSYZ0/FBU281FRJCMNN32FxxkYws2xcdii8dhnDxmKLul2BigmlDAlavTnS0x+Ddv/glYDApzsvxVZ5Y7AVkvYYfDtybbMx0ORN7siMrfUapGvOu4AgP4sCC2E2T+MQnIYbRDP8syMHrp69cgtsChK5LezJuDsBouKO3hP00ylnuCvnBbL+Gx3V1mttHAYFlluZLNLM+xSCAfk4/m5Mi7E3LGD35tw+c0YA9f7ZGD6lSBMSWpSQtrqB8e8YBX37xEPGhVnaGfgpsWDBus3A4fTkV62x6MTkFqzGpC9oyoi2fbUOyz4eQQpEwqb0tos90ftBq/sO0dDqkmpH6o4iRbVlWrZWzpmlAcTx8b6yGn71eB7NVVBiQDcpThu4l6QmqcUKgz+I5luuL4w= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR12MB0664; X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0664; 31:a8VWqcjNhQealA1FnLERelsR4fr3h0KZTj0SAn/mGAcZF9kXw3spHSQBZCVYMfTq8Lva4ZF1/5etVYcZORI3tkGIRXNgWLelqYHTXkCZmeMId7rPGg9qgc9wV9a6gaTua5EL7DWCIHMQbAUTpXNnCElrPNA/UKKDRUmnuLEpBL5XFzKIC+P76WKQcIdZLKGTAhfFmyt30TJ5vtADIpoCjiq+5Xk06gEGahzr26MxjEs=; 20:TDdanqtbWv/ooOf4kUltM7ZVy7hkq3Bt2nzB7uKmys/Xvlpi8FzowvCMmc9+P6WyGuQ8Dy6d6+A6COyxkI/IsQ9cukO4lgLB+kqKGD4AxdxyrkIMe6JG2jA7H+/xg2Ml25DUjmo7XqufanPAJziONem+H0yspv0IprxjzhMqcmMl+b9lmIeqTzHIvLb+vQBOxokVMEWpMlTrRYP0zAZ5pizodm+nxGBqzX4F5ZPAKEpMxddOQn1kyLFhjTut+pT8mcYw+dCQVXwh+5SKJ8emtIq+5AkQVY7GvMyrrjidVAonHoI2GLnDzB/biLsk+X5WXUAxXhtarwXW5po2qNwa4Uv8elMVIJ6BPEUAoi9nFVBc/1IvG038apAaSHXzoTRReuA6wxIXlkrO8ZAnDpi7HDbdJIc2sm6JDNLdWEVo3JX+S7V79pczmdft/iR7op26ezOBZXMh6x2e+UXfQcKhF+ZqaB3Y+p/wiJvDngcB/gQJQMhwPwyHp5IiRH+AzIJk X-Microsoft-Antispam-PRVS: <BY2PR12MB0664A158A9D10AD90F014CBBE5C90@BY2PR12MB0664.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:BY2PR12MB0664; BCL:0; PCL:0; RULEID:; SRVR:BY2PR12MB0664; X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0664; 4:YaZ4FJOu+rITQr5HLXuKfk2ORLpm464KBOLS7ROjhQ1G/GxViHFwnak4lqMfCv2/3ztYerR+hoY+CdTyg8k2YyEHiKiBV8CWGMJWllzksADI7L2FPbhf1DL9daI6wVMpN/YmUnKsFPcn6EqjURZtij+Pnbmh+qEXC7WOkGJegaLKFChuB+SqZ+2GEv8h2hg7aSHXw+sEFZ6/eryoy+oxPGORPFrEgVvXz6O3UtQCOuhwhHybf3RkGLtkKZDU830HdaiPE0wZZIRnJRjMYTe5jgXlV2SzfVRhUBH0IVNpxDqT0R8k120zquOJkxhbizqlN8eM9w9/x8ylPV/sLzT+ObKdn3f2/S2PF7JGQ+fUe953qnjNKsJ2bauDKeqEuTwbjLzFzCFurBFvsS8nR/UiA5/GP0mGDZsFLx2zsu0fRT5YdBOSJHXf+xEP0ckicLil X-Forefront-PRVS: 0073BFEF03 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(7916002)(199003)(189002)(7846002)(3846002)(7736002)(50986999)(76176999)(92566002)(54356999)(19580405001)(19580395003)(230700001)(6116002)(101416001)(107886002)(229853001)(106356001)(4001350100001)(97736004)(5001770100001)(33646002)(50466002)(68736007)(189998001)(586003)(8676002)(5660300001)(105586002)(23676002)(9686002)(42186005)(81156014)(81166006)(33716001)(103116003)(2201001)(2950100001)(47776003)(83506001)(305945005)(66066001)(86362001)(2906002)(77096005)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR12MB0664; H:[127.0.1.1]; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCWTJQUjEyTUIwNjY0OzIzOkJSZGxKV2JpSzJaVGIzV1VrRitiRTZheG1X?= =?utf-8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6GEaG/UM399+l9/u23s+jVI9zr1+7efjLReIJxNTKFoSrnzJGW6AchZJxM X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2016 14:52:04.3282 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR12MB0664 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.33.71 Subject: [Qemu-devel] [RFC PATCH v2 01/16] memattrs: add debug attrs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/include/exec/memattrs.h b/include/exec/memattrs.h index e601061..b802073 100644 --- a/include/exec/memattrs.h +++ b/include/exec/memattrs.h @@ -37,6 +37,8 @@ typedef struct MemTxAttrs { unsigned int user:1; /* Requester ID (for MSI for example) */ unsigned int requester_id:16; + /* Memory access for debug purposes */ + unsigned int debug:1; } MemTxAttrs; /* Bus masters which don't specify any attributes will get this, @@ -46,4 +48,6 @@ typedef struct MemTxAttrs { */ #define MEMTXATTRS_UNSPECIFIED ((MemTxAttrs) { .unspecified = 1 }) +/* Access the guest memory for debug purposes */ +#define MEMTXATTRS_DEBUG ((MemTxAttrs) { .debug = 1 }) #endif
Add a new memory debug attribute, this attribute should be set when memory read or write access is performed for debugging purposes. Signed-off-by: Brijesh Singh <brijesh.singh@amd.com> --- include/exec/memattrs.h | 4 ++++ 1 file changed, 4 insertions(+)