From: Attilio Rao <attilio.rao@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
"gbtju85@gmail.com" <gbtju85@gmail.com>
Subject: Re: [PATCH 2 of 2] Add the ability to specify the option "bios_override" in the guest
Date: Thu, 23 Feb 2012 10:31:26 +0000 [thread overview]
Message-ID: <4F46157E.5000705@citrix.com> (raw)
In-Reply-To: <1329992002.8557.58.camel@zakaz.uk.xensource.com>
On 23/02/12 10:13, Ian Campbell wrote:
> On Wed, 2012-02-22 at 19:17 +0000, Attilio Rao wrote:
>
>> configuration file.
>> An example is given by:
>> bios_override="ovmf-x64"
>>
> I'm not sure I would use the override suffix here -- that is generally
> for settings where we recommend that the user accepts the default. In
> this case though a user has perfectly valid reasons for selecting
> ovmf-{32,64} or seabios etc.
>
> Also please update docs/man/xl.cfg.pod.5 to document the new setting.
>
It makes sense, thanks.
>> diff -r 032fea10f8d1 -r 520ba1527b7a tools/libxl/libxl_dm.c
>> --- a/tools/libxl/libxl_dm.c Wed Feb 22 18:54:03 2012 +0000
>> +++ b/tools/libxl/libxl_dm.c Wed Feb 22 18:56:22 2012 +0000
>> @@ -66,6 +66,8 @@ const char *libxl__domain_device_model(l
>> static const char *libxl__domain_bios(libxl__gc *gc,
>> const libxl_domain_build_info *info)
>> {
>> + if (info->u.hvm.bios)
>> + return info->u.hvm.bios;
>> switch (info->device_model_version) {
>> case 1: return "rombios";
>> case 2: return "seabios";
>>
> Should integrate this function into libxl__domain_build_info_setdefaults
> from my "libxl: improved handling for default values in API" series.
>
>
I really wanted to do this type of integration in a separate step.
> Also it would be good to use that same infrastructure to enforce that
> qemu-xen-traditional can only use rombios and that seabios and ovmf-*
> are only valid with qemu-xen.
>
>
>> diff -r 032fea10f8d1 -r 520ba1527b7a tools/libxl/libxl_types.idl
>> --- a/tools/libxl/libxl_types.idl Wed Feb 22 18:54:03 2012 +0000
>> +++ b/tools/libxl/libxl_types.idl Wed Feb 22 18:56:22 2012 +0000
>> @@ -228,6 +228,7 @@ libxl_domain_build_info = Struct("domain
>>
>> ("u", KeyedUnion(None, libxl_domain_type, "type",
>> [("hvm", Struct(None, [("firmware", string),
>> + ("bios", string),
>>
> I think an Enumeration would be better here.
> libxl__domain_bios
I just found it quicker/cleaner to just store the string and pass it
down, rather than translating to an Enumeration and then translate it
back to a string into libxl__domain_bios(), don't you think?
However I'm open to do what you feel is better.
Thanks,
Attilio
next prev parent reply other threads:[~2012-02-23 10:31 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-22 19:17 [PATCH 0 of 2] Add the OVMF UEFI support to hvmloader Attilio Rao
2012-02-22 19:17 ` [PATCH 1 of 2] Add the support for Xen to include OVMF UEFI support and directly use it Attilio Rao
2012-02-23 10:07 ` Ian Campbell
2012-02-23 10:18 ` Attilio Rao
2012-02-23 10:44 ` Ian Campbell
2012-02-23 14:48 ` Jan Beulich
2012-02-23 15:37 ` Ian Campbell
2012-02-23 17:33 ` Jordan Justen
2012-02-24 8:45 ` Ian Campbell
2012-02-24 8:35 ` Jan Beulich
2012-02-24 8:43 ` Ian Campbell
2012-02-24 8:50 ` Jan Beulich
2012-02-23 16:21 ` Jordan Justen
2012-02-23 16:36 ` Ian Campbell
2012-02-23 10:13 ` Keir Fraser
2012-02-22 19:17 ` [PATCH 2 of 2] Add the ability to specify the option "bios_override" in the guest Attilio Rao
2012-02-23 10:13 ` Ian Campbell
2012-02-23 10:31 ` Attilio Rao [this message]
2012-02-23 10:46 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F46157E.5000705@citrix.com \
--to=attilio.rao@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=gbtju85@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.