Skip to contentSkip to conversation

qemu option

DISCUSSION IAN DELANEY 3 participants 4 messages Apr 3, 2014 – Apr 14, 2014

lore
Share & tools
lore
#0 lore raw

It appears that the build of qemu and hvm capable options has gone from optional to obligatory.

Quoted 1 line

From the gentoo ebuild;

.../app-emulation/xen-tools $ ebuild xen-tools-4.3.2.ebuild clean install

* Fixing shebang in usr/sbin/xen-ringwatch
* Fixing shebang in usr/sbin/xenmon.py

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Completed installing xen-tools-4.3.2
into /mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.3.2/image/

It completes the build without issue.

Then;

.../app-emulation/xen-tools $ ebuild xen-tools-4.4.0.ebuild clean install

make[1]: Entering directory '/mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.4.0/work/xen-4.4.0/tools'
if test
-d /mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.4.0/work/xen-4.4.0/tools/../tools/qemu-xen ;

then \ mkdir -p qemu-xen-dir; \ else \ export GIT=git; \
        /mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.4.0/work/xen-4.4.0/tools/../scripts/git-checkout.sh

/mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.4.0/work/xen-4.4.0/tools/../tools/qemu-xen qemu-xen-4.4.0 qemu-xen-dir ; \ fi
if test
-d /mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.4.0/work/xen-4.4.0/tools/../tools/qemu-xen ; then \
source=/mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.4.0/work/xen-4.4.0/tools/../tools/qemu-xen; \ else \ source=.; \ fi; \
cd qemu-xen-dir; \

$source/configure --enable-xen --target-list=i386-softmmu \
        --enable-debug --enable-trace-backend=stderr \
        --prefix=/usr \
        --source-path=$source \
        --extra-cflags="-I/mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.4.0/work/xen-4.4.0/tools/../tools/include

\
-I/mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.4.0/work/xen-4.4.0/tools/../tools/libxc \
-I/mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.4.0/work/xen-4.4.0/tools/../tools/xenstore \
-I/mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.4.0/work/xen-4.4.0/tools/../tools/xenstore/compat \ " \
--extra-ldflags="-L/mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.4.0/work/xen-4.4.0/tools/../tools/libxc \
-L/mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.4.0/work/xen-4.4.0/tools/../tools/xenstore" \ --bindir=/usr/lib/xen/bin \ --datadir=/usr/share/qemu-xen \
--localstatedir=/var \ --disable-kvm \ --disable-docs \

--disable-guest-agent \ --python=python2.7 \
        ; \

make all

ERROR: pixman not present. Your options:
(1) Preferred: Install the pixman devel package (any recent distro should have packages as Xorg needs pixman too).
(2) Fetch the pixman submodule, using:
git submodule update --init pixman

make[2]: Entering directory
'/mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.4.0/work/xen-4.4.0/tools/qemu-xen-dir'
make[2]: *** No rule to make target 'all'. Stop. make[2]: Leaving
directory
'/mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.4.0/work/xen-4.4.0/tools/qemu-xen-dir'
Makefile:178: recipe for target 'subdir-all-qemu-xen-dir' failed
make[1]: *** [subdir-all-qemu-xen-dir] Error 2 make[1]: Leaving
directory
'/mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.4.0/work/xen-4.4.0/tools' /mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.4.0/work/xen-4.4.0/tools/../tools/Rules.mk:100:
recipe for target 'subdirs-all' failed make: *** [subdirs-all] Error 2
make: Leaving directory
'/mnt/gen2/TmpDir/portage/app-emulation/xen-tools-4.4.0/work/xen-4.4.0/tools'
* ERROR: app-emulation/xen-tools-4.4.0::gentoo failed (compile phase):
* emake failed

pixman is not installed and the 4.3.2 version builds, then the 4.4.0 release fails on configure in the absence of pixman.

The options are;

1. Install pixman, or
2. Install pixman.

