commit | a988b910ef816ed57e1cecbec14e98e906453f91 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@qumranet.com> | Wed Feb 20 11:59:20 2008 +0200 |
committer | Avi Kivity <avi@qumranet.com> | Sun Apr 27 11:53:23 2008 +0300 |
tree | ff76b7c516db08bb5adafd87d895f53356144d0d | |
parent | edbe6c325da48e707a3b31310c5ff5783cf6c0be [diff] [blame] |
KVM: Add API for determining the number of supported memory slots Signed-off-by: Avi Kivity <avi@qumranet.com>
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 955d2ee..b7c32f6 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c
@@ -814,6 +814,9 @@ case KVM_CAP_NR_VCPUS: r = KVM_MAX_VCPUS; break; + case KVM_CAP_NR_MEMSLOTS: + r = KVM_MEMORY_SLOTS; + break; default: r = 0; break;