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
1a6f4d7f
Commit
1a6f4d7f
authored
Nov 11, 2007
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: Simplify CPU_TASKS_FROZEN cpu notifier handling
Signed-off-by:
Avi Kivity
<
avi@qumranet.com
>
parent
906e608b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
drivers/kvm/kvm_main.c
drivers/kvm/kvm_main.c
+1
-3
No files found.
drivers/kvm/kvm_main.c
View file @
1a6f4d7f
...
...
@@ -1335,21 +1335,19 @@ static int kvm_cpu_hotplug(struct notifier_block *notifier, unsigned long val,
{
int
cpu
=
(
long
)
v
;
val
&=
~
CPU_TASKS_FROZEN
;
switch
(
val
)
{
case
CPU_DYING
:
case
CPU_DYING_FROZEN
:
printk
(
KERN_INFO
"kvm: disabling virtualization on CPU%d
\n
"
,
cpu
);
hardware_disable
(
NULL
);
break
;
case
CPU_UP_CANCELED
:
case
CPU_UP_CANCELED_FROZEN
:
printk
(
KERN_INFO
"kvm: disabling virtualization on CPU%d
\n
"
,
cpu
);
smp_call_function_single
(
cpu
,
hardware_disable
,
NULL
,
0
,
1
);
break
;
case
CPU_ONLINE
:
case
CPU_ONLINE_FROZEN
:
printk
(
KERN_INFO
"kvm: enabling virtualization on CPU%d
\n
"
,
cpu
);
smp_call_function_single
(
cpu
,
hardware_enable
,
NULL
,
0
,
1
);
...
...
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