qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL 0/4] seabios: update from 1.9.1 to 1.9.3
@ 2016-07-04  9:33 Gerd Hoffmann
  2016-07-04  9:33 ` [Qemu-devel] [PULL 1/4] seabios: update submodule " Gerd Hoffmann
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2016-07-04  9:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

  Hi,

Here comes the seabios update for qemu 2.7.  No big changes, it is a
stable branch update with only four patches (patch #1 comes with a
shortlog).  Also picked up the stripped down bios config (for -kernel
boot) from Richard and updated the 128k config to keep the size below
the limit.

please pull,
  Gerd

The following changes since commit 96b39d8327883094f52b0a3d3f25dba83d6d1d63:

  Merge remote-tracking branch 'remotes/gkurz/tags/for-upstream' into staging (2016-07-01 19:29:27 +0100)

are available in the git repository at:


  git://git.kraxel.org/qemu tags/pull-seabios-20160704-1

for you to fetch changes up to 6e03a28e1cee05a502e17d271df4a0e6406b43a5:

  seabios: update binaries from 1.9.1 to 1.9.3 (2016-07-04 11:28:58 +0200)

----------------------------------------------------------------
seabios: update from 1.9.1 to 1.9.3

----------------------------------------------------------------
Gerd Hoffmann (3):
      seabios: update submodule from 1.9.1 to 1.9.3
      seabios: update 128k config
      seabios: update binaries from 1.9.1 to 1.9.3

Richard W.M. Jones (1):
      bios: Add fast variant of SeaBIOS for use with -kernel on x86.

 Makefile                 |   3 ++-
 pc-bios/bios-256k.bin    | Bin 262144 -> 262144 bytes
 pc-bios/bios-fast.bin    | Bin 0 -> 65536 bytes
 pc-bios/bios.bin         | Bin 131072 -> 131072 bytes
 roms/Makefile            |   4 +++-
 roms/config.seabios-128k |   2 ++
 roms/config.seabios-fast |  27 +++++++++++++++++++++++++++
 roms/seabios             |   2 +-
 8 files changed, 35 insertions(+), 3 deletions(-)
 create mode 100644 pc-bios/bios-fast.bin
 create mode 100644 roms/config.seabios-fast

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Qemu-devel] [PULL 1/4] seabios: update submodule from 1.9.1 to 1.9.3
  2016-07-04  9:33 [Qemu-devel] [PULL 0/4] seabios: update from 1.9.1 to 1.9.3 Gerd Hoffmann
@ 2016-07-04  9:33 ` Gerd Hoffmann
  2016-07-04  9:33 ` [Qemu-devel] [PULL 2/4] bios: Add fast variant of SeaBIOS for use with -kernel on x86 Gerd Hoffmann
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2016-07-04  9:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

git shortlog
============

Alex Williamson (1):
      fw/pci: Add support for mapping Intel IGD via QEMU

Haozhong Zhang (1):
      fw/msr_feature_control: add support to set MSR_IA32_FEATURE_CONTROL

Kevin O'Connor (1):
      build: fix .text section address alignment

Marcel Apfelbaum (1):
      fw/pci: add Q35 S3 support

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 roms/seabios | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roms/seabios b/roms/seabios
index b3ef39f..e2fc41e 160000
--- a/roms/seabios
+++ b/roms/seabios
@@ -1 +1 @@
-Subproject commit b3ef39f532db52bf17457ba931da758eeb38d6b4
+Subproject commit e2fc41e24ee0ada60fc511d60b15a41b294538be
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Qemu-devel] [PULL 2/4] bios: Add fast variant of SeaBIOS for use with -kernel on x86.
  2016-07-04  9:33 [Qemu-devel] [PULL 0/4] seabios: update from 1.9.1 to 1.9.3 Gerd Hoffmann
  2016-07-04  9:33 ` [Qemu-devel] [PULL 1/4] seabios: update submodule " Gerd Hoffmann
