Get rid of kernel memory allocation
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest12 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | start removing kernel memory functionslibkvm/ libkvm/ libkvm/ +3 more | +5 | 0 replies | |
| 2/12 | remove tests of user memory from vl.cqemu/ | +5 | 0 replies | |
| 3/12 | coalesce memory allocationqemu/ | +8 | 0 replies | |
| 4/12 | remove KVM_CAP_USER_MEMORY reference from qemu-kvm.cqemu/ | +21 | 0 replies | |
| 5/12 | remove KVM_CAP_USER_MEMORY from libkvm.c.libkvm/ | +0 | 0 replies | |
| 6/12 | remove create_kernel_phys_memlibkvm/ libkvm/ libkvm/ +3 more | +3 | 0 replies | |
| 7/12 | get rid of kvm_create_userspace_phys_memlibkvm/ | +4 | 0 replies | |
| 8/12 | remove user_alloc field from slot representationlibkvm/ libkvm/ | +16 | 0 replies | |
| 9/12 | merge destroy phys mem functionslibkvm/ | +17 | 0 replies | |
| 10/12 | rename kvm_register_userspace_phys_memlibkvm/ libkvm/ qemu/ | +4 | 0 replies | |
| 11/12 | remove kernel memory code from hw/pc.cqemu/ | +2 | 0 replies | |
| 12/12 | remove kernel memory allocation code from ipf.cqemu/ | +6 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/12] Get rid of kernel memory allocation
Hey guys,
Some eons before the dinosaurs went extinct, we used to support a method of memory allocation different than the one advertised by KVM_CAP_USER_MEMORY.
This series of patches attempt on removing the support for it in kvm-userspace entirely. It will make the job of integrating kvm and qemu much easier. As a matter of fact, platforms other than x86 (and ia64, because it seems to borrow a great deal of code from x86) don't even support that method.
I remind you that for those who still want to run userspaces old enough for Hypervisors that lack user memory capability, you always have the option of running an old enough userspace, so to match.
This patch series leaves one test for this capability in place, at machine
initialization: KVM will refuse to run if it's not in there. Later on, if we deprecate the capability altogether from the kernel, we may do it through an ABI check. But for now, I think this is enough.
series stat:
Glauber Costa (12):
start removing kernel memory functions remove tests of user memory from vl.c coalesce memory allocation
remove KVM_CAP_USER_MEMORY reference from qemu-kvm.c remove KVM_CAP_USER_MEMORY from libkvm.c. remove create_kernel_phys_mem
get rid of kvm_create_userspace_phys_mem remove user_alloc field from slot representation merge destroy phys mem functions
rename kvm_register_userspace_phys_mem remove kernel memory code from hw/pc.c remove kernel memory allocation code from ipf.c
libkvm/kvm-common.h | 8 +-- libkvm/libkvm-ia64.c | 31 ---------- libkvm/libkvm-powerpc.c | 21 ------- libkvm/libkvm-s390.c | 21 ------- libkvm/libkvm-x86.c | 124 ---------------------------------------- libkvm/libkvm.c | 146 ++++++++++++++--------------------------------- libkvm/libkvm.h | 2 +- qemu/hw/ipf.c | 25 ++------- qemu/hw/pc.c | 19 +------ qemu/qemu-kvm.c | 52 +++++++---------- qemu/vl.c | 26 ++------ 11 files changed, 79 insertions(+), 396 deletions(-)