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
ac9f6dc0
Commit
ac9f6dc0
authored
Jul 06, 2008
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: Apply the kernel sigmask to vcpus blocked due to being uninitialized
Signed-off-by:
Avi Kivity
<
avi@qumranet.com
>
parent
4e1096d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
arch/x86/kvm/x86.c
arch/x86/kvm/x86.c
+5
-5
No files found.
arch/x86/kvm/x86.c
View file @
ac9f6dc0
...
...
@@ -2958,15 +2958,15 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
vcpu_load
(
vcpu
);
if
(
vcpu
->
sigset_active
)
sigprocmask
(
SIG_SETMASK
,
&
vcpu
->
sigset
,
&
sigsaved
);
if
(
unlikely
(
vcpu
->
arch
.
mp_state
==
KVM_MP_STATE_UNINITIALIZED
))
{
kvm_vcpu_block
(
vcpu
);
vcpu_put
(
vcpu
)
;
return
-
EAGAIN
;
r
=
-
EAGAIN
;
goto
out
;
}
if
(
vcpu
->
sigset_active
)
sigprocmask
(
SIG_SETMASK
,
&
vcpu
->
sigset
,
&
sigsaved
);
/* re-sync apic's tpr */
if
(
!
irqchip_in_kernel
(
vcpu
->
kvm
))
kvm_set_cr8
(
vcpu
,
kvm_run
->
cr8
);
...
...
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