@ 2016-07-04  9:33 ` Gerd Hoffmann
  2016-07-04 10:08   ` Richard W.M. Jones
  2016-07-04 18:38   ` Laurent Vivier
  2016-07-04  9:33 ` [Qemu-devel] [PULL 3/4] seabios: update 128k config Gerd Hoffmann
  2016-07-04  9:33 ` [Qemu-devel] [PULL 4/4] seabios: update binaries from 1.9.1 to 1.9.3 Gerd Hoffmann
  3 siblings, 2 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2016-07-04  9:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: Richard W.M. Jones, Gerd Hoffmann

From: "Richard W.M. Jones" <rjones@redhat.com>

This commit adds a fast variant of SeaBIOS called 'bios-fast.bin'.

It's designed to be the fastest (also the smallest, but that's not the
main aim) SeaBIOS that is just enough to boot a Linux kernel using the
-kernel option on i686 and x86_64.

This commit does not modify the -kernel option to use this.  You have
to specify it by doing something like this:

  -kernel vmlinuz -bios bios-fast.bin

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 Makefile                 |  3 ++-
 roms/Makefile            |  4 +++-
 roms/config.seabios-fast | 27 +++++++++++++++++++++++++++
 3 files changed, 32 insertions(+), 2 deletions(-)
 create mode 100644 roms/config.seabios-fast

diff --git a/Makefile b/Makefile
index 9d12dc6..7bfb8b4 100644
--- a/Makefile
+++ b/Makefile
@@ -408,7 +408,8 @@ common  de-ch  es     fo  fr-ca  hu     ja  mk  nl-be      pt  sl     tr \
 bepo    cz
 
 ifdef INSTALL_BLOBS
-BLOBS=bios.bin bios-256k.bin sgabios.bin vgabios.bin vgabios-cirrus.bin \
+BLOBS=bios.bin bios-256k.bin bios-fast.bin \
+sgabios.bin vgabios.bin vgabios-cirrus.bin \
 vgabios-stdvga.bin vgabios-vmware.bin vgabios-qxl.bin vgabios-virtio.bin \
 acpi-dsdt.aml \
 ppc_rom.bin openbios-sparc32 openbios-sparc64 openbios-ppc QEMU,tcx.bin QEMU,cgthree.bin \
diff --git a/roms/Makefile b/roms/Makefile
index 7bd1252..26b0586 100644
--- a/roms/Makefile
+++ b/roms/Makefile
@@ -61,9 +61,11 @@ default:
 	@echo "  slof           -- update slof.bin"
 	@echo "  u-boot.e500    -- update u-boot.e500"
 
-bios: build-seabios-config-seabios-128k build-seabios-config-seabios-256k
+bios: build-seabios-config-seabios-128k build-seabios-config-seabios-256k \
+      build-seabios-config-seabios-fast
 	cp seabios/builds/seabios-128k/bios.bin ../pc-bios/bios.bin
 	cp seabios/builds/seabios-256k/bios.bin ../pc-bios/bios-256k.bin
+	cp seabios/builds/seabios-fast/bios.bin ../pc-bios/bios-fast.bin
 
 seavgabios: $(patsubst %,seavgabios-%,$(vgabios_variants))
 
diff --git a/roms/config.seabios-fast b/roms/config.seabios-fast
new file mode 100644
index 0000000..045693e
--- /dev/null
+++ b/roms/config.seabios-fast
@@ -0,0 +1,27 @@
+# The fastest SeaBIOS that can boot Linux using -kernel.
+# NB: Since we are using -kernel, we don't need SeaBIOS itself
+# to do any boot drive detection, boot ordering, etc.
+
+# general stuff
+CONFIG_QEMU=y
+CONFIG_ROM_SIZE=0
+CONFIG_WRITABLE_UPPERMEMORY=y
+CONFIG_RELOCATE_INIT=n
+
+# no input, no boot menu
+CONFIG_MOUSE=n
+CONFIG_KEYBOARD=n
+CONFIG_BOOTMENU=n
+CONFIG_BOOTSPLASH=n
+CONFIG_BOOTORDER=n
+
+# hardware support we don't need
+CONFIG_LPT=n
+CONFIG_SERIAL=n
+CONFIG_USB=n
+CONFIG_DRIVES=n
+CONFIG_TCGBIOS=n
+CONFIG_VGAHOOKS=n
+
+# no logging
+CONFIG_DEBUG_LEVEL=0
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Qemu-devel] [PULL 3/4] seabios: update 128k config
  2016-07-04  9:33 [Qemu-devel] [PULL 0/4] seabios: update from 1.9.1 to 1.9.3 Gerd Hoffmann
  2016-07-04  9:33 ` [Qemu-devel] [PULL 1/4] seabios: update submodule " Gerd Hoffmann
  2016-07-04  9:33 ` [Qemu-devel] [PULL 2/4] bios: Add fast variant of SeaBIOS for use with -kernel on x86 Gerd Hoffmann
@ 2016-07-04  9:33 ` Gerd Hoffmann
  2016-07-04  9:33 ` [Qemu-devel] [PULL 4/4] seabios: update binaries from 1.9.1 to 1.9.3 Gerd Hoffmann
  3 siblings, 0 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2016-07-04  9:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

Turn off mpt-scsi and bootsplash to keep size below 128k.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 roms/config.seabios-128k | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/roms/config.seabios-128k b/roms/config.seabios-128k
index 0a9da77..93203af 100644
--- a/roms/config.seabios-128k
+++ b/roms/config.seabios-128k
@@ -2,9 +2,11 @@
 # need to turn off features (xhci,uas) to make it fit into 128k
 CONFIG_QEMU=y
 CONFIG_ROM_SIZE=128
+CONFIG_BOOTSPLASH=n
 CONFIG_XEN=n
 CONFIG_USB_OHCI=n
 CONFIG_USB_XHCI=n
 CONFIG_USB_UAS=n
 CONFIG_SDCARD=n
 CONFIG_TCGBIOS=n
+CONFIG_MPT_SCSI=n
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Qemu-devel] [PULL 4/4] seabios: update binaries from 1.9.1 to 1.9.3
  2016-07-04  9:33 [Qemu-devel] [PULL 0/4] seabios: update from 1.9.1 to 1.9.3 Gerd Hoffmann
                   ` (2 preceding siblings ...)
  2016-07-04  9:33 ` [Qemu-devel] [PULL 3/4] seabios: update 128k config Gerd Hoffmann
@ 2016-07-04  9:33 ` Gerd Hoffmann
  3 siblings, 0 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2016-07-04  9:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 pc-bios/bios-256k.bin | Bin 262144 -> 262144 bytes
 pc-bios/bios-fast.bin | Bin 0 -> 65536 bytes
 pc-bios/bios.bin      | Bin 131072 -> 131072 bytes
 3 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 pc-bios/bios-fast.bin

