Message ID | 20180129174132.108925-2-brijesh.singh@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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 <alistair.francis@xilinx.com> > Cc: Peter Maydell <peter.maydell@linaro.org> > Cc: Edgar E. Iglesias" <edgar.iglesias@xilinx.com> > Cc: Richard Henderson <richard.henderson@linaro.org> > Cc: Paolo Bonzini <pbonzini@redhat.com> > Signed-off-by: Brijesh Singh <brijesh.singh@amd.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> > --- > 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 >
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,
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 <alistair.francis@xilinx.com> Cc: Peter Maydell <peter.maydell@linaro.org> Cc: Edgar E. Iglesias" <edgar.iglesias@xilinx.com> Cc: Richard Henderson <richard.henderson@linaro.org> Cc: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Brijesh Singh <brijesh.singh@amd.com> --- include/exec/memattrs.h | 2 ++ 1 file changed, 2 insertions(+)