]>
git.proxmox.com Git - mirror_qemu.git/blob - include/qemu/plugin-memory.h
4 * Copyright (c) 2019 Linaro Ltd
6 * SPDX-License-Identifier: GPL-2.0-or-later
9 #ifndef PLUGIN_MEMORY_H
10 #define PLUGIN_MEMORY_H
12 #include "exec/cpu-defs.h"
13 #include "exec/hwaddr.h"
15 struct qemu_plugin_hwaddr
{
23 * tlb_plugin_lookup: query last TLB lookup
24 * @cpu: cpu environment
26 * This function can be used directly after a memory operation to
27 * query information about the access. It is used by the plugin
28 * infrastructure to expose more information about the address.
30 * It would only fail if not called from an instrumented memory access
31 * which would be an abuse of the API.
33 bool tlb_plugin_lookup(CPUState
*cpu
, vaddr addr
, int mmu_idx
,
34 bool is_store
, struct qemu_plugin_hwaddr
*data
);
36 #endif /* PLUGIN_MEMORY_H */