vfio: register container for cpr

Define entry points to perform per-container cpr-specific initialization
and teardown.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
Steve Sistare 2024-02-22 09:28:37 -08:00 committed by Cédric Le Goater
parent cbccded4a2
commit d9fa4223b3
5 changed files with 39 additions and 1 deletions

19
hw/vfio/cpr.c Normal file
View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2021-2024 Oracle and/or its affiliates.
*
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*/
#include "qemu/osdep.h"
#include "hw/vfio/vfio-common.h"
#include "qapi/error.h"
int vfio_cpr_register_container(VFIOContainerBase *bcontainer, Error **errp)
{
return 0;
}
void vfio_cpr_unregister_container(VFIOContainerBase *bcontainer)
{
}