memflow-qemu
memflow-qemu copied to clipboard
Metadata provides wrong size
Metadata does not provide the proper ram size but only the size of the entire buffer after remapping.
It can be easily reproduced via:
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.provider :libvirt do |v|
v.memory = 4096
v.cpus = 2
v.qemuargs :value => "-qmp"
v.qemuargs :value => "unix:/tmp/vagrant-qmp.sock,server,nowait"
end
config.vm.box = "generic/ubuntu2010"
end
It fails with and without qmp to provide the proper metadata.
After some discussion with @h33p we think the best approach would be to rename the size field to max_address and eventually introduce a real_size field which could provide the usable size of the VM (which might help when doing compacted dumps)