summaryrefslogtreecommitdiff
path: root/qemu-common.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2010-06-07 12:06:37 +0200
committerKevin Wolf <kwolf@redhat.com>2010-06-15 09:41:59 +0200
commit893a9cb47c767adfbc22357e33e784e7137392df (patch)
tree6de9b24557e2c0896017402a53ebfec8612871ad /qemu-common.h
parent122bb9e32df488accad35ce6a52c3a2a5c33e4be (diff)
cow: stop using mmap
We don't have an equivalent to mmap in the qemu block API, so read and write the bitmap directly. At least in the dumb implementation added in this patch this is a lot less efficient, but it means cow can also work on windows, and over nbd or curl. And it fixes qemu-iotests testcase 012 which did not work properly due to issues with read-only mmap access. In addition we can also get rid of the now unused get_mmap_addr function. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-common.h')
-rw-r--r--qemu-common.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/qemu-common.h b/qemu-common.h
index d133f35f4..00998c3af 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -164,9 +164,6 @@ void qemu_free(void *ptr);
char *qemu_strdup(const char *str);
char *qemu_strndup(const char *str, size_t size);
-void *get_mmap_addr(unsigned long size);
-
-
void qemu_mutex_lock_iothread(void);
void qemu_mutex_unlock_iothread(void);