Skip to content

Simplify memory registration

Glauber Costa kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9Don't separate registrations with IO_MEM_ROM setqemu/qemu-kvm.c+11 -209 replies
2/9do not use mem_hole anymore.libkvm/libkvm.c qemu/qemu-kvm.c+9 -730 replies
3/9allow intersecting region to be on the boundary.libkvm/libkvm.c+2 -20 replies
4/9substitute is_allocated_mem with more general is_containing_regionlibkvm/libkvm.c libkvm/libkvm.h qemu/qemu-kvm.c+24 -160 replies
5/9move kvm_cpu_register_memory_area into qemu'slibkvm/libkvm.c libkvm/libkvm.h qemu/exec.c +1 more+112 -90 replies
6/9cleanup kvm memory registrationqemu/exec.c qemu/hw/ipf.c qemu/hw/pc.c +2 more+3 -380 replies
7/9add debuging facilities to memory registration at libkvmlibkvm/libkvm.c+13 -30 replies
8/9coalesce mmio regions without an explicit callqemu/qemu-kvm.c+1 -20 replies
9/9remove explicit calls to kvm_qemu_register_coalesced_mmioqemu/hw/cirrus_vga.c qemu/hw/e1000.c qemu/hw/pci.c +1 more+0 -210 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] Simplify memory registration

Hi guys

This patchset simplifies memory registration even further. It's a respin of the one I've already sent, but now, without the kernel memory case, it's in definitive form.

There are still some issues to be solved regarding the whole kvm memory thing (as aliases and logging, for example), but the current form after the patchset already allows us to remove all the calls from kvm_cpu_register_phys_mem() from all around the place, in favor of a single hook.

Important: This is _not_ tested in architectures other than x86. So, if people with access to hardware covered by the other ports can test and ack it, it would be really awesome.

For those waiting on QemuAccel updates, this is the memory patchset I was talking about. We should have news on that front after we settle here, so please review.

thanks!