Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
f725230a
Commit
f725230a
authored
Feb 20, 2008
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: Add API to retrieve the number of supported vcpus per vm
Signed-off-by:
Avi Kivity
<
avi@qumranet.com
>
parent
7a957275
Changes
2
Show 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 @
f725230a
...
...
@@ -811,6 +811,9 @@ int kvm_dev_ioctl_check_extension(long ext)
case
KVM_CAP_VAPIC
:
r
=
!
kvm_x86_ops
->
cpu_has_accelerated_tpr
();
break
;
case
KVM_CAP_NR_VCPUS
:
r
=
KVM_MAX_VCPUS
;
break
;
default:
r
=
0
;
break
;
...
...
include/linux/kvm.h
View file @
f725230a
...
...
@@ -234,6 +234,7 @@ struct kvm_vapic_addr {
#define KVM_CAP_VAPIC 6
#define KVM_CAP_EXT_CPUID 7
#define KVM_CAP_CLOCKSOURCE 8
#define KVM_CAP_NR_VCPUS 9
/* returns max vcpus 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