From: "Jürgen Groß" <jgross@suse.com>
To: Boris Ostrovsky <boris.ostrovsky@oracle.com>,
xen-devel@lists.xenproject.org, x86@kernel.org,
linux-kernel@vger.kernel.org
Cc: Andy Lutomirski <luto@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
"H. Peter Anvin" <hpa@zytor.com>,
Stefano Stabellini <sstabellini@kernel.org>
Subject: Re: [PATCH v2 1/4] x86/xen: remove 32-bit Xen PV guest support
Date: Fri, 3 Jul 2020 07:15:27 +0200 [thread overview]
Message-ID: <96159aed-9fdb-9fcb-a1b1-7c6c2c47e6a1@suse.com> (raw)
In-Reply-To: <6d0b517a-6c53-61d3-117b-40e33e013037@oracle.com>
On 03.07.20 00:59, Boris Ostrovsky wrote:
> On 7/1/20 7:06 AM, Juergen Gross wrote:
>> Xen is requiring 64-bit machines today and since Xen 4.14 it can be
>> built without 32-bit PV guest support. There is no need to carry the
>> burden of 32-bit PV guest support in the kernel any longer, as new
>> guests can be either HVM or PVH, or they can use a 64 bit kernel.
>>
>> Remove the 32-bit Xen PV support from the kernel.
>>
>> Signed-off-by: Juergen Gross <jgross@suse.com>
>> ---
>> arch/x86/entry/entry_32.S | 109 +----------
>> arch/x86/include/asm/proto.h | 2 +-
>> arch/x86/include/asm/segment.h | 2 +-
>> arch/x86/kernel/head_32.S | 31 ---
>> arch/x86/xen/Kconfig | 3 +-
>> arch/x86/xen/Makefile | 3 +-
>> arch/x86/xen/apic.c | 17 --
>> arch/x86/xen/enlighten_pv.c | 48 +----
>
>
> Should we drop PageHighMem() test in set_aliased_prot()?
>
>
> (And there are few other places where is is used, in mmu_pv.c)
Yes, will drop those.
>
>
>
>> @@ -555,13 +547,8 @@ static void xen_load_tls(struct thread_struct *t, unsigned int cpu)
>> * exception between the new %fs descriptor being loaded and
>> * %fs being effectively cleared at __switch_to().
>> */
>> - if (paravirt_get_lazy_mode() == PARAVIRT_LAZY_CPU) {
>> -#ifdef CONFIG_X86_32
>> - lazy_load_gs(0);
>> -#else
>
>
> I think this also needs an adjustment to the preceding comment.
Yes.
>
>
>>
>> -#ifdef CONFIG_X86_PAE
>> -static void xen_set_pte_atomic(pte_t *ptep, pte_t pte)
>> -{
>> - trace_xen_mmu_set_pte_atomic(ptep, pte);
>> - __xen_set_pte(ptep, pte);
>
>
> Probably not for this series but I wonder whether __xen_set_pte() should
> continue to use hypercall now that we are 64-bit only.
As Andrew wrote already the hypercall will be cheaper.
I'll adjust the comment, though.
>
>
>> @@ -654,14 +621,12 @@ static int __xen_pgd_walk(struct mm_struct *mm, pgd_t *pgd,
>
>
> Comment above should be updated.
Yes.
Juergen
next prev parent reply other threads:[~2020-07-03 5:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-01 11:06 [PATCH v2 0/4] Remove " Juergen Gross
2020-07-01 11:06 ` [PATCH v2 1/4] x86/xen: remove " Juergen Gross
2020-07-01 16:33 ` Brian Gerst
2020-07-02 22:59 ` Boris Ostrovsky
2020-07-02 23:24 ` Andrew Cooper
2020-07-02 23:27 ` Boris Ostrovsky
2020-07-03 5:15 ` Jürgen Groß [this message]
2020-07-01 11:06 ` [PATCH v2 2/4] x86/paravirt: remove 32-bit support from PARAVIRT_XXL Juergen Gross
2020-07-01 11:06 ` [PATCH v2 3/4] x86/paravirt: cleanup paravirt macros Juergen Gross
2020-07-01 11:06 ` [PATCH v2 4/4] x86/paravirt: use CONFIG_PARAVIRT_XXL instead of CONFIG_PARAVIRT Juergen Gross
2020-07-02 8:18 ` [PATCH v2 0/4] Remove 32-bit Xen PV guest support Peter Zijlstra
2020-07-02 14:48 ` Brian Gerst
2020-07-02 15:45 ` Jürgen Groß
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=96159aed-9fdb-9fcb-a1b1-7c6c2c47e6a1@suse.com \
--to=jgross@suse.com \
--cc=boris.ostrovsky@oracle.com \
--cc=bp@alien8.de \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=mingo@redhat.com \
--cc=sstabellini@kernel.org \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®