xen/arm: do not handle VCPUOP_register_vcpu_info failures
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 8 May 2013 13:02:38 +0000 (13:02 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 13 May 2013 16:14:22 +0000 (16:14 +0000)
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>
arch/arm/xen/enlighten.c

index 83d13b0d5f7476d7b45dc88faa3a8ae78bcaa414..3dfa2b5c787d00794d3aa64a7b3bd17e3f097c96 100644 (file)
@@ -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;
 }