Skip to contentSkip to conversation

tools: specify datadir for qemu-xen build to fix firmware loading

PATCH In review Olaf Hering 4 participants 5 messages Mar 16, 2012 – Mar 19, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: specify datadir for qemu-xen build to fix firmware loading

# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1331924173 -3600
# Node ID bf1d5778ffd10858b402068b9473e410791ebd07
# Parent 72e6530b29463f0913af365f5d085d94ff75627c
tools: specify datadir for qemu-xen build to fix firmware loading

qemu-xen does currently not find the firmware files, such as vgabios-cirrus.bin. The reason is that qemu-xen uses the default prefix /usr/local. Use SHAREDIR/xen/qemu-xen as directory so that it can coexist with qemu-traditional.

tools/Makefile +1 -0
diff -r 72e6530b2946 -r bf1d5778ffd1 tools/Makefile
@@ -156,6 +156,7 @@ subdir-all-qemu-xen-dir subdir-install-q
 		--extra-ldflags="-L$(XEN_ROOT)/tools/libxc \
 		-L$(XEN_ROOT)/tools/xenstore" \
 		--bindir=$(LIBEXEC) \
+		--datadir=$(SHAREDIR)/xen/qemu-xen \
 		--disable-kvm \
 		--python=$(PYTHON) \
 		$(IOEMU_CONFIGURE_CROSS); \
#1 lore raw

Olaf Hering-2 wrote

Quoted 28 lines

# HG changeset patch
# User Olaf Hering &lt;olaf@&gt;
# Date 1331924173 -3600
# Node ID bf1d5778ffd10858b402068b9473e410791ebd07
# Parent 72e6530b29463f0913af365f5d085d94ff75627c
tools: specify datadir for qemu-xen build to fix firmware loading

qemu-xen does currently not find the firmware files, such as vgabios-cirrus.bin. The reason is that qemu-xen uses the default prefix /usr/local. Use SHAREDIR/xen/qemu-xen as directory so that it can coexist with
qemu-traditional.

diff -r 72e6530b2946 -r bf1d5778ffd1 tools/Makefile

tools/Makefile +1 -0
@@ -156,6 +156,7 @@ subdir-all-qemu-xen-dir subdir-install-q
 		--extra-ldflags="-L$(XEN_ROOT)/tools/libxc \
 		-L$(XEN_ROOT)/tools/xenstore" \
 		--bindir=$(LIBEXEC) \
+		--datadir=$(SHAREDIR)/xen/qemu-xen \
 		--disable-kvm \
 		--python=$(PYTHON) \
 		$(IOEMU_CONFIGURE_CROSS); \
Quoted 5 lines

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

Patch tried, seems ok, unfortunately does not solve the problem with vga qxl.

--
View this message in context: http://xen.1045712.n5.nabble.com/PATCH-tools-specify-datadir-for-qemu-xen-build-to-fix-firmware-loading-tp5572168p5576619.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

#3 lore raw
In reply to Stefano Stabellini
Quoted 8 lines · Stefano Stabellini
Quoted 7 lines · Olaf Hering

# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1331924173 -3600
# Node ID bf1d5778ffd10858b402068b9473e410791ebd07
# Parent 72e6530b29463f0913af365f5d085d94ff75627c
tools: specify datadir for qemu-xen build to fix firmware loading

Quoted 7 lines
Quoted 4 lines

qemu-xen does currently not find the firmware files, such as vgabios-cirrus.bin. The reason is that qemu-xen uses the default prefix /usr/local. Use SHAREDIR/xen/qemu-xen as directory so that it can coexist with qemu-traditional.

Actually it shouldn't be a problem of firmware files, that QEMU doesn't load by itself,

Upstream qemu + SeaBIOS uses the emulated ROM BARs to load the appropriate option ROM (e.g. etherboot) for each emulated device. AIUI these are loaded from these firmware files by qemu at runtime.

This differs from qemu-xen-traditional+ROMBIOS where the BIOS ROMs were baked into the hvmloader binary and pre-loaded into RAM by hvmloader.

So I think the path to these firmware files does matter.

Ian.

Quoted 20 lines

rather it should be an issue of keymap files.

tools/Makefile subdir-all-qemu-xen-dir subdir-install-q · line 159

Quoted 10 lines

diff -r 72e6530b2946 -r bf1d5778ffd1 tools/Makefile

tools/Makefile +1 -0
@@ -156,6 +156,7 @@ subdir-all-qemu-xen-dir subdir-install-q
 		--extra-ldflags="-L$(XEN_ROOT)/tools/libxc \
 		-L$(XEN_ROOT)/tools/xenstore" \
 		--bindir=$(LIBEXEC) \
+		--datadir=$(SHAREDIR)/xen/qemu-xen \

I think that $(SHAREDIR)/qemu-xen makes more sense

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

#2 lore raw
In reply to Olaf Hering
Quoted 11 lines · Olaf Hering

# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1331924173 -3600
# Node ID bf1d5778ffd10858b402068b9473e410791ebd07
# Parent 72e6530b29463f0913af365f5d085d94ff75627c
tools: specify datadir for qemu-xen build to fix firmware loading

qemu-xen does currently not find the firmware files, such as vgabios-cirrus.bin. The reason is that qemu-xen uses the default prefix /usr/local. Use SHAREDIR/xen/qemu-xen as directory so that it can coexist with qemu-traditional.

Actually it shouldn't be a problem of firmware files, that QEMU doesn't load by itself, rather it should be an issue of keymap files.

tools/Makefile subdir-all-qemu-xen-dir subdir-install-q · line 159

Quoted 10 lines

diff -r 72e6530b2946 -r bf1d5778ffd1 tools/Makefile

tools/Makefile +1 -0
@@ -156,6 +156,7 @@ subdir-all-qemu-xen-dir subdir-install-q
 		--extra-ldflags="-L$(XEN_ROOT)/tools/libxc \
 		-L$(XEN_ROOT)/tools/xenstore" \
 		--bindir=$(LIBEXEC) \
+		--datadir=$(SHAREDIR)/xen/qemu-xen \

I think that $(SHAREDIR)/qemu-xen makes more sense

#4 lore raw
Quoted 13 lines · Stefano Stabellini

tools/Makefile subdir-all-qemu-xen-dir subdir-install-q · line 159

Quoted 10 lines · Olaf Hering

tools: specify datadir for qemu-xen build to fix firmware loading

diff -r 72e6530b2946 -r bf1d5778ffd1 tools/Makefile

tools/Makefile +1 -0
@@ -156,6 +156,7 @@ subdir-all-qemu-xen-dir subdir-install-q
 		--extra-ldflags="-L$(XEN_ROOT)/tools/libxc \
 		-L$(XEN_ROOT)/tools/xenstore" \
 		--bindir=$(LIBEXEC) \
+		--datadir=$(SHAREDIR)/xen/qemu-xen \

I think that $(SHAREDIR)/qemu-xen makes more sense

Ok, I will resubmit with this path.

Olaf