tools: specify datadir for qemu-xen build to fix firmware loading
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
@@ -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); \
Olaf Hering-2 wrote
Quoted 28 lines
# HG changeset patch
# User Olaf Hering <olaf@>
# Date 1331924173 -3600
# Node IDbf1d5778ffd10858b402068b9473e410791ebd07
# Parent72e6530b29463f0913af365f5d085d94ff75627c
tools: specify datadir for qemu-xen build to fix firmware loadingqemu-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.Signed-off-by Olaf Hering <olaf@>diff -r
72e6530b2946-rbf1d5778ffd1tools/Makefiletools/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.
Quoted 8 lines · Stefano Stabellini
Quoted 7 lines · Olaf Hering
# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1331924173 -3600
# Node IDbf1d5778ffd10858b402068b9473e410791ebd07
# Parent72e6530b29463f0913af365f5d085d94ff75627c
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
Signed-off-by Olaf Hering <[email protected]>diff -r
72e6530b2946-rbf1d5778ffd1tools/Makefiletools/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
Quoted 11 lines · Olaf Hering
# HG changeset patch
# User Olaf Hering <[email protected]>
# Date 1331924173 -3600
# Node IDbf1d5778ffd10858b402068b9473e410791ebd07
# Parent72e6530b29463f0913af365f5d085d94ff75627c
tools: specify datadir for qemu-xen build to fix firmware loadingqemu-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
Signed-off-by Olaf Hering <[email protected]>diff -r
72e6530b2946-rbf1d5778ffd1tools/Makefiletools/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
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-rbf1d5778ffd1tools/Makefiletools/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