All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Anthony PERARD <anthony.perard@citrix.com>,
	Xen-devel <xen-devel@lists.xenproject.org>,
	Wei Liu <wei.liu2@citrix.com>
Subject: Re: [PATCH v8 05/13] libxl: Load guest BIOS from file
Date: Mon, 22 Aug 2016 16:13:13 +0100	[thread overview]
Message-ID: <20160822151313.GZ20641@citrix.com> (raw)
In-Reply-To: <e016aef8-eb34-bae2-4e05-ad6e4a4f6b2d@citrix.com>

On Mon, Aug 22, 2016 at 04:09:07PM +0100, Andrew Cooper wrote:
> On 22/08/16 15:26, Wei Liu wrote:
> > On Mon, Aug 22, 2016 at 02:26:11PM +0100, Andrew Cooper wrote:
> >> On 22/08/16 14:13, Wei Liu wrote:
> >>> On Fri, Aug 19, 2016 at 03:43:00PM +0100, Andrew Cooper wrote:
> >>>> On 18/08/16 15:13, Wei Liu wrote:
> >>>>> From: Anthony PERARD <anthony.perard@citrix.com>
> >>>>>
> >>>>> The path to the BIOS blob can be overriden by the xl's
> >>>>> bios_path_override option, or provided by u.hvm.bios_firmware in the
> >>>>> domain_build_info struct by other libxl user.
> >>>>>
> >>>>> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
> >>>>> Acked-by: Wei Liu <wei.liu2@citrix.com>
> >>>> This introduces a regression, but I am not sure how best to fix it.
> >>>>
> >>>> [root@xrtuk-09-12 xen-test-framework]# xl -vvv create -p
> >>>> tests/selftest/test-hvm32-selftest.cfg
> >>>> Parsing config from tests/selftest/test-hvm32-selftest.cfg
> >>>> libxl: debug: libxl_create.c:1603:do_domain_create: ao 0xa6b9f0: create:
> >>>> how=(nil) callback=(nil) poller=0xa6c120
> >>>> libxl: debug: libxl_create.c:959:initiate_domain_create: running bootloader
> >>>> libxl: debug: libxl_bootloader.c:324:libxl__bootloader_run: not a PV
> >>>> domain, skipping bootloader
> >>>> libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch
> >>>> w=0xa6cc30: deregister unregistered
> >>>> libxl: debug: libxl_numa.c:483:libxl__get_numa_candidate: New best NUMA
> >>>> placement candidate found: nr_nodes=1, nr_cpus=12, nr_vcpus=17,
> >>>> free_memkb=30611
> >>>> libxl: detail: libxl_dom.c:182:numa_place_domain: NUMA placement
> >>>> candidate with 1 nodes, 12 cpus and 30611 KB free selected
> >>>> domainbuilder: detail: xc_dom_allocate: cmdline="(null)", features="(null)"
> >>>> domainbuilder: detail: xc_dom_kernel_file:
> >>>> filename="/opt/xen-test-framework/tests/selftest/test-hvm32-selftest"
> >>>> domainbuilder: detail: xc_dom_malloc_filemap    : 1090 kB
> >>>> libxl: debug: libxl_dom.c:874:libxl__load_hvm_firmware_module: Loading
> >>>> BIOS: /usr/libexec/xen/boot/bios.bin
> >>>> libxl: error: libxl_dom.c:882:libxl__load_hvm_firmware_module: failed to
> >>>> read BIOS file: No such file or directory
> >>>>
> >>>> In this case, tools have been built with ./configure --disable-seabios
> >>>>
> >>>> As a result, /usr/libexec/xen/boot/bios.bin (name altered a patch sent
> >>>> separately) isn't built or installed.
> >>>>
> >>>> I think libxl needs to logic to determine which firmware to use based on
> >>>> the available CONFIG_* options it was built with.
> >>> I don' quite follow here.
> >>>
> >>> Do you mean if user hasn't specified any bios= option, (s)he gets
> >>> whatever available?
> >>>
> >>> I think we should stick with the seabios-default behaviour to avoid
> >>> surprising breakage.
> >>>
> >>> If you don't want any bois, maybe we should provide a bios=none option?
> >> XenServer is built with ./configure --disable-seabios because we don't
> >> use it (yet).  This means that SeaBIOS is not built, installed, or
> >> available.
> >>
> >> Because of this change, libxl unconditionally assumes the presence of
> >> SeaBIOS, and tries to use the installed seabios binary.
> > Right, this needs fixing.
> >
> > We can restore the behaviour in libxl -- if you specify a not available
> > bios, libxl won't complain, hvmloader will crash in the same way as
> > before.
> 
> HVMLoader works fine.  I am not sure how you got this idea.
> 

