On 6/3/25 16:17, Steven Sistare wrote:
On 6/3/2025 10:09 AM, Steven Sistare wrote:
On 6/3/2025 7:57 AM, Duan, Zhenzhong wrote:
-----Original Message-----
From: Steve Sistare <steven.sist...@oracle.com>
Subject: [PATCH V4 09/43] vfio/container: register container for cpr
Register a legacy container for cpr-transfer, replacing the generic CPR
register call with a more specific legacy container register call. Add a
blocker if the kernel does not support VFIO_UPDATE_VADDR or
VFIO_UNMAP_ALL.
This is mostly boiler plate. The fields to to saved and restored are added
in subsequent patches.
Signed-off-by: Steve Sistare <steven.sist...@oracle.com>
---
include/hw/vfio/vfio-container.h | 2 ++
include/hw/vfio/vfio-cpr.h | 15 +++++++++
hw/vfio/container.c | 6 ++--
hw/vfio/cpr-legacy.c | 69
++++++++++++++++++++++++++++++++++++++++
hw/vfio/cpr.c | 5 ++-
hw/vfio/meson.build | 1 +
6 files changed, 92 insertions(+), 6 deletions(-)
create mode 100644 hw/vfio/cpr-legacy.c
diff --git a/include/hw/vfio/vfio-container.h b/include/hw/vfio/vfio-container.h
index afc498d..21e5807 100644
--- a/include/hw/vfio/vfio-container.h
+++ b/include/hw/vfio/vfio-container.h
@@ -10,6 +10,7 @@
#define HW_VFIO_CONTAINER_H
#include "hw/vfio/vfio-container-base.h"
+#include "hw/vfio/vfio-cpr.h"
Now that we have this change, may we remove #include of vfio-cpr.h in
hw/vfio/container.c?
Maybe this belong to patch8?
Yes, thanks.
Patch 8 should not add #include of vfio-cpr.h in hw/vfio/container.c
However, I see that Cedric has staged these patches in vfio-next.
We can make these tweaks in a future patch.
It is fine. you can resend. Let's wait first for Michael's feedback on the
pci and vfio-pci reset handlers. This is what is blocking me from sending
a PR.
Thanks,
C.