All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/1] numa: add 'spm' option for Specific Purpose Memory
@ 2025-12-09  9:38 fanhuang
  2025-12-09  9:38 ` [PATCH v4 1/1] " fanhuang
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: fanhuang @ 2025-12-09  9:38 UTC (permalink / raw)
  To: qemu-devel, david, imammedo, jonathan.cameron
  Cc: Zhigang.Luo, Lianjie.Shi, FangSheng.Huang

Hi all,

This is v4 of the SPM (Specific Purpose Memory) patch. Thank you Jonathan
for the detailed review.

Changes in v4 (addressing Jonathan's feedback):
- Added architecture check: spm=on now reports error on non-x86 machines
- Simplified return logic in e820_update_entry_type() (return true/false directly)
- Changed 4GB boundary spanning from warn_report to error_report + exit
- Updated QAPI documentation to be architecture-agnostic (removed E820 reference)
- Removed unnecessary comments

Use case:
This feature allows passing EFI_MEMORY_SP (Specific Purpose Memory) from
host to guest VM, useful for memory reserved for specific PCI devices
(e.g., GPU memory via VFIO-PCI). The SPM memory appears as soft reserved
to the guest and is managed by device drivers rather than the OS memory
allocator.

Example usage:
  -object memory-backend-ram,size=8G,id=m0
  -object memory-backend-file,size=8G,id=m1,mem-path=/dev/dax0.0
  -numa node,nodeid=0,memdev=m0
  -numa node,nodeid=1,memdev=m1,spm=on

Please review. Thanks!

Best regards,
Jerry Huang

-- 
2.34.1



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2026-01-07  9:09 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-09  9:38 [PATCH v4 0/1] numa: add 'spm' option for Specific Purpose Memory fanhuang
2025-12-09  9:38 ` [PATCH v4 1/1] " fanhuang
2025-12-23  9:56   ` Jonathan Cameron via
2025-12-23 10:01     ` David Hildenbrand (Red Hat)
2025-12-26  7:15       ` Huang, FangSheng (Jerry)
2025-12-26 22:46         ` Alistair Popple
2025-12-30 20:09         ` David Hildenbrand (Red Hat)
2026-01-04 10:43           ` Huang, FangSheng (Jerry)
2025-12-29 18:26 ` [PATCH v4 0/1] " Gregory Price
2025-12-30  2:55   ` Huang, FangSheng (Jerry)
2025-12-30 14:06     ` Gregory Price
2025-12-30 20:15       ` David Hildenbrand (Red Hat)
2025-12-30 23:03         ` Gregory Price
2026-01-02 13:09 ` Igor Mammedov
2026-01-02 16:28   ` Gregory Price
2026-01-02 16:30 ` Gregory Price
2026-01-05 15:29   ` David Hildenbrand (Red Hat)
2026-01-07  9:03     ` Huang, FangSheng (Jerry)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.