qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 80/86] hostmem: introduce "prealloc-threads" property


From: Paolo Bonzini
Subject: Re: [PATCH v2 80/86] hostmem: introduce "prealloc-threads" property
Date: Wed, 15 Jan 2020 17:03:08 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1

On 15/01/20 16:07, Igor Mammedov wrote:
> +        static GlobalProperty p[] = {
> +            {"memory-backend", "prealloc-threads", NULL},
> +        };
> +
> +        p[0].value = g_strdup_printf("%d", current_machine->smp.cpus);
> +        compat_props_add(machine_class->compat_props, p, G_N_ELEMENTS(p));
> +    }
> +

object_register_sugar_prop might be slightly cleaner.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]