Searched hist:"3 ab6fdc91b72e156da22848f0003ff4225690ced" (Results 1 – 2 of 2) sorted by relevance
/qemu/include/exec/ |
H A D | memattrs.h | 3ab6fdc91b72e156da22848f0003ff4225690ced Wed Dec 15 18:24:21 UTC 2021 Philippe Mathieu-Daudé <philmd@redhat.com> softmmu/physmem: Introduce MemTxAttrs::memory field and MEMTX_ACCESS_ERROR
Add the 'memory' bit to the memory attributes to restrict bus controller accesses to memories.
Introduce flatview_access_allowed() to check bus permission before running any bus transaction.
Have read/write accessors return MEMTX_ACCESS_ERROR if an access is restricted.
There is no change for the default case where 'memory' is not set.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20211215182421.418374-4-philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> [thuth: Replaced MEMTX_BUS_ERROR with MEMTX_ACCESS_ERROR, remove "inline"] Signed-off-by: Thomas Huth <thuth@redhat.com>
|
/qemu/system/ |
H A D | physmem.c | 3ab6fdc91b72e156da22848f0003ff4225690ced Wed Dec 15 18:24:21 UTC 2021 Philippe Mathieu-Daudé <philmd@redhat.com> softmmu/physmem: Introduce MemTxAttrs::memory field and MEMTX_ACCESS_ERROR
Add the 'memory' bit to the memory attributes to restrict bus controller accesses to memories.
Introduce flatview_access_allowed() to check bus permission before running any bus transaction.
Have read/write accessors return MEMTX_ACCESS_ERROR if an access is restricted.
There is no change for the default case where 'memory' is not set.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20211215182421.418374-4-philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> [thuth: Replaced MEMTX_BUS_ERROR with MEMTX_ACCESS_ERROR, remove "inline"] Signed-off-by: Thomas Huth <thuth@redhat.com>
|