On Thu, Jul 11, 2024 at 2:53 PM Yichen Wang <yichen.w...@bytedance.com> wrote:
> diff --git a/migration/options.c b/migration/options.c > index 645f55003d..f839493016 100644 > --- a/migration/options.c > +++ b/migration/options.c > @@ -29,6 +29,7 @@ > #include "ram.h" > #include "options.h" > #include "sysemu/kvm.h" > +#include <cpuid.h> > > /* Maximum migrate downtime set to 2000 seconds */ > #define MAX_MIGRATE_DOWNTIME_SECONDS 2000 > @@ -162,6 +163,10 @@ Property migration_properties[] = { > DEFINE_PROP_ZERO_PAGE_DETECTION("zero-page-detection", MigrationState, > parameters.zero_page_detection, > ZERO_PAGE_DETECTION_MULTIFD), > + /* DEFINE_PROP_ARRAY("dsa-accel-path", MigrationState, x, */ > + /* parameters.dsa_accel_path, qdev_prop_string, char > *), */ > + /* DEFINE_PROP_STRING("dsa-accel-path", MigrationState, */ > + /* parameters.dsa_accel_path), */ > > /* Migration capabilities */ > DEFINE_PROP_MIG_CAP("x-xbzrle", MIGRATION_CAPABILITY_XBZRLE), I changed the dsa-accel-path to be a ['str'], i.e. strList* in C. However, I am having a hard time about how to define the proper properties here. I don't know what MARCO to use and I can't find good examples... Need some guidance about how to proceed. Basically I will need this to pass something like '-global migration.dsa-accel-path="/dev/dsa/wq0.0"' in cmdline, or "migrate_set_parameter dsa-accel-path" in QEMU CLI. Don't know how to pass strList there. Thanks very much!