qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Fix a regression with hugetlbfs for shared memory in CoCo VMs
@ 2025-10-23  9:55 Chenyi Qiang
  2025-10-23  9:55 ` [PATCH v2 1/2] ram-block-attributes: Avoid the overkill of shared memory with hugetlbfs backend Chenyi Qiang
  2025-10-23  9:55 ` [PATCH v2 2/2] ram-block-attributes: Unify the retrieval of the block size Chenyi Qiang
  0 siblings, 2 replies; 9+ messages in thread
From: Chenyi Qiang @ 2025-10-23  9:55 UTC (permalink / raw)
  To: Peter Xu, David Hildenbrand, Alexey Kardashevskiy, Paolo Bonzini,
	Philippe Mathieu-Daudé
  Cc: Chenyi Qiang, qemu-devel, Gao Chao, Li Xiaoyao

In CoCo VMs, although the hugepage for private memory is not supported yet, Users
can still specify hugetlbfs backend for shared memory. However, due to the
recent changes of ram-block-attributes, it triggers an assertion failure when
getting the block size because the page size of ram_block is different from the
host page size. This patch series fixes this regression and clean up the code to
unify the retrieval of block size.

Chenyi Qiang (2):
  ram-block-attributes: Avoid the overkill of shared memory with
    hugetlbfs backend
  ram-block-attributes: Unify the retrieval of the block size

 system/ram-block-attributes.c | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

-- 
2.43.5



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

end of thread, other threads:[~2025-10-24  0:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-23  9:55 [PATCH v2 0/2] Fix a regression with hugetlbfs for shared memory in CoCo VMs Chenyi Qiang
2025-10-23  9:55 ` [PATCH v2 1/2] ram-block-attributes: Avoid the overkill of shared memory with hugetlbfs backend Chenyi Qiang
2025-10-23 10:16   ` David Hildenbrand
2025-10-23 13:47     ` Peter Xu
2025-10-24  0:16   ` Xiaoyao Li
2025-10-23  9:55 ` [PATCH v2 2/2] ram-block-attributes: Unify the retrieval of the block size Chenyi Qiang
2025-10-23 10:17   ` David Hildenbrand
2025-10-23 11:52     ` Chenyi Qiang
2025-10-24  0:16   ` Xiaoyao Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).