[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH V3 01/16] machine: anon-alloc option
From: |
Peter Xu |
Subject: |
Re: [PATCH V3 01/16] machine: anon-alloc option |
Date: |
Fri, 1 Nov 2024 10:06:52 -0400 |
On Fri, Nov 01, 2024 at 06:47:40AM -0700, Steve Sistare wrote:
> @@ -1849,6 +1852,35 @@ static void ram_block_add(RAMBlock *new_block, Error
> **errp)
> qemu_mutex_unlock_ramlist();
> return;
> }
> +
> + } else if (current_machine->anon_alloc == ANON_ALLOC_OPTION_MEMFD &&
> + !object_dynamic_cast(new_block->mr->parent_obj.parent,
> + TYPE_MEMORY_BACKEND)) {
Steve,
I think I'll postpone a few days on reading the whole series for other
things.. as I think this will miss 9.2 anyway (but we can see whether we
can still get it in early 10.0).
Said that, I want to mention this early that there was concern raised on
using block->mr->parent_obj.parent here to detect mem backends, which can
be error prone. Please have a look at the discussion in v2 for that.
https://lore.kernel.org/qemu-devel/Zv7C7MeVP2X8bEJU@x1n/
--
Peter Xu
- [PATCH V3 00/16] Live update: cpr-transfer, Steve Sistare, 2024/11/01
- [PATCH V3 01/16] machine: anon-alloc option, Steve Sistare, 2024/11/01
- Re: [PATCH V3 01/16] machine: anon-alloc option,
Peter Xu <=
- Re: [PATCH V3 01/16] machine: anon-alloc option, David Hildenbrand, 2024/11/04
- Re: [PATCH V3 01/16] machine: anon-alloc option, David Hildenbrand, 2024/11/04
- Re: [PATCH V3 01/16] machine: anon-alloc option, Steven Sistare, 2024/11/04
- Re: [PATCH V3 01/16] machine: anon-alloc option, David Hildenbrand, 2024/11/04
- Re: [PATCH V3 01/16] machine: anon-alloc option, Peter Xu, 2024/11/04
- Re: [PATCH V3 01/16] machine: anon-alloc option, David Hildenbrand, 2024/11/04
- Re: [PATCH V3 01/16] machine: anon-alloc option, Peter Xu, 2024/11/04
- Re: [PATCH V3 01/16] machine: anon-alloc option, David Hildenbrand, 2024/11/04
- Re: [PATCH V3 01/16] machine: anon-alloc option, Steven Sistare, 2024/11/04
- Re: [PATCH V3 01/16] machine: anon-alloc option, David Hildenbrand, 2024/11/04