Huh? If you don't embed seabios or ovmf in hvmloader and then specify
bios=seabios or bios=ovmf in guest config file, I'm sure it will crash
when trying to load bios.

Wei.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2016-08-22 15:13 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-18 14:13 [PATCH v8 00/13] Load BIOS via toolstack instead of been embedded in hvmloader Wei Liu
2016-08-18 14:13 ` [PATCH v8 01/13] libxc: Rework extra module initialisation Wei Liu
2016-08-18 14:13 ` [PATCH v8 02/13] libxc: Prepare a start info structure for hvmloader Wei Liu
2016-08-18 14:13 ` [PATCH v8 03/13] configure: #define SEABIOS_PATH and OVMF_PATH Wei Liu
2016-08-18 14:13 ` [PATCH v8 04/13] firmware/makefile: install BIOS blob Wei Liu
2016-08-18 14:13 ` [PATCH v8 05/13] libxl: Load guest BIOS from file Wei Liu
2016-08-19 14:43   ` Andrew Cooper
2016-08-22 13:13     ` Wei Liu
2016-08-22 13:26       ` Andrew Cooper
2016-08-22 14:26         ` Wei Liu
2016-08-22 15:05           ` [PATCH 0/2] Fix issue with {OVMF,SEABIOS}_PATH Wei Liu
2016-08-22 15:05             ` [PATCH 1/2] tools: only define {OVMF, SEABIOS}_PATH when they are enabled Wei Liu
2016-08-22 15:05             ` [PATCH 2/2] libxl: only return {OVMF, SEABIOS}_PATH if available Wei Liu
2016-08-23  9:37             ` [PATCH 0/2] Fix issue with {OVMF,SEABIOS}_PATH Andrew Cooper
2016-08-24 11:38             ` Ian Jackson
2016-08-24 11:59               ` Wei Liu
2016-08-22 15:09           ` [PATCH v8 05/13] libxl: Load guest BIOS from file Andrew Cooper
2016-08-22 15:13             ` Wei Liu [this message]
2016-08-23 20:00   ` Doug Goldstein
2016-08-24  9:16     ` Wei Liu
2016-08-18 14:13 ` [PATCH v8 06/13] hvmloader: Grab the hvm_start_info pointer Wei Liu
2016-08-18 14:13 ` [PATCH v8 07/13] hvmloader: Locate the BIOS blob Wei Liu
2016-08-18 15:39   ` Jan Beulich
2016-08-18 15:48     ` Andrew Cooper
2016-08-18 15:51       ` Wei Liu
2016-08-18 14:13 ` [PATCH v8 08/13] hvmloader: Load SeaBIOS from hvm_start_info modules Wei Liu
2016-08-18 14:13 ` [PATCH v8 09/13] hvmloader: Load OVMF from modules Wei Liu
2016-08-18 14:13 ` [PATCH v8 10/13] hvmloader: bios->bios_load() now needs to be defined Wei Liu
2016-08-18 14:13 ` [PATCH v8 11/13] hvmloader: Always build-in SeaBIOS and OVMF loader Wei Liu
2016-08-18 14:13 ` [PATCH v8 12/13] configure: do not depend on SEABIOS_PATH or OVMF_PATH Wei Liu
2016-08-18 14:13 ` [PATCH v8 13/13] docs/misc/hvmlite: Point to the canonical definition of hvm_start_info Wei Liu
2016-08-18 16:23 ` [PATCH v8 00/13] Load BIOS via toolstack instead of been embedded in hvmloader Wei Liu

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=20160822151313.GZ20641@citrix.com \
    --to=wei.liu2@citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=anthony.perard@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /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.