]> git.proxmox.com Git - mirror_qemu.git/blobdiff - kvm-all.c
target-i386: add Skylake-Client cpu model
[mirror_qemu.git] / kvm-all.c
index d317dcb33ed592d2ee936a4b9162420306e6aec5..fbd2d93188f648d8acff196e1df8d29aa480d4a7 100644 (file)
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -126,6 +126,13 @@ static const KVMCapabilityInfo kvm_required_capabilites[] = {
     KVM_CAP_LAST_INFO
 };
 
+int kvm_get_max_memslots(void)
+{
+    KVMState *s = KVM_STATE(current_machine->accelerator);
+
+    return s->nr_slots;
+}
+
 static KVMSlot *kvm_get_free_slot(KVMMemoryListener *kml)
 {
     KVMState *s = kvm_state;