From: Juergen Gross <jgross@suse.com>
To: Borislav Petkov <bp@alien8.de>
Cc: linux-kernel@vger.kernel.org, x86@kernel.org,
virtualization@lists.linux.dev,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>,
Dave Hansen <dave.hansen@linux.intel.com>,
"H. Peter Anvin" <hpa@zytor.com>, Ajay Kaher <akaher@vmware.com>,
Alexey Makhalov <amakhalov@vmware.com>,
VMware PV-Drivers Reviewers <pv-drivers@vmware.com>,
Peter Zijlstra <peterz@infradead.org>
Subject: Re: [PATCH v5 4/5] x86/paravirt: switch mixed paravirt/alternative calls to alternative_2
Date: Fri, 8 Dec 2023 12:53:47 +0100 [thread overview]
Message-ID: <cb98079d-1cbe-4034-8c55-5e71b790a887@suse.com> (raw)
In-Reply-To: <20231206110843.GCZXBWO12KW2aDq+MO@fat_crate.local>
[-- Attachment #1.1.1: Type: text/plain, Size: 1347 bytes --]
On 06.12.23 12:08, Borislav Petkov wrote:
> On Wed, Nov 29, 2023 at 02:33:31PM +0100, Juergen Gross wrote:
>> Instead of stacking alternative and paravirt patching, use the new
>> ALT_FLAG_CALL flag to switch those mixed calls to pure alternative
>> handling.
>>
>> This eliminates the need to be careful regarding the sequence of
>> alternative and paravirt patching.
>>
>> Signed-off-by: Juergen Gross <jgross@suse.com>
>> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
>> ---
>> V5:
>> - remove no longer needed extern declarations from alternative.c
>> (Boris Petkov)
>> - add comment about ALTERNATIVE[_2]() macro usage (Boris Petkov)
>> - rebase to tip/master (Boris Petkov)
>> ---
>> arch/x86/include/asm/alternative.h | 5 ++--
>> arch/x86/include/asm/paravirt.h | 9 ++++--
>> arch/x86/include/asm/paravirt_types.h | 40 +++++++++++++++------------
>> arch/x86/kernel/alternative.c | 1 -
>> arch/x86/kernel/callthunks.c | 17 ++++++------
>> arch/x86/kernel/module.c | 20 ++++----------
>> 6 files changed, 44 insertions(+), 48 deletions(-)
>
> After this one: (.config is attached).
...
Ouch.
Took me a while to find it. Patch 5 was repairing the issue again, and I tested
more thoroughly only with all 5 patches applied.
Juergen
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3743 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]
next prev parent reply other threads:[~2023-12-08 11:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-29 13:33 [PATCH v5 0/5] 86/paravirt: Get rid of paravirt patching Juergen Gross
2023-11-29 13:33 ` [PATCH v5 1/5] x86/paravirt: introduce ALT_NOT_XEN Juergen Gross
2023-12-14 11:36 ` [tip: x86/paravirt] x86/paravirt: Introduce ALT_NOT_XEN tip-bot2 for Juergen Gross
2023-11-29 13:33 ` [PATCH v5 2/5] x86/paravirt: move some functions and defines to alternative Juergen Gross
2023-12-14 11:36 ` [tip: x86/paravirt] x86/paravirt: Move some functions and defines to alternative.c tip-bot2 for Juergen Gross
2023-11-29 13:33 ` [PATCH v5 3/5] x86/alternative: add indirect call patching Juergen Gross
2023-12-06 11:06 ` Borislav Petkov
2023-12-30 11:31 ` [tip: x86/paravirt] x86/alternative: Correct feature bit debug output tip-bot2 for Borislav Petkov (AMD)
2023-11-29 13:33 ` [PATCH v5 4/5] x86/paravirt: switch mixed paravirt/alternative calls to alternative_2 Juergen Gross
2023-12-06 11:08 ` Borislav Petkov
2023-12-08 11:53 ` Juergen Gross [this message]
2023-12-08 12:57 ` Borislav Petkov
2023-12-08 15:16 ` Juergen Gross
2023-11-29 13:33 ` [PATCH v5 5/5] x86/paravirt: remove no longer needed paravirt patching code Juergen Gross
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=cb98079d-1cbe-4034-8c55-5e71b790a887@suse.com \
--to=jgross@suse.com \
--cc=akaher@vmware.com \
--cc=amakhalov@vmware.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=pv-drivers@vmware.com \
--cc=tglx@linutronix.de \
--cc=virtualization@lists.linux.dev \
--cc=x86@kernel.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®