[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/5] cxl/type3: Expose ct3 functions so that inheriters can c
From: |
Gregory Price |
Subject: |
Re: [PATCH 3/5] cxl/type3: Expose ct3 functions so that inheriters can call them |
Date: |
Mon, 4 Sep 2023 07:11:44 -0400 |
On Tue, Sep 05, 2023 at 10:59:15AM +0200, Philippe Mathieu-Daudé wrote:
> Hi Gregory,
>
> On 1/9/23 03:29, Gregory Price wrote:
> > For devices built on top of ct3, we need the init, realize, and
> > exit functions exposed to correctly start up and tear down.
>
> You shouldn't need this. Your device class can inherit from
> the CT3 base class by setting its .parent to TYPE_CXL_TYPE3:
>
realized this after the fact when testing and patching, forgot to remove
it, good eye. Still learning QEMU internals.
>
> You can see some documentation about QOM here:
> https://qemu-project.gitlab.io/qemu/devel/qom.html
> But still you'll have to look at examples in the tree.
>
>
Thanks!
Gregory