exec/memattrs: Introduce the MemTxAttrs::debug flag

Extend the MemTxAttrs to include a 'debug' flag. The flag can
be used as general indicator that operation was triggered by
the debugger.

A subsequent patch will set the debug=1 when issuing a memory
access from the gdbstub or HMP commands. This is a prerequisite
to support debugging an encrypted guest. When a request with
debug=1 is seen, the encryption APIs will be used to access the
guest memory.

Yuan Yao:
  - refactor the too long subject line

Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
Signed-off-by: Yuan Yao <yuan.yao@intel.com>
This commit is contained in:
Brijesh Singh
2021-07-01 09:06:57 +08:00
committed by Nikolay Borisov
parent ee291bd628
commit f62337a763

View File

@@ -57,6 +57,8 @@ typedef struct MemTxAttrs {
unsigned int target_tlb_bit0 : 1; unsigned int target_tlb_bit0 : 1;
unsigned int target_tlb_bit1 : 1; unsigned int target_tlb_bit1 : 1;
unsigned int target_tlb_bit2 : 1; unsigned int target_tlb_bit2 : 1;
/* Memory access request from the debugger */
unsigned int debug:1;
} MemTxAttrs; } MemTxAttrs;
/* Bus masters which don't specify any attributes will get this, /* Bus masters which don't specify any attributes will get this,