> On Dec 16, 2021, at 4:55 AM, Stefan Hajnoczi wrote:
>
> On Wed, Dec 15, 2021 at 10:35:29AM -0500, Jagannathan Raman wrote:
>> +static void vfu_object_init_ctx(VfuObject *o, Error **errp)
>> +{
>> +ERRP_GUARD();
>> +
>> +if (o->vfu_ctx || !o->socket || !o->device ||
>> +!p
On Wed, Dec 15, 2021 at 10:35:29AM -0500, Jagannathan Raman wrote:
> +static void vfu_object_init_ctx(VfuObject *o, Error **errp)
> +{
> +ERRP_GUARD();
> +
> +if (o->vfu_ctx || !o->socket || !o->device ||
> +!phase_check(PHASE_MACHINE_READY)) {
> +return;
> +}
> +
>
create a context with the vfio-user library to run a PCI device
Signed-off-by: Elena Ufimtseva
Signed-off-by: John G Johnson
Signed-off-by: Jagannathan Raman
---
hw/remote/vfio-user-obj.c | 69 +++
1 file changed, 69 insertions(+)
diff --git a/hw/remote/vfi