]> git.proxmox.com Git - mirror_qemu.git/commit
kvm: split too big memory section on several memslots
authorIgor Mammedov <imammedo@redhat.com>
Tue, 24 Sep 2019 14:47:50 +0000 (10:47 -0400)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 30 Sep 2019 11:51:50 +0000 (13:51 +0200)
commit023ae9a88a7cfbdf6f23c3b78ccfcb9b1e26da98
treea6cce4fc2cf06cabb13b4fa7cd1ba38d30e158a6
parent84516e5b8db66b8a169a8fdd4c25568ed0b67a3a
kvm: split too big memory section on several memslots

Max memslot size supported by kvm on s390 is 8Tb,
move logic of splitting RAM in chunks upto 8T to KVM code.

This way it will hide KVM specific restrictions in KVM code
and won't affect board level design decisions. Which would allow
us to avoid misusing memory_region_allocate_system_memory() API
and eventually use a single hostmem backend for guest RAM.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20190924144751.24149-4-imammedo@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
accel/kvm/kvm-all.c
include/sysemu/kvm_int.h