[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 3/9] raisin: add QEMU upstream component



On Thu, 16 Apr 2015, George Dunlap wrote:
> On 04/16/2015 10:51 AM, Stefano Stabellini wrote:
> > On Wed, 15 Apr 2015, Julien Grall wrote:
> >> Hi Stefano,
> >>
> >> On 15/04/2015 16:14, Stefano Stabellini wrote:
> >>> diff --git a/components/series b/components/series
> >>> index 3c3124d..8f614f0 100644
> >>> --- a/components/series
> >>> +++ b/components/series
> >>> @@ -1,3 +1,4 @@
> >>>   xen
> >>> +qemu
> >>>   grub
> >>>   libvirt
> >>> diff --git a/components/xen b/components/xen
> >>> index 2d345a8..dcf2f92 100644
> >>> --- a/components/xen
> >>> +++ b/components/xen
> >>> @@ -23,7 +23,7 @@ function xen_build() {
> >>>       cd "$BASEDIR"
> >>>       git-checkout $XEN_UPSTREAM_URL $XEN_UPSTREAM_REVISION xen-dir
> >>>       cd xen-dir
> >>> -    ./configure --prefix=$PREFIX
> >>> +    ./configure --prefix=$PREFIX
> >>> --with-system-qemu=/usr/bin/qemu-system-i386
> >>
> >> Currently the QEMU built by Xen is installed in a Xen directory (IIRC
> >> /usr/lib/xen/bin). Should not you use a similar path for raisin? Otherwise 
> >> you
> >> would override the QEMU installed via the distrib package
> >> manager.
> > 
> > This was done on purpose because the QEMU component built by Raisin
> > should be generally usable, even without Xen.
> 
> Do we want raisin to clobber / conflict with a system qemu by befault?
> 
> I think if our goal is, "A Xen-focused configuration that Just Works",
> putting it in /usr/lib/xen/bin is probably better.

I don't have a strong opinion on this, so here is the patch:

---

raisin: build QEMU more specifically for Xen and install under /usr/lib/xen/bin

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>

diff --git a/components/qemu b/components/qemu
index 85db58e..6ba03c8 100644
--- a/components/qemu
+++ b/components/qemu
@@ -19,12 +19,14 @@ function qemu_build() {
     cd "$BASEDIR"
     git-checkout $QEMU_URL $QEMU_REVISION qemu-dir
     cd qemu-dir
-    ./configure --enable-xen --target-list=i386-softmmu,x86_64-softmmu 
--prefix=$PREFIX \
+    ./configure --enable-xen --target-list=i386-softmmu --prefix=$PREFIX \
         --extra-cflags="-I$INST_DIR/$PREFIX/include" \
         --extra-ldflags="-L$INST_DIR/$PREFIX/lib 
-Wl,-rpath-link=$INST_DIR/$PREFIX/lib \
                          -L$INST_DIR/$PREFIX/lib64 
-Wl,-rpath-link=$INST_DIR/$PREFIX/lib64" \
         --disable-kvm \
         --disable-docs \
+        --bindir=$PREFIX/lib/xen/bin \
+        --datadir=$PREFIX/share/qemu-xen \
         --disable-guest-agent
     $RAISIN_MAKE all
     $RAISIN_MAKE install DESTDIR="$INST_DIR"
diff --git a/components/xen b/components/xen
index a0c0034..f8959be 100644
--- a/components/xen
+++ b/components/xen
@@ -23,7 +23,7 @@ function xen_build() {
     cd "$BASEDIR"
     git-checkout $XEN_URL $XEN_REVISION xen-dir
     cd xen-dir
-    ./configure --prefix=$PREFIX --with-system-qemu=/usr/bin/qemu-system-i386
+    ./configure --prefix=$PREFIX 
--with-system-qemu=$PREFIX/lib/xen/bin/qemu-system-i386
     $RAISIN_MAKE
     $RAISIN_MAKE install DESTDIR="$INST_DIR"
     cd "$BASEDIR"

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.