Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 526080 - app-emulation/xen-tools - add --enable-ovmf
Summary: app-emulation/xen-tools - add --enable-ovmf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-20 13:29 UTC by Xi
Modified: 2014-11-06 23:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
xen-tools's ovmf support (patch against xen-tools-4.4.1-r2) (xen-tools-ovmf-support.patch,3.86 KB, patch)
2014-11-04 09:04 UTC, Yixun Lan
Details | Diff
patch to gentoo-patches.conf (gentoo-patches-conf.patch,914 bytes, patch)
2014-11-05 15:29 UTC, Ian Delaney (RETIRED)
Details | Diff
diff between a xen-tools-4.4.1-r2.ebuild and a soon will be xen-tools-4.4.1-r3.ebuild (4.4.1-r3.patch,2.81 KB, patch)
2014-11-05 15:42 UTC, Ian Delaney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xi 2014-10-20 13:29:44 UTC
xen has a option "--enable-ovmf", if enabled, could enable UEFI boot support in guest VM. I checked the EBUILD file, such option is not mentioned in the file, nor any USE flag related to it.
Comment 1 Yixun Lan archtester gentoo-dev 2014-10-20 14:04:37 UTC
by default ovmf is not enabled[1], but I think it would be fine to introduce a USE="ovmf" to control this. also we need to patch the build script to avoid downloading code during compile stage (using git clone) 

[1] http://wiki.xen.org/wiki/OVMF
[2] GIT=git /var/tmp/portage/app-emulation/xen-tools-4.4.1-r1/work/xen-4.4.1/tools/firmware/../../scripts/git-checkout.sh git://xenbits.xen.org/ovmf.git 447d264115c476142f884af0be287622cd244423 ovmf-dir
Cloning into 'ovmf-dir-remote.tmp'...

I may revisit this in a few days, thanks for reporting
Comment 2 Yixun Lan archtester gentoo-dev 2014-11-04 09:04:53 UTC
Created attachment 388502 [details, diff]
xen-tools's ovmf support (patch against xen-tools-4.4.1-r2)

here is what I've got so far, ovmf support was added, but I've only done a compiling test. ovmf itself need a few patches to apply, which can be download from my dev space[1].

[1] http://dev.gentoo.org/~dlan/distfiles/{ovmf-20131208.tar.bz2,xen-ovmf-patches-0.tar.xz,xen-gentoo-patches-2.tar.xz,ovmf-20131208.tar.bz2}

I'm less motivated to play with ovmf, so wish you can report back here.

(to build this version, you only need to apply the patch to ${PORTDIR}/app-emulation/xen-tools, then "repoman manifest && emerge xen-tools")
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2014-11-05 15:29:32 UTC
Created attachment 388592 [details, diff]
patch to gentoo-patches.conf

Slightly edited patch to dlan's initial one for gentoo-patches.conf
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2014-11-05 15:42:41 UTC
Created attachment 388594 [details, diff]
diff between a xen-tools-4.4.1-r2.ebuild and a soon will be xen-tools-4.4.1-r3.ebuild

This works for me.  dlan has refined his attempt to another version which also works, making 2 working solutions.  We will likely decide on the following 24 hours on a final form to add to portage. Xi you can try one or both of the 2 present here for a test run.  Note The new ovmf flag will be set in REQUIRED_USE needing the hvm flag which in turn needs the qemu flag.  Note also the built ovmf.bin is built into the final hvmloader
Comment 5 Yixun Lan archtester gentoo-dev 2014-11-06 23:01:37 UTC
+*xen-tools-4.4.1-r3 (06 Nov 2014)
+
+  06 Nov 2014; Yixun Lan <dlan@gentoo.org> +xen-tools-4.4.1-r3.ebuild,
+  files/gentoo-patches.conf, files/xenqemudev.initd, metadata.xml:
+  enable ovmf bios support, bug 526080