<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/arch/x86/include/asm/text-patching.h, branch v6.19.11</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v6.19.11</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v6.19.11'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2025-08-18T12:23:04+00:00</updated>
<entry>
<title>KVM: x86: Implement test_cc() in C</title>
<updated>2025-08-18T12:23:04+00:00</updated>
<author>
<name>Peter Zijlstra</name>
<email>peterz@infradead.org</email>
</author>
<published>2023-12-01T17:53:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=0cb6f1e436accba7882bb3115408d1474c1e14af'/>
<id>urn:sha1:0cb6f1e436accba7882bb3115408d1474c1e14af</id>
<content type='text'>
Current test_cc() uses the fastop infrastructure to test flags using
SETcc instructions. However, int3_emulate_jcc() already fully
implements the flags-&gt;CC mapping, use that.

Removes a pile of gnarly asm.

Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Acked-by: Sean Christopherson &lt;seanjc@google.com&gt;
Link: https://lkml.kernel.org/r/20250714103439.637049932@infradead.org
</content>
</entry>
<entry>
<title>x86/alternatives: Rename 'apply_relocation()' to 'text_poke_apply_relocation()'</title>
<updated>2025-04-11T09:01:35+00:00</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@kernel.org</email>
</author>
<published>2025-04-11T05:41:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=023f42dd59203be8ad2fc0574af32d3b4ad041ec'/>
<id>urn:sha1:023f42dd59203be8ad2fc0574af32d3b4ad041ec</id>
<content type='text'>
Join the text_poke_*() API namespace.

Signed-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;
Cc: Juergen Gross &lt;jgross@suse.com&gt;
Cc: "H . Peter Anvin" &lt;hpa@zytor.com&gt;
Cc: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;
Link: https://lore.kernel.org/r/20250411054105.2341982-52-mingo@kernel.org
</content>
</entry>
<entry>
<title>x86/alternatives: Rename 'POKE_MAX_OPCODE_SIZE' to 'TEXT_POKE_MAX_OPCODE_SIZE'</title>
<updated>2025-04-11T09:01:35+00:00</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@kernel.org</email>
</author>
<published>2025-04-11T05:40:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3c8454dfc9143c992375a166a620ea3d62c3e434'/>
<id>urn:sha1:3c8454dfc9143c992375a166a620ea3d62c3e434</id>
<content type='text'>
Join the TEXT_POKE_ namespace.

Signed-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;
Cc: Juergen Gross &lt;jgross@suse.com&gt;
Cc: "H . Peter Anvin" &lt;hpa@zytor.com&gt;
Cc: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;
Link: https://lore.kernel.org/r/20250411054105.2341982-47-mingo@kernel.org
</content>
</entry>
<entry>
<title>x86/alternatives: Rename 'text_poke_sync()' to 'smp_text_poke_sync_each_cpu()'</title>
<updated>2025-04-11T09:01:34+00:00</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@kernel.org</email>
</author>
<published>2025-04-11T05:40:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=6e4955a9d73ebdc8496e6bff7f6d2bf83c01959f'/>
<id>urn:sha1:6e4955a9d73ebdc8496e6bff7f6d2bf83c01959f</id>
<content type='text'>
Unlike sync_core(), text_poke_sync() is a very heavy operation, as
it sends an IPI to every online CPU in the system and waits for
completion.

Reflect this in the name.

Signed-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;
Cc: Juergen Gross &lt;jgross@suse.com&gt;
Cc: "H . Peter Anvin" &lt;hpa@zytor.com&gt;
Cc: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;
Link: https://lore.kernel.org/r/20250411054105.2341982-41-mingo@kernel.org
</content>
</entry>
<entry>
<title>x86/alternatives: Rename 'text_poke_queue()' to 'smp_text_poke_batch_add()'</title>
<updated>2025-04-11T09:01:33+00:00</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@kernel.org</email>
</author>
<published>2025-04-11T05:40:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=732c7c33a0c17f68393497766445cbd2878ee95e'/>
<id>urn:sha1:732c7c33a0c17f68393497766445cbd2878ee95e</id>
<content type='text'>
This name is actively confusing as well, because the simple text_poke*()
APIs use MM-switching based code patching, while text_poke_queue()
is part of the INT3 based text_poke_int3_*() machinery that is an
additional layer of functionality on top of regular text_poke*() functionality.

Rename it to smp_text_poke_batch_add() to make it clear which layer
it belongs to.

