diff options
author | Boris Ostrovsky <[email protected]> | 2022-02-09 09:02:13 +0100 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2022-04-12 14:13:01 +0200 |
commit | e8a69f12f01f487c6a0e704eb14ccf2dd015277d (patch) | |
tree | 3419591d9a14133613d3fecaf007728fc58944e3 /lib/mpi/mpi-sub-ui.c | |
parent | ce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e (diff) |
x86/xen: Allow to retry if cpu_initialize_context() failed.
If memory allocation in cpu_initialize_context() fails then it will
bring up the VCPU and leave with the corresponding CPU bit set in
xen_cpu_initialized_map.
The following (presumably successful) CPU bring up will BUG in
xen_pv_cpu_up() because nothing for that VCPU would be initialized.
Clear the CPU bits, that were set in cpu_initialize_context() in case
the memory allocation fails.
[ bigeasy: Creating a patch from Boris' email. ]
Signed-off-by: Boris Ostrovsky <[email protected]>
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions