From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Andy Lutomirski <luto@amacapital.net>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
David Vrabel <david.vrabel@citrix.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86/xen: Initialize cr4 shadow for 64-bit PV(H) guests
Date: Mon, 23 Feb 2015 11:16:24 -0500 [thread overview]
Message-ID: <54EB5258.9040705@oracle.com> (raw)
In-Reply-To: <CALCETrUip-ct=uksKu4i4znqLZ+mvTYMi_fmZK5sjf_2A2pHBw@mail.gmail.com>
On 02/23/2015 11:09 AM, Andy Lutomirski wrote:
> On Mon, Feb 23, 2015 at 8:01 AM, Boris Ostrovsky
> <boris.ostrovsky@oracle.com> wrote:
>> Commit 1e02ce4cccdc ("x86: Store a per-cpu shadow copy of CR4")
>> introduced CR4 shadows.
>>
>> These shadows are initialized in early boot code. The commit missed
>> initialization for 64-bit PV(H) guests that this patch adds.
> Whoops, worry.
>
> This is needed for 3.21, right?
It would have been 3.20, I think. Which is now 4.0.
-boris
>
> --Andy
>
>> Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
>> ---
>> arch/x86/xen/enlighten.c | 1 +
>> 1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
>> index bd8b845..7393f3e 100644
>> --- a/arch/x86/xen/enlighten.c
>> +++ b/arch/x86/xen/enlighten.c
>> @@ -1741,6 +1741,7 @@ asmlinkage __visible void __init xen_start_kernel(void)
>> #ifdef CONFIG_X86_32
>> i386_start_kernel();
>> #else
>> + cr4_init_shadow(); /* 32b kernel does this in i386_start_kernel() */
>> x86_64_start_reservations((char *)__pa_symbol(&boot_params));
>> #endif
>> }
>> --
>> 1.7.1
>>
>
>
next prev parent reply other threads:[~2015-02-23 16:16 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-23 16:01 [PATCH] x86/xen: Initialize cr4 shadow for 64-bit PV(H) guests Boris Ostrovsky
2015-02-23 16:09 ` Andy Lutomirski
2015-02-23 16:16 ` Boris Ostrovsky [this message]
2015-02-23 16:16 ` Boris Ostrovsky
2015-02-23 16:09 ` Andy Lutomirski
2015-02-23 17:09 ` [Xen-devel] " David Vrabel
2015-03-03 5:35 ` Luis R. Rodriguez
2015-03-03 14:27 ` Boris Ostrovsky
2015-03-03 14:27 ` [Xen-devel] " Boris Ostrovsky
2015-03-03 18:15 ` Luis R. Rodriguez
2015-03-03 18:27 ` Konrad Rzeszutek Wilk
2015-03-03 18:27 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-03-03 18:15 ` Luis R. Rodriguez
2015-03-03 5:35 ` Luis R. Rodriguez
2015-02-23 17:09 ` David Vrabel
-- strict thread matches above, loose matches on Subject: below --
2015-02-23 16:01 Boris Ostrovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54EB5258.9040705@oracle.com \
--to=boris.ostrovsky@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.