mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-01 16:44:26 +00:00
xen/arm: do not handle VCPUOP_register_vcpu_info failures
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>
This commit is contained in:
parent
1aa3d8d993
commit
d7266d7894
@ -165,13 +165,9 @@ static int __init xen_secondary_init(unsigned int cpu)
|
|||||||
info.offset = offset_in_page(vcpup);
|
info.offset = offset_in_page(vcpup);
|
||||||
|
|
||||||
err = HYPERVISOR_vcpu_op(VCPUOP_register_vcpu_info, cpu, &info);
|
err = HYPERVISOR_vcpu_op(VCPUOP_register_vcpu_info, cpu, &info);
|
||||||
if (err) {
|
BUG_ON(err);
|
||||||
pr_debug("register_vcpu_info failed: err=%d\n", err);
|
per_cpu(xen_vcpu, cpu) = vcpup;
|
||||||
} else {
|
|
||||||
/* This cpu is using the registered vcpu info, even if
|
|
||||||
later ones fail to. */
|
|
||||||
per_cpu(xen_vcpu, cpu) = vcpup;
|
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user