[PATCH] machine: Provide a description for aux-ram-share property

Peter Xu posted 1 patch 3 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251105191120.3820787-1-peterx@redhat.com
Maintainers: Eduardo Habkost <eduardo@habkost.net>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Yanan Wang <wangyanan55@huawei.com>, Zhao Liu <zhao1.liu@intel.com>
There is a newer version of this series
hw/core/machine.c | 2 ++
1 file changed, 2 insertions(+)
[PATCH] machine: Provide a description for aux-ram-share property
Posted by Peter Xu 3 months ago
It was forgotten when being introduced in commit 91792807d1 ("machine:
aux-ram-share option").

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Xu <peterx@redhat.com>
---
 hw/core/machine.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/core/machine.c b/hw/core/machine.c
index 0580550e12..8dd8ce4cac 100644
--- a/hw/core/machine.c
+++ b/hw/core/machine.c
@@ -1200,6 +1200,8 @@ static void machine_class_init(ObjectClass *oc, const void *data)
     object_class_property_add_bool(oc, "aux-ram-share",
                                    machine_get_aux_ram_share,
                                    machine_set_aux_ram_share);
+    object_class_property_set_description(oc, "aux-ram-share",
+        "Use anonymous shared memory for auxilliary guest RAMs");
 #endif
 
     object_class_property_add_bool(oc, "usb",
-- 
2.50.1
Re: [PATCH] machine: Provide a description for aux-ram-share property
Posted by Fabiano Rosas 2 months, 2 weeks ago
Peter Xu <peterx@redhat.com> writes:

> It was forgotten when being introduced in commit 91792807d1 ("machine:
> aux-ram-share option").
>
> Reported-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Peter Xu <peterx@redhat.com>
> ---
>  hw/core/machine.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/hw/core/machine.c b/hw/core/machine.c
> index 0580550e12..8dd8ce4cac 100644
> --- a/hw/core/machine.c
> +++ b/hw/core/machine.c
> @@ -1200,6 +1200,8 @@ static void machine_class_init(ObjectClass *oc, const void *data)
>      object_class_property_add_bool(oc, "aux-ram-share",
>                                     machine_get_aux_ram_share,
>                                     machine_set_aux_ram_share);
> +    object_class_property_set_description(oc, "aux-ram-share",
> +        "Use anonymous shared memory for auxilliary guest RAMs");

s/auxilliary/auxiliary/

>  #endif
>  
>      object_class_property_add_bool(oc, "usb",