From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Michael Tokarev <mjt@tls.msk.ru>, qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Eduardo Habkost <eduardo@habkost.net>,
"Michael S. Tsirkin" <mst@redhat.com>,
qemu-trivial@nongnu.org,
Richard Henderson <richard.henderson@linaro.org>,
Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Subject: Re: [PATCH] hw/i386/sgx: Use QDev API
Date: Thu, 15 Feb 2024 15:07:33 +0100 [thread overview]
Message-ID: <3da80312-81e7-49b7-a6c5-479309d79ddc@linaro.org> (raw)
In-Reply-To: <05ef6ee2-ef3a-4137-994f-4a548b587d0b@tls.msk.ru>
On 15/2/24 10:31, Michael Tokarev wrote:
> 13.02.2024 10:16, Philippe Mathieu-Daudé :
>> Prefer the QDev API over the low level QOM one.
>> No logical change intended.
> ...
>> /* set the numa node property for sgx epc object */
>> - object_property_set_uint(obj, SGX_EPC_NUMA_NODE_PROP,
>> list->value->node,
>> - &error_fatal);
>> - object_property_set_bool(obj, "realized", true, &error_fatal);
>> - object_unref(obj);
>> + object_property_set_uint(OBJECT(dev), SGX_EPC_NUMA_NODE_PROP,
>> + list->value->node, &error_fatal);
>> + qdev_realize_and_unref(dev, &error_fatal);
>
> This does not work. Here's the function prototype:
>
> bool qdev_realize_and_unref(DeviceState *dev, BusState *bus, Error
> **errp);
I was surprised because all my local tests passed, but then I
realized 'config SGX depends on KVM' and I'm on Darwin... Sorry.
>
> I'd say a v2 is in order.
>
> /mjt
>
prev parent reply other threads:[~2024-02-15 14:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-13 7:16 [PATCH] hw/i386/sgx: Use QDev API Philippe Mathieu-Daudé
2024-02-15 9:22 ` Michael Tokarev
2024-02-15 9:31 ` Michael Tokarev
2024-02-15 14:07 ` Philippe Mathieu-Daudé [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3da80312-81e7-49b7-a6c5-479309d79ddc@linaro.org \
--to=philmd@linaro.org \
--cc=eduardo@habkost.net \
--cc=marcel.apfelbaum@gmail.com \
--cc=mjt@tls.msk.ru \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).