diff --git a/pc-bios/bios-256k.bin b/pc-bios/bios-256k.bin
index e7a7e72..57fb4d8 100644
Binary files a/pc-bios/bios-256k.bin and b/pc-bios/bios-256k.bin differ
diff --git a/pc-bios/bios-fast.bin b/pc-bios/bios-fast.bin
new file mode 100644
index 0000000..00cda3c
Binary files /dev/null and b/pc-bios/bios-fast.bin differ
diff --git a/pc-bios/bios.bin b/pc-bios/bios.bin
index b0ae502..8a6869f 100644
Binary files a/pc-bios/bios.bin and b/pc-bios/bios.bin differ
-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [PULL 2/4] bios: Add fast variant of SeaBIOS for use with -kernel on x86.
  2016-07-04  9:33 ` [Qemu-devel] [PULL 2/4] bios: Add fast variant of SeaBIOS for use with -kernel on x86 Gerd Hoffmann
@ 2016-07-04 10:08   ` Richard W.M. Jones
  2016-07-04 11:44     ` Gerd Hoffmann
  2016-07-04 18:38   ` Laurent Vivier
  1 sibling, 1 reply; 8+ messages in thread
From: Richard W.M. Jones @ 2016-07-04 10:08 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

On Mon, Jul 04, 2016 at 11:33:40AM +0200, Gerd Hoffmann wrote:
> From: "Richard W.M. Jones" <rjones@redhat.com>
> 
> This commit adds a fast variant of SeaBIOS called 'bios-fast.bin'.
> 
> It's designed to be the fastest (also the smallest, but that's not the
> main aim) SeaBIOS that is just enough to boot a Linux kernel using the
> -kernel option on i686 and x86_64.
> 
> This commit does not modify the -kernel option to use this.  You have
> to specify it by doing something like this:
> 
>   -kernel vmlinuz -bios bios-fast.bin
> 
> Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
> Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>

