Langsdorf, Mark
2008-Sep-18 18:10 UTC
[Xen-devel] Documentation for adding a config file platform parameter
Is there any documentation on how to add a new platform parameter to a guest config file? I looked around on xensource.com a bit and searched through the email lists, but nothing obvious came up. I did figure out how to add one to the python files for xend, but I can''t figure out how the python files take the parsed data and passes it into the hypervisor. Any pointers would be appreciated. Thank you. -Mark Langsdorf Operating System Research Center AMD _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2008-Sep-18 18:22 UTC
Re: [Xen-devel] Documentation for adding a config file platform parameter
It''s done ad hoc. Do you actually want a new HVM_PARAM_foo at the hypervisor level? -- Keir On 18/9/08 19:10, "Langsdorf, Mark" <mark.langsdorf@amd.com> wrote:> Is there any documentation on how to add a new > platform parameter to a guest config file? I > looked around on xensource.com a bit and searched > through the email lists, but nothing obvious came > up. > > I did figure out how to add one to the python > files for xend, but I can''t figure out how the > python files take the parsed data and passes it > into the hypervisor. > > Any pointers would be appreciated. Thank you. > > -Mark Langsdorf > Operating System Research Center > AMD > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Langsdorf, Mark
2008-Sep-18 18:26 UTC
RE: [Xen-devel] Documentation for adding a config file platform parameter
> It''s done ad hoc. Do you actually want a new > HVM_PARAM_foo at the hypervisor level?Thanks for the quick response. We''re adding a feature that needs a user defined parameter to be placed in the VMCB for each guest. This parameter can be different for each guest. It looked to me like that was a platform parameter, but maybe it should be something else. At any rate, if I add a new key to the config file (call it ''svm_new_feat''), how do I get the value of svm_new_feat assigned to the integer value of SVM_PARAM_new_feat inside of Xen? -Mark Langsdorf Operating System Research Center AMD> On 18/9/08 19:10, "Langsdorf, Mark" <mark.langsdorf@amd.com> wrote: > > > Is there any documentation on how to add a new > > platform parameter to a guest config file? I > > looked around on xensource.com a bit and searched > > through the email lists, but nothing obvious came > > up. > > > > I did figure out how to add one to the python > > files for xend, but I can''t figure out how the > > python files take the parsed data and passes it > > into the hypervisor. > > > > Any pointers would be appreciated. Thank you. > > > > -Mark Langsdorf > > Operating System Research Center > > AMD > > > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2008-Sep-18 18:34 UTC
Re: [Xen-devel] Documentation for adding a config file platform parameter
On 18/9/08 19:26, "Langsdorf, Mark" <mark.langsdorf@amd.com> wrote:>> It''s done ad hoc. Do you actually want a new >> HVM_PARAM_foo at the hypervisor level? > > Thanks for the quick response. > > We''re adding a feature that needs a user defined > parameter to be placed in the VMCB for each guest. > This parameter can be different for each guest. > It looked to me like that was a platform parameter, > but maybe it should be something else.mmm.... how mysterious. Am I going to like it? ;-)> At any rate, if I add a new key to the config > file (call it ''svm_new_feat''), how do I get the > value of svm_new_feat assigned to the integer > value of SVM_PARAM_new_feat inside of Xen?See use of xc.hvm_set_param() in xen/xend/image.py. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel