block: fix deadlock in bdrv_co_flush
[qemu/kevin.git] / include / exec / memory-internal.h
blobfb467acdbad6cb54e4ed2a37949bf2578fc558e8
1 /*
2 * Declarations for obsolete exec.c functions
4 * Copyright 2011 Red Hat, Inc. and/or its affiliates
6 * Authors:
7 * Avi Kivity <avi@redhat.com>
9 * This work is licensed under the terms of the GNU GPL, version 2 or
10 * later. See the COPYING file in the top-level directory.
15 * This header is for use by exec.c and memory.c ONLY. Do not include it.
16 * The functions declared here will be removed soon.
19 #ifndef MEMORY_INTERNAL_H
20 #define MEMORY_INTERNAL_H
22 #ifndef CONFIG_USER_ONLY
23 typedef struct AddressSpaceDispatch AddressSpaceDispatch;
25 void address_space_init_dispatch(AddressSpace *as);
26 void address_space_unregister(AddressSpace *as);
27 void address_space_destroy_dispatch(AddressSpace *as);
29 extern const MemoryRegionOps unassigned_mem_ops;
31 bool memory_region_access_valid(MemoryRegion *mr, hwaddr addr,
32 unsigned size, bool is_write);
34 #endif
35 #endif