Hi Gerd, I'd like to "self-" NACK this patch - ie. I withdraw it.

It needs more work to benchmark any time savings, and I think also to
explore other ways to fix the problem.

Thanks,

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [PULL 2/4] bios: Add fast variant of SeaBIOS for use with -kernel on x86.
  2016-07-04 10:08   ` Richard W.M. Jones
@ 2016-07-04 11:44     ` Gerd Hoffmann
  0 siblings, 0 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2016-07-04 11:44 UTC (permalink / raw)
  To: Richard W.M. Jones; +Cc: qemu-devel

On Mo, 2016-07-04 at 11:08 +0100, Richard W.M. Jones wrote:
> Hi Gerd, I'd like to "self-" NACK this patch - ie. I withdraw it.

Ok.  Dropped patch, dropped binary, PULL v2 sent.

cheers,
  Gerd

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [PULL 2/4] bios: Add fast variant of SeaBIOS for use with -kernel on x86.
  2016-07-04  9:33 ` [Qemu-devel] [PULL 2/4] bios: Add fast variant of SeaBIOS for use with -kernel on x86 Gerd Hoffmann
  2016-07-04 10:08   ` Richard W.M. Jones
@ 2016-07-04 18:38   ` Laurent Vivier
  1 sibling, 0 replies; 8+ messages in thread
From: Laurent Vivier @ 2016-07-04 18:38 UTC (permalink / raw)
  To: qemu-devel
  Cc: Richard W.M. Jones, David Gibson, Thomas Huth, Alexander Graf,
	Andrew Jones

Hi,

On 04/07/2016 11:33, Gerd Hoffmann wrote:
> From: "Richard W.M. Jones" <rjones@redhat.com>
> 
> This commit adds a fast variant of SeaBIOS called 'bios-fast.bin'.
> 
> It's designed to be the fastest (also the smallest, but that's not the
> main aim) SeaBIOS that is just enough to boot a Linux kernel using the
> -kernel option on i686 and x86_64.
> 
> This commit does not modify the -kernel option to use this.  You have
> to specify it by doing something like this:
> 
>   -kernel vmlinuz -bios bios-fast.bin

I like the idea: I'm wondering if we should do the same thing for ppc64?

In fact, it is already done, if you have kvm-unit-tests, you can do:

qemu-system-ppc64 ... -kernel vmlinuz \
                      -initrd initramfs.img \
                      -append .... \
                      -bios .../kvm-unit-tests/powerpc/boot_rom.bin

and boot_rom.bin is (thanks to the power of device-tree):

    #define SPAPR_KERNEL_LOAD_ADDR 0x400000
    .text
    .globl start
    start:
            b       SPAPR_KERNEL_LOAD_ADDR - 0x100

It can't be faster...

The question is: should we add this binary to qemu?

And it can open new doors: booting with petitboot instead of SLOF.

Laurent

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-07-04 18:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-04  9:33 [Qemu-devel] [PULL 0/4] seabios: update from 1.9.1 to 1.9.3 Gerd Hoffmann
2016-07-04  9:33 ` [Qemu-devel] [PULL 1/4] seabios: update submodule " Gerd Hoffmann
2016-07-04  9:33 ` [Qemu-devel] [PULL 2/4] bios: Add fast variant of SeaBIOS for use with -kernel on x86 Gerd Hoffmann
2016-07-04 10:08   ` Richard W.M. Jones
2016-07-04 11:44     ` Gerd Hoffmann
2016-07-04 18:38   ` Laurent Vivier
2016-07-04  9:33 ` [Qemu-devel] [PULL 3/4] seabios: update 128k config Gerd Hoffmann
2016-07-04  9:33 ` [Qemu-devel] [PULL 4/4] seabios: update binaries from 1.9.1 to 1.9.3 Gerd Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).