[PATCH] bpf: add the addr_space_cast instruction
Project / Subsystem
binutils / bpf
Date
2026-09-29
Proposer
Vineet Gupta <vineet.gupta@linux.dev>
Source type
public_inbox
Consensus
Proposed
Sentiment
7/10
Technical tradeoffs
- • Spelling out instruction variants to avoid opcode conflicts simplifies implementation but might be less DRY than a more generalized approach.
- • The patch prioritizes simplicity by directly implementing the two required combinations.
All attributes
- project
- binutils
- subsystem
- bpf
- patch_id
- —
- discussion_id
- 20260929183603.687571-1-vineet.gupta@linux.dev
- source_type
- public_inbox
- title
- [PATCH] bpf: add the addr_space_cast instruction
- headline
- bpf: add the addr_space_cast instruction
- tldr
- Adds the addr_space_cast BPF instruction to gas for supporting BPF arenas.
- proposer
- Vineet Gupta <vineet.gupta@linux.dev>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- 7
- technical_tradeoffs
-
- • Spelling out instruction variants to avoid opcode conflicts simplifies implementation but might be less DRY than a more generalized approach.
- • The patch prioritizes simplicity by directly implementing the two required combinations.
- series_id
- —
- series_role
- standalone
- series_parts
- []
- tags
-
- • bpf
- • gas
- • instruction-set
- bugzilla_url
- —
- date
- 2026-09-29T00:00:00.000Z
[PATCH] bpf: add the addr_space_cast instruction
This patch introduces the addr_space_cast BPF instruction to the GNU Assembler (gas). This instruction is necessary for supporting BPF arenas, as it allows for distinct address spaces (generic and arena) to be encoded within an immediate value. To simplify implementation, the two combinations are spelled out as literal template text, preceding the ‘mov’ instruction to avoid opcode conflicts.