|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] x86/smpboot: Re-position the call to tboot_wake_ap()
commit dbfee5918cb8357b77dc6758d79cd100e1baeeaa
Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Mon Jan 11 15:54:38 2021 +0000
Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Fri Jan 29 11:59:49 2021 +0000
x86/smpboot: Re-position the call to tboot_wake_ap()
So all the moving parts are in one function.
No functional change.
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
---
xen/arch/x86/smpboot.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/xen/arch/x86/smpboot.c b/xen/arch/x86/smpboot.c
index 67e727cebd..f5aba3c555 100644
--- a/xen/arch/x86/smpboot.c
+++ b/xen/arch/x86/smpboot.c
@@ -425,6 +425,13 @@ static int wakeup_secondary_cpu(int phys_apicid, unsigned
long start_eip)
unsigned long send_status = 0, accept_status = 0;
int maxlvt, timeout, i;
+ /*
+ * Some versions of tboot might be able to handle the entire wake sequence
+ * on our behalf.
+ */
+ if ( tboot_in_measured_env() && !tboot_wake_ap(phys_apicid, start_eip) )
+ return 0;
+
/*
* Be paranoid about clearing APIC errors.
*/
@@ -570,8 +577,7 @@ static int do_boot_cpu(int apicid, int cpu)
set_cpu_state(CPU_STATE_INIT);
/* Starting actual IPI sequence... */
- if ( !tboot_in_measured_env() || tboot_wake_ap(apicid, start_eip) )
- boot_error = wakeup_secondary_cpu(apicid, start_eip);
+ boot_error = wakeup_secondary_cpu(apicid, start_eip);
if ( !boot_error )
{
--
generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |