Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346891
b: refs/heads/master
c: 9d328a9
h: refs/heads/master
i:
  346889: 5a9ab37
  346887: 0bfa75e
v: v3
  • Loading branch information
Wei Liu authored and Konrad Rzeszutek Wilk committed Dec 18, 2012
1 parent e9cfc48 commit d43c984
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cc31fd9c4f8fc466ec8488d617150e751f643903
refs/heads/master: 9d328a948f38ec240fc6d05db2c146e23ccd9b8b
7 changes: 4 additions & 3 deletions trunk/arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,11 @@ void xen_vcpu_restore(void)
{
int cpu;

for_each_online_cpu(cpu) {
for_each_possible_cpu(cpu) {
bool other_cpu = (cpu != smp_processor_id());
bool is_up = HYPERVISOR_vcpu_op(VCPUOP_is_up, cpu, NULL);

if (other_cpu &&
if (other_cpu && is_up &&
HYPERVISOR_vcpu_op(VCPUOP_down, cpu, NULL))
BUG();

Expand All @@ -205,7 +206,7 @@ void xen_vcpu_restore(void)
if (have_vcpu_info_placement)
xen_vcpu_setup(cpu);

if (other_cpu &&
if (other_cpu && is_up &&
HYPERVISOR_vcpu_op(VCPUOP_up, cpu, NULL))
BUG();
}
Expand Down

0 comments on commit d43c984

Please sign in to comment.