From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egdxX-0007i0-40 for qemu-devel@nongnu.org; Tue, 30 Jan 2018 17:01:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egdwT-0000qW-56 for qemu-devel@nongnu.org; Tue, 30 Jan 2018 17:00:55 -0500 Received: from mail-co1nam03on0086.outbound.protection.outlook.com ([104.47.40.86]:13099 helo=NAM03-CO1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1egdwS-0000nn-Dl for qemu-devel@nongnu.org; Tue, 30 Jan 2018 16:59:48 -0500 Date: Wed, 31 Jan 2018 04:59:36 +0700 From: "Edgar E. Iglesias" Message-ID: <20180130215936.GB7547@toto> References: <20180129174132.108925-1-brijesh.singh@amd.com> <20180129174132.108925-2-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180129174132.108925-2-brijesh.singh@amd.com> Subject: Re: [Qemu-devel] [PATCH v6 01/23] memattrs: add debug attribute List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Brijesh Singh Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, Paolo Bonzini , Tom Lendacky , Peter Maydell , Richard Henderson , "Dr. David Alan Gilbert" , Eduardo Habkost , Stefan Hajnoczi , Eric Blake , "Michael S. Tsirkin" , "Daniel P . Berrange" , Alistair Francis On Mon, Jan 29, 2018 at 11:41:10AM -0600, Brijesh Singh wrote: > Extend the MemTxAttrs to include 'debug' flag. The flag can be used as > general indicator that operation was triggered by the debugger. > > Later in the patch series we set the debug=1 when issuing a memory access > from the gdbstub or HMP commands. This patch is prerequisite to support > debugging the encrypted guest. If we see request with debug=1 then we > will need to use encryption APIs to access the guest memory. > > Cc: Alistair Francis > Cc: Peter Maydell > Cc: Edgar E. Iglesias" > Cc: Richard Henderson > Cc: Paolo Bonzini > Signed-off-by: Brijesh Singh Reviewed-by: Edgar E. Iglesias > --- > include/exec/memattrs.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/exec/memattrs.h b/include/exec/memattrs.h > index d4a16420984b..08099e4f7e72 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 request from the debugger */ > + unsigned int debug:1; > } MemTxAttrs; > > /* Bus masters which don't specify any attributes will get this, > -- > 2.9.5 >