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
19483d14
Commit
19483d14
authored
May 13, 2010
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: PPC: Centralize locking of arch specific vcpu ioctls
Signed-off-by:
Avi Kivity
<
avi@redhat.com
>
parent
bc923cc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
arch/powerpc/kvm/powerpc.c
arch/powerpc/kvm/powerpc.c
+8
-4
No files found.
arch/powerpc/kvm/powerpc.c
View file @
19483d14
...
...
@@ -512,15 +512,17 @@ long kvm_arch_vcpu_ioctl(struct file *filp,
void
__user
*
argp
=
(
void
__user
*
)
arg
;
long
r
;
switch
(
ioctl
)
{
case
KVM_INTERRUPT
:
{
if
(
ioctl
==
KVM_INTERRUPT
)
{
struct
kvm_interrupt
irq
;
r
=
-
EFAULT
;
if
(
copy_from_user
(
&
irq
,
argp
,
sizeof
(
irq
)))
goto
out
;
goto
out
_nolock
;
r
=
kvm_vcpu_ioctl_interrupt
(
vcpu
,
&
irq
);
brea
k
;
goto
out_noloc
k
;
}
vcpu_load
(
vcpu
);
switch
(
ioctl
)
{
case
KVM_ENABLE_CAP
:
{
struct
kvm_enable_cap
cap
;
...
...
@@ -535,6 +537,8 @@ long kvm_arch_vcpu_ioctl(struct file *filp,
}
out:
vcpu_put
(
vcpu
);
out_nolock:
return
r
;
}
...
...
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