Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
a988b910
Commit
a988b910
authored
Feb 20, 2008
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: Add API for determining the number of supported memory slots
Signed-off-by:
Avi Kivity
<
avi@qumranet.com
>
parent
edbe6c32
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
arch/x86/kvm/x86.c
arch/x86/kvm/x86.c
+3
-0
include/linux/kvm.h
include/linux/kvm.h
+1
-0
No files found.
arch/x86/kvm/x86.c
View file @
a988b910
...
...
@@ -814,6 +814,9 @@ int kvm_dev_ioctl_check_extension(long ext)
case
KVM_CAP_NR_VCPUS
:
r
=
KVM_MAX_VCPUS
;
break
;
case
KVM_CAP_NR_MEMSLOTS
:
r
=
KVM_MEMORY_SLOTS
;
break
;
default:
r
=
0
;
break
;
...
...
include/linux/kvm.h
View file @
a988b910
...
...
@@ -235,6 +235,7 @@ struct kvm_vapic_addr {
#define KVM_CAP_EXT_CPUID 7
#define KVM_CAP_CLOCKSOURCE 8
#define KVM_CAP_NR_VCPUS 9
/* returns max vcpus per vm */
#define KVM_CAP_NR_MEMSLOTS 10
/* returns max memory slots per vm */
/*
* ioctls for VM fds
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment