diff options
| author | Bharata B Rao | 2016-06-01 11:51:24 +0200 |
|---|---|---|
| committer | David Gibson | 2016-06-07 02:17:45 +0200 |
| commit | 44f2e6c10eb2bf5dc3e36372ed574f71e80dba30 (patch) | |
| tree | fab3d49edebbe1a1571f84296750ab27e328ae29 /include | |
| parent | target-ppc/fpu_helper: Fix efscmp* instructions handling (diff) | |
| download | qemu-44f2e6c10eb2bf5dc3e36372ed574f71e80dba30.tar.gz qemu-44f2e6c10eb2bf5dc3e36372ed574f71e80dba30.tar.xz qemu-44f2e6c10eb2bf5dc3e36372ed574f71e80dba30.zip | |
kvm: API to obtain max supported mem slots
Introduce kvm_get_max_memslots() API that can be used to obtain the
maximum number of memslots supported by KVM.
Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sysemu/kvm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h index 65569ed438..ad6f837bb4 100644 --- a/include/sysemu/kvm.h +++ b/include/sysemu/kvm.h @@ -527,4 +527,5 @@ int kvm_set_one_reg(CPUState *cs, uint64_t id, void *source); * Returns: 0 on success, or a negative errno on failure. */ int kvm_get_one_reg(CPUState *cs, uint64_t id, void *target); +int kvm_get_max_memslots(void); #endif |
