memflow-qemu icon indicating copy to clipboard operation
memflow-qemu copied to clipboard

Metadata provides wrong size

Open ko1N opened this issue 4 years ago • 1 comments

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.

ko1N avatar Jul 03 '21 12:07 ko1N

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)

ko1N avatar Jul 03 '21 13:07 ko1N