Signed-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;
Cc: Juergen Gross &lt;jgross@suse.com&gt;
Cc: "H . Peter Anvin" &lt;hpa@zytor.com&gt;
Cc: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;
Link: https://lore.kernel.org/r/20250411054105.2341982-17-mingo@kernel.org
</content>
</entry>
<entry>
<title>x86/alternatives: Rename 'text_poke_finish()' to 'smp_text_poke_batch_finish()'</title>
<updated>2025-04-11T09:01:33+00:00</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@kernel.org</email>
</author>
<published>2025-04-11T05:40:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e8d7b8c2bbcd5e50c93902af4ba53029fc0497fc'/>
<id>urn:sha1:e8d7b8c2bbcd5e50c93902af4ba53029fc0497fc</id>
<content type='text'>
This name is actively confusing as well, because the simple text_poke*()
APIs use MM-switching based code patching, while text_poke_finish()
is part of the INT3 based text_poke_int3_*() machinery that is an
additional layer of functionality on top of regular text_poke*() functionality.

Rename it to smp_text_poke_batch_finish() to make it clear which layer
it belongs to.

Signed-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;
Cc: Juergen Gross &lt;jgross@suse.com&gt;
Cc: "H . Peter Anvin" &lt;hpa@zytor.com&gt;
Cc: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;
Link: https://lore.kernel.org/r/20250411054105.2341982-16-mingo@kernel.org
</content>
</entry>
<entry>
<title>x86/alternatives: Update comments in int3_emulate_push()</title>
<updated>2025-04-11T09:01:33+00:00</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@kernel.org</email>
</author>
<published>2025-04-11T05:40:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=5224f09a7b57fcf2024245d89dcb26b0756fb1c8'/>
<id>urn:sha1:5224f09a7b57fcf2024245d89dcb26b0756fb1c8</id>
<content type='text'>
The idtentry macro in entry_64.S hasn't had a create_gap
option for 5 years - update the comment.

(Also clean up the entire comment block while at it.)

Signed-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;
Cc: Juergen Gross &lt;jgross@suse.com&gt;
Cc: "H . Peter Anvin" &lt;hpa@zytor.com&gt;
Cc: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;
Link: https://lore.kernel.org/r/20250411054105.2341982-13-mingo@kernel.org
</content>
</entry>
<entry>
<title>x86/alternatives: Rename 'poking_addr' to 'text_poke_mm_addr'</title>
<updated>2025-04-11T09:01:33+00:00</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@kernel.org</email>
</author>
<published>2025-04-11T05:40:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=da364fc547897ed98fbf2192d86b5242439d7762'/>
<id>urn:sha1:da364fc547897ed98fbf2192d86b5242439d7762</id>
<content type='text'>
Put it into the text_poke_* namespace of &lt;asm/text-patching.h&gt;.

Signed-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;
Cc: Juergen Gross &lt;jgross@suse.com&gt;
Cc: "H . Peter Anvin" &lt;hpa@zytor.com&gt;
Cc: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;
Link: https://lore.kernel.org/r/20250411054105.2341982-10-mingo@kernel.org
</content>
</entry>
<entry>
<title>x86/alternatives: Rename 'poking_mm' to 'text_poke_mm'</title>
<updated>2025-04-11T09:01:33+00:00</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@kernel.org</email>
</author>
<published>2025-04-11T05:40:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=a5c832e0476e461af46a0aa9bda43a573adbe63f'/>
<id>urn:sha1:a5c832e0476e461af46a0aa9bda43a573adbe63f</id>
<content type='text'>
Put it into the text_poke_* namespace of &lt;asm/text-patching.h&gt;.

Signed-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;
Cc: Juergen Gross &lt;jgross@suse.com&gt;
Cc: "H . Peter Anvin" &lt;hpa@zytor.com&gt;
Cc: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;
Link: https://lore.kernel.org/r/20250411054105.2341982-9-mingo@kernel.org
</content>
</entry>
<entry>
<title>x86/alternatives: Rename 'poke_int3_handler()' to 'smp_text_poke_int3_handler()'</title>
<updated>2025-04-11T09:01:33+00:00</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@kernel.org</email>
</author>
<published>2025-04-11T05:40:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=5236b6a0fe921f5de53b8eeea2d8fdd6d643dd7f'/>
<id>urn:sha1:5236b6a0fe921f5de53b8eeea2d8fdd6d643dd7f</id>
<content type='text'>
All related functions in this subsystem already have a
text_poke_int3_ prefix - add it to the trap handler
as well.

Signed-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;
Cc: Juergen Gross &lt;jgross@suse.com&gt;
Cc: "H . Peter Anvin" &lt;hpa@zytor.com&gt;
Cc: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;
Link: https://lore.kernel.org/r/20250411054105.2341982-8-mingo@kernel.org
</content>
</entry>
</feed>
