summaryrefslogtreecommitdiffstats
path: root/include/exec/ram_addr.h
diff options
context:
space:
mode:
authorDr. David Alan Gilbert2016-09-29 21:09:37 +0200
committerJuan Quintela2016-10-13 17:23:53 +0200
commit863e9621c51a7544f1a2ae78387749145adaf450 (patch)
tree9afdd1b75ec05b47c7f9c25e89ddb887a15e5a6f /include/exec/ram_addr.h
parentPostcopy vs xbzrle: Don't send xbzrle pages once in postcopy [for 2.8] (diff)
downloadqemu-863e9621c51a7544f1a2ae78387749145adaf450.tar.gz
qemu-863e9621c51a7544f1a2ae78387749145adaf450.tar.xz
qemu-863e9621c51a7544f1a2ae78387749145adaf450.zip
RAMBlocks: Store page size
Store the page size in each RAMBlock, we need it later. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include/exec/ram_addr.h')
-rw-r--r--include/exec/ram_addr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/exec/ram_addr.h b/include/exec/ram_addr.h
index 2a9465da11..54d7108a9e 100644
--- a/include/exec/ram_addr.h
+++ b/include/exec/ram_addr.h
@@ -36,6 +36,7 @@ struct RAMBlock {
/* RCU-enabled, writes protected by the ramlist lock */
QLIST_ENTRY(RAMBlock) next;
int fd;
+ size_t page_size;
};
static inline bool offset_in_ramblock(RAMBlock *b, ram_addr_t offset)