1 /* 2 * QEMU Plugin API - user-mode only implementations 3 * 4 * This provides the APIs that have a user-mode specific 5 * implementations or are only relevant to user-mode. 6 * 7 * Copyright (C) 2017, Emilio G. Cota <cota@braap.org> 8 * Copyright (C) 2019-2025, Linaro 9 * 10 * SPDX-License-Identifier: GPL-2.0-or-later 11 */ 12 13 #include "qemu/osdep.h" 14 #include "qemu/plugin.h" 15 16 /* 17 * Virtual Memory queries - these are all NOPs for user-mode which 18 * only ever has visibility of virtual addresses. 19 */ 20 21 struct qemu_plugin_hwaddr *qemu_plugin_get_hwaddr(qemu_plugin_meminfo_t info, 22 uint64_t vaddr) 23 { 24 return NULL; 25 } 26 27 bool qemu_plugin_hwaddr_is_io(const struct qemu_plugin_hwaddr *haddr) 28 { 29 return false; 30 } 31 32 uint64_t qemu_plugin_hwaddr_phys_addr(const struct qemu_plugin_hwaddr *haddr) 33 { 34 return 0; 35 } 36 37 const char *qemu_plugin_hwaddr_device_name(const struct qemu_plugin_hwaddr *h) 38 { 39 return g_intern_static_string("Invalid"); 40 } 41