Register memory in orderly fashion (from 0 up to ram_size)
commit84cc9537c69b7ec652c838104c33c7d563588fc2
authorUri Lublin <uril@qumranet.com>
Tue, 4 Dec 2007 14:44:08 +0000 (4 16:44 +0200)
committerAvi Kivity <avi@qumranet.com>
Tue, 11 Dec 2007 14:44:10 +0000 (11 16:44 +0200)
tree8bbed1e4322cbfa6334c34fa62266d4d760da9eb
parent9af02fcf2b703dbf256e8a32e498cda4397bd83c
Register memory in orderly fashion (from 0 up to ram_size)

The function kvm_cpu_register_physical_memory() does not keep phys_offset.
We need it when updating qemu-dirty-page-bitmap with kvm-dirty-page-bitmap.

Now (for VM RAM) start_addr would be the same as phys_offset.
Getting kvm-dirty-page-bitmap and updating qemu-dirty-bitmap would be
done correctly.

Signed-off-by: Uri Lublin <uril@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
hw/pc.c