George Dunlap
2011-Feb-14 15:59 UTC
[Xen-devel] [PATCH] Documentation: Include cpupool example in install
xl cpupool-create at the moment requires a config file. Make sure to include the example config file in the install. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> diff -r 4ea36cce2519 -r e66f078e198d tools/examples/Makefile --- a/tools/examples/Makefile Mon Feb 14 09:10:22 2011 +0000 +++ b/tools/examples/Makefile Mon Feb 14 15:59:29 2011 +0000 @@ -22,6 +22,7 @@ XEN_CONFIGS += xend-pci-quirks.sxp XEN_CONFIGS += xend-pci-permissive.sxp XEN_CONFIGS += xl.conf +XEN_CONFIGS += cpupool .PHONY: all all: _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
André Przywara
2011-Feb-15 00:28 UTC
Re: [Xen-devel] [PATCH] Documentation: Include cpupool example in install
Am 14.02.2011 16:59, schrieb George Dunlap:> xl cpupool-create at the moment requires a config file. Make > sure to include the example config file in the install.Good point. Btw: When I did some experiments with cpupools, I couldn''t create the cpupool config file on the fly and pipe it to the xl cpupool-create command, as it: a) explicitly checks for a regular file to be named (and doesn''t handle ''-'' or can cope with /dev/stdin) b) stats the file to learn the file size (requiring this to be a seekable file, that''s why check a) These are restrictions which apply to guest config files, too, as they use the same functionality. Is this just a limit in the implementation or is the requirement for a regular on-disk file there for a reason? I could easily create a patch to do away with these restrictions (after the release), are there any arguments against this? Regards, Andre. -- Andre Przywara AMD-Operating System Research Center (OSRC), Dresden, Germany _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Jackson
2011-Feb-15 15:14 UTC
Re: [Xen-devel] [PATCH] Documentation: Include cpupool example in install
André Przywara writes ("Re: [Xen-devel] [PATCH] Documentation: Include cpupool example in install"):> Is this just a limit in the implementation or is the requirement for a > regular on-disk file there for a reason?It''s a limit in the implementation. We try to read the config file into a char array in memory, and that''s most easily done by stat/malloc/fread. For a domain, the config file is used both immediately when creating the domain (being parsed by being fed to the flex bytearray scanner entrypoint) but also stored for use when the domain is migrated/saved.> I could easily create a patch to do away with these restrictions (after > the release), are there any arguments against this?No, that would be fine. The right answer is probably somewhere around libxl_read_file_contents. Perhaps we need libxl_read_fd_contents which reallocs. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Jackson
2011-Feb-15 19:39 UTC
Re: [Xen-devel] [PATCH] Documentation: Include cpupool example in install
George Dunlap writes ("[Xen-devel] [PATCH] Documentation: Include cpupool example in install"):> xl cpupool-create at the moment requires a config file. Make > sure to include the example config file in the install. > > Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>Applied, thanks. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel