diff options
author | Fabiano Rosas <farosas@suse.de> | 2024-06-17 15:57:26 -0300 |
---|---|---|
committer | Fabiano Rosas <farosas@suse.de> | 2024-06-21 09:47:22 -0300 |
commit | b43b61d5bee522dadf44b472af71aab7235c13d5 (patch) | |
tree | f8fc16b33cdc39384d4836d9b18330db89bed3ba /include/qemu | |
parent | 46cec74c1b71973756d8960a305bae1491ae6259 (diff) | |
download | qemu-b43b61d5bee522dadf44b472af71aab7235c13d5.zip qemu-b43b61d5bee522dadf44b472af71aab7235c13d5.tar.gz qemu-b43b61d5bee522dadf44b472af71aab7235c13d5.tar.bz2 |
migration: Add direct-io parameter
Add the direct-io migration parameter that tells the migration code to
use O_DIRECT when opening the migration stream file whenever possible.
This is currently only used with the mapped-ram migration that has a
clear window guaranteed to perform aligned writes.
Acked-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'include/qemu')
-rw-r--r-- | include/qemu/osdep.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index f61edcf..191916f 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -612,6 +612,8 @@ int qemu_lock_fd_test(int fd, int64_t start, int64_t len, bool exclusive); bool qemu_has_ofd_lock(void); #endif +bool qemu_has_direct_io(void); + #if defined(__HAIKU__) && defined(__i386__) #define FMT_pid "%ld" #elif defined(WIN64) |