Skip to content

Commit

Permalink
xen/arm: do not handle VCPUOP_register_vcpu_info failures
Browse files Browse the repository at this point in the history
We expect VCPUOP_register_vcpu_info to succeed, do not try to handle
failures.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
  • Loading branch information
Stefano Stabellini committed May 13, 2013
1 parent 1aa3d8d commit d7266d7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions arch/arm/xen/enlighten.c
Expand Up @@ -165,13 +165,9 @@ static int __init xen_secondary_init(unsigned int cpu)
info.offset = offset_in_page(vcpup);

err = HYPERVISOR_vcpu_op(VCPUOP_register_vcpu_info, cpu, &info);
if (err) {
pr_debug("register_vcpu_info failed: err=%d\n", err);
} else {
/* This cpu is using the registered vcpu info, even if
later ones fail to. */
per_cpu(xen_vcpu, cpu) = vcpup;
}
BUG_ON(err);
per_cpu(xen_vcpu, cpu) = vcpup;

return 0;
}

Expand Down

0 comments on commit d7266d7

Please sign in to comment.