On inquiring @ ##xen, I was more confused when a user informed me his build also failed, but in the 4.3.2 version, in the absence of an installed pixman, however all things are not equal since he clearly uses a different distro. The configure run is presumably different.

It appears the configure options have sustained some re-writing. It appears the build dictates a default selection of a qemu / hvm capable build. Is this by accident or intent?

See https://bugs.gentoo.org/show_bug.cgi?id=506072

Thx in anticipation.

Signature · 3 lines
kind regards

Ian Delaney
#1 lore raw
Quoted 3 lines · IAN DELANEY

It appears the configure options have sustained some re-writing. It appears the build dictates a default selection of a qemu / hvm capable build. Is this by accident or intent?

I think you've jumped to the wrong conclusion here.

Xen 4.4 includes a newer version of upstream qemu which depends on pixman, which is where this new dependency has come from. However qemu is not more mandatory than it was before.

The configure stuff has changed since 4.3 to make it easier to opt out of building qemu at all. You can now pass --with-system-qemu to configure instead of mucking around with .config or patching or whatever you did in 4.3 and earlier.

--with-system-qemu strictly means "assume the user has installed qemu separately, don't build our own", but it could equally mean "don't want qemu-xen at all".

Another new option is --disable-qemu-traditional which disables the use of the old trad branch/fork of qemu entirely.

Ian.

#2 lore raw
Quoted 24 lines · Ian Campbell
Quoted 3 lines · IAN DELANEY

It appears the configure options have sustained some re-writing. It appears the build dictates a default selection of a qemu / hvm capable build. Is this by accident or intent?

I think you've jumped to the wrong conclusion here.

Xen 4.4 includes a newer version of upstream qemu which depends on pixman, which is where this new dependency has come from. However qemu is not more mandatory than it was before.

The configure stuff has changed since 4.3 to make it easier to opt out of building qemu at all. You can now pass --with-system-qemu to configure instead of mucking around with .config or patching or whatever you did in 4.3 and earlier.

--with-system-qemu strictly means "assume the user has installed qemu separately, don't build our own", but it could equally mean "don't want qemu-xen at all".

Another new option is --disable-qemu-traditional which disables the use of the old trad branch/fork of qemu entirely.

Quoted 7 lines

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Hi Ian Campell:
for the commit[1] which introduce the option --with-system-qemu, and
if i understand correctly, we have *only* two choices here
1) using the bundled qemu from xen soure, this is the default option, we can pass --with-system-qemu=no to explicitly enable this
2) using qemu from HOST/DISTRO system instead of the bundled one --with-system-qemu (fallback to use "qemu" as qemu_xen_path) --with-system-qemu=${qemu_xen_path}

My question here, is there 3) option that we can disable qemu for
xen, neither we using qemu from the bundled one or from HOST/DISTRO? or ask in another way, if we don't want IOEMU(io emulation), can we disable qemu for xen? so is it possible to introduce an option --disable-qemu-xen? (just the same as --disable-qemu-traditional).
thanks

Lan

[1] commit 5c7cbadaccca8dbb47f2c42ab1b5a8afac9275e3

Author: Ian Campbell <[email protected]>
Date:   Wed May 15 14:47:32 2013 +0100

tools: allow user to specify a system qemu-xen binary

If this option is given don't bother building qemu-xen ourselves.
Likely to be
handy for distros who have an existing qemu package which they
want to reuse.

#3 lore raw
Quoted 5 lines · Dennis Lan (dlan)

My question here, is there 3) option that we can disable qemu for
xen, neither we using qemu from the bundled one or from HOST/DISTRO? or ask in another way, if we don't want IOEMU(io emulation), can we disable qemu for xen? so is it possible to introduce an option --disable-qemu-xen? (just the same as --disable-qemu-traditional).

--disable-qemu-xen would be pretty much equivalent to using --with-system-qemu and then not actually supplying it AFAICT.

If you were to supply a patch to add the new option (and perhaps produce a more specific error message if someone tries to start an HVM guest in that configuration) and it wasn't too intrusive then we could do that.

Ian.