2021-05-17 17:16:58 +02:00
|
|
|
# See docs/devel/tracing.rst for syntax documentation.
|
2017-01-25 17:14:12 +01:00
|
|
|
|
2023-01-02 01:39:13 +01:00
|
|
|
# ../../include/hw/xen/xen_native.h
|
2017-01-25 17:14:12 +01:00
|
|
|
xen_default_ioreq_server(void) ""
|
|
|
|
xen_ioreq_server_create(uint32_t id) "id: %u"
|
|
|
|
xen_ioreq_server_destroy(uint32_t id) "id: %u"
|
|
|
|
xen_ioreq_server_state(uint32_t id, bool enable) "id: %u: enable: %i"
|
2017-07-31 18:01:33 +02:00
|
|
|
xen_map_mmio_range(uint32_t id, uint64_t start_addr, uint64_t end_addr) "id: %u start: 0x%"PRIx64" end: 0x%"PRIx64
|
|
|
|
xen_unmap_mmio_range(uint32_t id, uint64_t start_addr, uint64_t end_addr) "id: %u start: 0x%"PRIx64" end: 0x%"PRIx64
|
|
|
|
xen_map_portio_range(uint32_t id, uint64_t start_addr, uint64_t end_addr) "id: %u start: 0x%"PRIx64" end: 0x%"PRIx64
|
|
|
|
xen_unmap_portio_range(uint32_t id, uint64_t start_addr, uint64_t end_addr) "id: %u start: 0x%"PRIx64" end: 0x%"PRIx64
|
2017-01-25 17:14:12 +01:00
|
|
|
xen_map_pcidev(uint32_t id, uint8_t bus, uint8_t dev, uint8_t func) "id: %u bdf: %02x.%02x.%02x"
|
|
|
|
xen_unmap_pcidev(uint32_t id, uint8_t bus, uint8_t dev, uint8_t func) "id: %u bdf: %02x.%02x.%02x"
|
2017-03-22 10:39:15 +01:00
|
|
|
xen_domid_restrict(int err) "err: %u"
|
2019-01-08 15:48:47 +01:00
|
|
|
|
2019-03-14 19:09:26 +01:00
|
|
|
# xen-bus.c
|
2019-01-08 15:48:47 +01:00
|
|
|
xen_bus_realize(void) ""
|
|
|
|
xen_bus_unrealize(void) ""
|
2019-01-08 15:49:00 +01:00
|
|
|
xen_bus_enumerate(void) ""
|
2019-09-13 10:21:58 +02:00
|
|
|
xen_bus_cleanup(void) ""
|
2019-01-08 15:49:00 +01:00
|
|
|
xen_bus_type_enumerate(const char *type) "type: %s"
|
|
|
|
xen_bus_backend_create(const char *type, const char *path) "type: %s path: %s"
|
2019-09-13 10:21:58 +02:00
|
|
|
xen_bus_device_cleanup(const char *type, char *name) "type: %s name: %s"
|
2019-09-13 10:21:56 +02:00
|
|
|
xen_bus_add_watch(const char *node, const char *key) "node: %s key: %s"
|
|
|
|
xen_bus_remove_watch(const char *node, const char *key) "node: %s key: %s"
|
2019-01-08 15:48:49 +01:00
|
|
|
xen_device_realize(const char *type, char *name) "type: %s name: %s"
|
|
|
|
xen_device_unrealize(const char *type, char *name) "type: %s name: %s"
|
|
|
|
xen_device_backend_state(const char *type, char *name, const char *state) "type: %s name: %s -> %s"
|
2019-01-08 15:48:59 +01:00
|
|
|
xen_device_backend_online(const char *type, char *name, bool online) "type: %s name: %s -> %u"
|
|
|
|
xen_device_backend_changed(const char *type, char *name) "type: %s name: %s"
|
2019-01-08 15:48:49 +01:00
|
|
|
xen_device_frontend_state(const char *type, char *name, const char *state) "type: %s name: %s -> %s"
|
2019-01-08 15:48:50 +01:00
|
|
|
xen_device_frontend_changed(const char *type, char *name) "type: %s name: %s"
|
2019-01-08 15:48:59 +01:00
|
|
|
xen_device_unplug(const char *type, char *name) "type: %s name: %s"
|
2019-09-13 10:21:57 +02:00
|
|
|
xen_device_add_watch(const char *type, char *name, const char *node, const char *key) "type: %s name: %s node: %s key: %s"
|
|
|
|
xen_device_remove_watch(const char *type, char *name, const char *node, const char *key) "type: %s name: %s node: %s key: %s"
|
2019-01-08 15:48:49 +01:00
|
|
|
|
2019-03-14 19:09:26 +01:00
|
|
|
# xen-bus-helper.c
|
2019-01-08 15:48:49 +01:00
|
|
|
xs_node_create(const char *node) "%s"
|
|
|
|
xs_node_destroy(const char *node) "%s"
|
|
|
|
xs_node_vprintf(char *path, char *value) "%s %s"
|
|
|
|
xs_node_vscanf(char *path, char *value) "%s %s"
|
2019-01-08 15:48:50 +01:00
|
|
|
xs_node_watch(char *path) "%s"
|
|
|
|
xs_node_unwatch(char *path) "%s"
|
2023-06-15 02:03:29 +02:00
|
|
|
|
xen-hvm: reorganize xen-hvm and move common function to xen-hvm-common
This patch does following:
1. creates arch_handle_ioreq() and arch_xen_set_memory(). This is done in
preparation for moving most of xen-hvm code to an arch-neutral location,
move the x86-specific portion of xen_set_memory to arch_xen_set_memory.
Also, move handle_vmport_ioreq to arch_handle_ioreq.
2. Pure code movement: move common functions to hw/xen/xen-hvm-common.c
Extract common functionalities from hw/i386/xen/xen-hvm.c and move them to
hw/xen/xen-hvm-common.c. These common functions are useful for creating
an IOREQ server.
xen_hvm_init_pc() contains the architecture independent code for creating
and mapping a IOREQ server, connecting memory and IO listeners, initializing
a xen bus and registering backends. Moved this common xen code to a new
function xen_register_ioreq() which can be used by both x86 and ARM machines.
Following functions are moved to hw/xen/xen-hvm-common.c:
xen_vcpu_eport(), xen_vcpu_ioreq(), xen_ram_alloc(), xen_set_memory(),
xen_region_add(), xen_region_del(), xen_io_add(), xen_io_del(),
xen_device_realize(), xen_device_unrealize(),
cpu_get_ioreq_from_shared_memory(), cpu_get_ioreq(), do_inp(),
do_outp(), rw_phys_req_item(), read_phys_req_item(),
write_phys_req_item(), cpu_ioreq_pio(), cpu_ioreq_move(),
cpu_ioreq_config(), handle_ioreq(), handle_buffered_iopage(),
handle_buffered_io(), cpu_handle_ioreq(), xen_main_loop_prepare(),
xen_hvm_change_state_handler(), xen_exit_notifier(),
xen_map_ioreq_server(), destroy_hvm_domain() and
xen_shutdown_fatal_error()
3. Removed static type from below functions:
1. xen_region_add()
2. xen_region_del()
3. xen_io_add()
4. xen_io_del()
5. xen_device_realize()
6. xen_device_unrealize()
7. xen_hvm_change_state_handler()
8. cpu_ioreq_pio()
9. xen_exit_notifier()
4. Replace TARGET_PAGE_SIZE with XC_PAGE_SIZE to match the page side with Xen.
Signed-off-by: Vikram Garhwal <vikram.garhwal@amd.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
2023-06-15 02:03:32 +02:00
|
|
|
# xen-hvm.c
|
|
|
|
xen_ram_alloc(unsigned long ram_addr, unsigned long size) "requested: 0x%lx, size 0x%lx"
|
|
|
|
xen_client_set_memory(uint64_t start_addr, unsigned long size, bool log_dirty) "0x%"PRIx64" size 0x%lx, log_dirty %i"
|
|
|
|
handle_ioreq(void *req, uint32_t type, uint32_t dir, uint32_t df, uint32_t data_is_ptr, uint64_t addr, uint64_t data, uint32_t count, uint32_t size) "I/O=%p type=%d dir=%d df=%d ptr=%d port=0x%"PRIx64" data=0x%"PRIx64" count=%d size=%d"
|
|
|
|
handle_ioreq_read(void *req, uint32_t type, uint32_t df, uint32_t data_is_ptr, uint64_t addr, uint64_t data, uint32_t count, uint32_t size) "I/O=%p read type=%d df=%d ptr=%d port=0x%"PRIx64" data=0x%"PRIx64" count=%d size=%d"
|
|
|
|
handle_ioreq_write(void *req, uint32_t type, uint32_t df, uint32_t data_is_ptr, uint64_t addr, uint64_t data, uint32_t count, uint32_t size) "I/O=%p write type=%d df=%d ptr=%d port=0x%"PRIx64" data=0x%"PRIx64" count=%d size=%d"
|
|
|
|
cpu_ioreq_pio(void *req, uint32_t dir, uint32_t df, uint32_t data_is_ptr, uint64_t addr, uint64_t data, uint32_t count, uint32_t size) "I/O=%p pio dir=%d df=%d ptr=%d port=0x%"PRIx64" data=0x%"PRIx64" count=%d size=%d"
|
|
|
|
cpu_ioreq_pio_read_reg(void *req, uint64_t data, uint64_t addr, uint32_t size) "I/O=%p pio read reg data=0x%"PRIx64" port=0x%"PRIx64" size=%d"
|
|
|
|
cpu_ioreq_pio_write_reg(void *req, uint64_t data, uint64_t addr, uint32_t size) "I/O=%p pio write reg data=0x%"PRIx64" port=0x%"PRIx64" size=%d"
|
|
|
|
cpu_ioreq_move(void *req, uint32_t dir, uint32_t df, uint32_t data_is_ptr, uint64_t addr, uint64_t data, uint32_t count, uint32_t size) "I/O=%p copy dir=%d df=%d ptr=%d port=0x%"PRIx64" data=0x%"PRIx64" count=%d size=%d"
|
|
|
|
xen_map_resource_ioreq(uint32_t id, void *addr) "id: %u addr: %p"
|
|
|
|
cpu_ioreq_config_read(void *req, uint32_t sbdf, uint32_t reg, uint32_t size, uint32_t data) "I/O=%p sbdf=0x%x reg=%u size=%u data=0x%x"
|
|
|
|
cpu_ioreq_config_write(void *req, uint32_t sbdf, uint32_t reg, uint32_t size, uint32_t data) "I/O=%p sbdf=0x%x reg=%u size=%u data=0x%x"
|
|
|
|
|
2023-06-15 02:03:29 +02:00
|
|
|
# xen-mapcache.c
|
|
|
|
xen_map_cache(uint64_t phys_addr) "want 0x%"PRIx64
|
|
|
|
xen_remap_bucket(uint64_t index) "index 0x%"PRIx64
|
|
|
|
xen_map_cache_return(void* ptr) "%p"
|