SSB Fix #2]]
PATCH 2/2 SSB Fix #2]]
[Forwarding and encrypting.]
----- Forwarded message from Boris Ostrovsky <[email protected]> -----
Date: Fri, 18 May 2018 17:43:26 -0400
From: Boris Ostrovsky <[email protected]>
To: Konrad Rzeszutek Wilk <[email protected]>
Subject: Re: [[email protected]: Re: [PATCH v17.1 2/2] [PATCH v17.1 2/2] SSB Fix #2]
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
Quoted 16 lines · Boris Ostrovsky
Quoted 7 lines · Konrad Rzeszutek Wilk
Prior to that.
----- Forwarded message from speck for Konrad Rzeszutek Wilk <[email protected]> -----
Quoted 1 line · speck for Linus Torvalds
On Fri, 18 May 2018, speck for Konrad Rzeszutek Wilk wrote:
Quoted 8 lines
Quoted 2 lines
Quoted 1 line
Yup. B/c there is no early callback installed yet and it ends up using 'cli'
Why isn't the default callback for cli (and restore-flags) just a no-op?
The paravirt code hadn't yet run.
Quoted 4 lines
Interrupts had better not be enabled before the callbacks are done, so they *should* default to not doing anything.
Linus
----- End forwarded message -----
Quoted 8 lines
Here is the thing: yes, the patch is trying to work around a particular issue with cli. But even if cli was a nop we *can't*
printk()at this point anyway! For example, I believe somewhere in bowels of printk code there will be a dereference of a per-CPU variable. We haven't set up per-CPU segments either.The point of that patch, really, is that we shouldn't be calling non-Xen code yet.
An equivalent of what xen_start_kernel() is currently doing is calling get_cpu_cap() from arch/x86/kernel/head_64.S:startup_64.
-boris
----- End forwarded message -----