From 44f2e6c10eb2bf5dc3e36372ed574f71e80dba30 Mon Sep 17 00:00:00 2001 From: Bharata B Rao Date: Wed, 1 Jun 2016 15:21:24 +0530 Subject: 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 Acked-by: Paolo Bonzini Signed-off-by: David Gibson --- include/sysemu/kvm.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/sysemu') diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h index 65569ed..ad6f837 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 -- cgit v1.1