backends/hostmem: Make QOM types and properties unconditional
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 18 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | backends/hostmem: Drop redundant validation of property "size"backends/ backends/ backends/ +2 more | +0 | 5 replies | |
| 2/7 | backends/hostmem-file: Drop useless validation of property "mem-path"backends/ | +0 | 2 replies | |
| 3/7 | backends/hostmem: Improve error reporting when method alloc() failsbackends/ backends/ | +4 | 2 replies | |
| 4/7 | backends/hostmem-epc: Register QOM type unconditionallybackends/ | +1 | 2 replies | |
| 5/7 | backends/hostmem-memfd: Register QOM type unconditionallybackends/ | +1 | 2 replies | |
| 6/7 | util/memfd: Improve error message when memfd_create() failsutil/ | +4 | 2 replies | |
| 7/7 | backends/hostmem-memfd: Add huge TLB properties unconditionallybackends/ | +12 | 2 replies |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Daniel P. Berrangé | Mark Cave-Ayland |
|---|---|---|
| 1/7 | R-b | R-b |
| 2/7 | R-b | R-b |
| 3/7 | R-b | R-b |
| 4/7 | R-b | R-b |
| 5/7 | R-b | R-b |
| 6/7 | R-b | R-b |
| 7/7 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/7] backends/hostmem: Make QOM types and properties unconditional
I recently checked qom introspection for dangling child and link types, and found one from sgx-epc to memory-backend-epc. I reported
Subject: qemu-system-x86_64 appears to have sgx-epc, but not memory-backend-epc
Date: Thu, 22 Oct 2026 14:58:16 +0200
Message-ID: <[email protected]>Daniel identified why: we register QOM type "memory-backend-epc" conditionally. He called that "rather dubious". We found similar conditional registration of "hostmem-memfd".
This series makes them both unconditional, along with a two class properties. It also improves error reporting.
Markus Armbruster (7):
backends/hostmem: Drop redundant validation of property "size" backends/hostmem-file: Drop useless validation of property "mem-path" backends/hostmem: Improve error reporting when method alloc() fails backends/hostmem-epc: Register QOM type unconditionally backends/hostmem-memfd: Register QOM type unconditionally util/memfd: Improve error message when memfd_create() fails backends/hostmem-memfd: Add huge TLB properties unconditionally
backends/hostmem-epc.c | 12 +----------- backends/hostmem-file.c | 9 --------- backends/hostmem-memfd.c | 35 +++++++++++++---------------------- backends/hostmem-ram.c | 5 ----- backends/hostmem-shm.c | 7 +------ backends/hostmem.c | 3 +++ util/memfd.c | 5 ++++- 7 files changed, 22 insertions(+), 54 deletions(-)
Signature · 1 line
2.55.0