Message ID | 25fe2a1f9840ac0e6ca962b218013da0d1a46982.1579055705.git-series.marmarek@invisiblethingslab.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Add support for qemu-xen runnning in a Linux-based stubdomain. | expand |
On Tue, Jan 14, 2020 at 9:40 PM Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> wrote: > > Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> > Reviewed-by: Jason Andryuk <jandryuk@gmail.com> > --- > docs/man/xl.cfg.5.pod.in | 23 +++++++++++++++++++---- > tools/xl/xl_parse.c | 7 +++++++ > 2 files changed, 26 insertions(+), 4 deletions(-) > > diff --git a/docs/man/xl.cfg.5.pod.in b/docs/man/xl.cfg.5.pod.in > index 245d3f9..6ae0bd0 100644 > --- a/docs/man/xl.cfg.5.pod.in > +++ b/docs/man/xl.cfg.5.pod.in > @@ -2720,10 +2720,25 @@ model which they were installed with. > > =item B<device_model_override="PATH"> > > -Override the path to the binary to be used as the device-model. The > -binary provided here MUST be consistent with the > -B<device_model_version> which you have specified. You should not > -normally need to specify this option. > +Override the path to the binary to be used as the device-model running in > +toolstack domain. The binary provided here MUST be consistent with the > +B<device_model_version> which you have specified. You should not normally need > +to specify this option. > + > +=item B<stubdomain_kernel="PATH"> > + > +Override the path to the kernel image used as device-model stubdomain. > +The binary provided here MUST be consistent with the > +B<device_model_version> which you have specified. > +In case of B<qemu-xen-traditional> it is expected to be MiniOS-based stubdomain > +image, in case of B<qemu-xen> it is expected to be Linux-based stubdomain > +kernel. > + > +=item B<stubdomain_ramdisk="PATH"> > + > +Override the path to the ramdisk image used as device-model stubdomain. > +The binary provided here is to be used by a kernel pointed by B<stubdomain_kernel>. > +It is known to be used only by Linux-based stubdomain kernel. Also: +=item B<stubdomain_memory=MBYTES> + +Start the stubdomain with MBYTES megabytes of RAM. Regards, Jason > =item B<device_model_stubdomain_override=BOOLEAN> > > diff --git a/tools/xl/xl_parse.c b/tools/xl/xl_parse.c > index b881184..fc5dd65 100644 > --- a/tools/xl/xl_parse.c > +++ b/tools/xl/xl_parse.c > @@ -2525,6 +2525,13 @@ skip_usbdev: > xlu_cfg_replace_string(config, "device_model_user", > &b_info->device_model_user, 0); > > + xlu_cfg_replace_string (config, "stubdomain_kernel", > + &b_info->stubdomain_kernel, 0); > + xlu_cfg_replace_string (config, "stubdomain_ramdisk", > + &b_info->stubdomain_ramdisk, 0); > + if (!xlu_cfg_get_long (config, "stubdomain_memory", &l, 0)) > + b_info->stubdomain_memkb = l * 1024; > + > #define parse_extra_args(type) \ > e = xlu_cfg_get_list_as_string_list(config, "device_model_args"#type, \ > &b_info->extra##type, 0); \ > -- > git-series 0.9.1
On Mon, Jan 20, 2020 at 02:41:07PM -0500, Jason Andryuk wrote: > On Tue, Jan 14, 2020 at 9:40 PM Marek Marczykowski-Górecki > <marmarek@invisiblethingslab.com> wrote: > > > > Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> > > Reviewed-by: Jason Andryuk <jandryuk@gmail.com> > > --- > > docs/man/xl.cfg.5.pod.in | 23 +++++++++++++++++++---- > > tools/xl/xl_parse.c | 7 +++++++ > > 2 files changed, 26 insertions(+), 4 deletions(-) > > > > diff --git a/docs/man/xl.cfg.5.pod.in b/docs/man/xl.cfg.5.pod.in > > index 245d3f9..6ae0bd0 100644 > > --- a/docs/man/xl.cfg.5.pod.in > > +++ b/docs/man/xl.cfg.5.pod.in > > @@ -2720,10 +2720,25 @@ model which they were installed with. > > > Also: > > +=item B<stubdomain_memory=MBYTES> > + > +Start the stubdomain with MBYTES megabytes of RAM. Added, together with default value.
On Tue, Jan 21, 2020 at 4:22 PM Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> wrote: > > On Mon, Jan 20, 2020 at 02:41:07PM -0500, Jason Andryuk wrote: > > On Tue, Jan 14, 2020 at 9:40 PM Marek Marczykowski-Górecki > > <marmarek@invisiblethingslab.com> wrote: > > > > > > Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> > > > Reviewed-by: Jason Andryuk <jandryuk@gmail.com> > > > --- > > > docs/man/xl.cfg.5.pod.in | 23 +++++++++++++++++++---- > > > tools/xl/xl_parse.c | 7 +++++++ > > > 2 files changed, 26 insertions(+), 4 deletions(-) > > > > > > diff --git a/docs/man/xl.cfg.5.pod.in b/docs/man/xl.cfg.5.pod.in > > > index 245d3f9..6ae0bd0 100644 > > > --- a/docs/man/xl.cfg.5.pod.in > > > +++ b/docs/man/xl.cfg.5.pod.in > > > @@ -2720,10 +2720,25 @@ model which they were installed with. > > > > > Also: > > > > +=item B<stubdomain_memory=MBYTES> > > + > > +Start the stubdomain with MBYTES megabytes of RAM. > > Added, together with default value. Thanks. Good idea to add the default. Regards, Jason
diff --git a/docs/man/xl.cfg.5.pod.in b/docs/man/xl.cfg.5.pod.in index 245d3f9..6ae0bd0 100644 --- a/docs/man/xl.cfg.5.pod.in +++ b/docs/man/xl.cfg.5.pod.in @@ -2720,10 +2720,25 @@ model which they were installed with. =item B<device_model_override="PATH"> -Override the path to the binary to be used as the device-model. The -binary provided here MUST be consistent with the -B<device_model_version> which you have specified. You should not -normally need to specify this option. +Override the path to the binary to be used as the device-model running in +toolstack domain. The binary provided here MUST be consistent with the +B<device_model_version> which you have specified. You should not normally need +to specify this option. + +=item B<stubdomain_kernel="PATH"> + +Override the path to the kernel image used as device-model stubdomain. +The binary provided here MUST be consistent with the +B<device_model_version> which you have specified. +In case of B<qemu-xen-traditional> it is expected to be MiniOS-based stubdomain +image, in case of B<qemu-xen> it is expected to be Linux-based stubdomain +kernel. + +=item B<stubdomain_ramdisk="PATH"> + +Override the path to the ramdisk image used as device-model stubdomain. +The binary provided here is to be used by a kernel pointed by B<stubdomain_kernel>. +It is known to be used only by Linux-based stubdomain kernel. =item B<device_model_stubdomain_override=BOOLEAN> diff --git a/tools/xl/xl_parse.c b/tools/xl/xl_parse.c index b881184..fc5dd65 100644 --- a/tools/xl/xl_parse.c +++ b/tools/xl/xl_parse.c @@ -2525,6 +2525,13 @@ skip_usbdev: xlu_cfg_replace_string(config, "device_model_user", &b_info->device_model_user, 0); + xlu_cfg_replace_string (config, "stubdomain_kernel", + &b_info->stubdomain_kernel, 0); + xlu_cfg_replace_string (config, "stubdomain_ramdisk", + &b_info->stubdomain_ramdisk, 0); + if (!xlu_cfg_get_long (config, "stubdomain_memory", &l, 0)) + b_info->stubdomain_memkb = l * 1024; + #define parse_extra_args(type) \ e = xlu_cfg_get_list_as_string_list(config, "device_model_args"#type, \ &b_info->extra##type, 0); \