qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/5] hostmem-file: Add "persistent" option
@ 2017-06-14 20:29 Eduardo Habkost
  2017-06-14 20:29 ` [Qemu-devel] [PATCH 1/5] vl: Clean up user-creatable objects when exiting Eduardo Habkost
                   ` (7 more replies)
  0 siblings, 8 replies; 20+ messages in thread
From: Eduardo Habkost @ 2017-06-14 20:29 UTC (permalink / raw)
  To: qemu-devel; +Cc: Dr. David Alan Gilbert, Paolo Bonzini, Igor Mammedov

This series adds a new "persistent" option to
memory-backend-file.  The new option it will be useful if
somebody is sharing RAM contents on a file using share=on, but
don't need it to be flushed to disk when QEMU exits.

Internally, it will trigger a madvise(MADV_REMOVE) or
fallocate(FALLOC_FL_PUNCH_HOLE) call when the memory backend is
destroyed.

To make we actually trigger the new code when QEMU exits, the
first patch in the series ensures we destroy all user-created
objects when exiting QEMU.

Eduardo Habkost (5):
  vl: Clean up user-creatable objects when exiting
  memory: Allow RAM up to block->max_length to be discarded
  memory: Add RAM_NONPERSISTENT flag
  memory: Add 'persistent' parameter to
    memory_region_init_ram_from_file()
  hostmem-file: Add "persistent" option

 include/exec/memory.h           |  4 ++++
 include/exec/ram_addr.h         |  4 ++--
 include/qom/object_interfaces.h |  8 ++++++++
 backends/hostmem-file.c         | 35 ++++++++++++++++++++++++++++++++++-
 exec.c                          | 26 ++++++++++++++++++++++----
 memory.c                        |  4 +++-
 numa.c                          |  2 +-
 qom/object_interfaces.c         |  5 +++++
 vl.c                            |  1 +
 qemu-options.hx                 |  9 ++++++++-
 10 files changed, 88 insertions(+), 10 deletions(-)

-- 
2.11.0.259.g40922b1

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2017-08-14 18:33 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-14 20:29 [Qemu-devel] [PATCH 0/5] hostmem-file: Add "persistent" option Eduardo Habkost
2017-06-14 20:29 ` [Qemu-devel] [PATCH 1/5] vl: Clean up user-creatable objects when exiting Eduardo Habkost
2017-06-14 20:29 ` [Qemu-devel] [PATCH 2/5] memory: Allow RAM up to block->max_length to be discarded Eduardo Habkost
2017-06-22 11:47   ` Dr. David Alan Gilbert
2017-06-14 20:29 ` [Qemu-devel] [PATCH 3/5] memory: Add RAM_NONPERSISTENT flag Eduardo Habkost
2017-06-22 12:14   ` Dr. David Alan Gilbert
2017-06-22 17:27     ` Eduardo Habkost
2017-06-22 18:56       ` Dr. David Alan Gilbert
2017-06-14 20:29 ` [Qemu-devel] [PATCH 4/5] memory: Add 'persistent' parameter to memory_region_init_ram_from_file() Eduardo Habkost
2017-06-22 12:26   ` Dr. David Alan Gilbert
2017-06-22 12:41     ` Eduardo Habkost
2017-06-14 20:30 ` [Qemu-devel] [PATCH 5/5] hostmem-file: Add "persistent" option Eduardo Habkost
2017-06-14 21:50 ` [Qemu-devel] [PATCH 0/5] " no-reply
2017-07-06 18:47 ` Eduardo Habkost
2017-08-11 16:33 ` Eduardo Habkost
2017-08-11 16:44   ` Daniel P. Berrange
2017-08-11 18:15     ` Eduardo Habkost
2017-08-14  9:39       ` Daniel P. Berrange
2017-08-14 11:40         ` Eduardo Habkost
2017-08-14 18:33           ` Zack Cornelius

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).