Commit graph

68 commits

Author SHA1 Message Date
Juergen Lock
634591c0bc - Update to 0.10.4 - from the official announcement:
N.B. This release contains a qcow2 corruption fix.  If you use qcow2
  disk images, it's strongly advised that you upgrade to 0.10.4.

   - Improve block range checks to remove integer overflow (Kevin Wolf)
   - e1000: do not re-init PCI config space 0 (Amit Shah)
   - fix AIO deletion race (Alex Graf)
   - reset option roms on reboot (Glauber Costa)
   - fix qcow2 corruption in cluster freeing (Gleb Natapov)
   - Enable power button event generation (Gleb Natapov)

- Added a cherry picked commit from stable branch that fixes -kernel.
2009-05-13 20:41:48 +00:00
Juergen Lock
356555b4a9 Update to 0.10.3 - from the official changelog:
- fix AIO cancellations (Avi Kivity)
  - fix live migration error path on incoming
  - avoid SEGV on pci hotplug failure (Chris Wright)
  - fix serial option in -drive
  - support DDIM for option roms (Glauber Costa)
  - avoid fork/exec on pre-2.6.27 kernels with KVM (Jan Kiszka)
  - block-vpc: don't silently create smaller images than requested (Kevin Wolf)
  - Fix non-ACPI timer interrupt routing (Beth Kon)
  - hpet: fix emulation of HPET_TN_SETVAL (Jan Kiszka)
  - kvm: fix cpuid initialization (Jan Kiszka)
  - qcow2: fix corruption on little endian hosts (Kevin Wolf)
  - avoid leaing memory on hot unplug (Mark McLoughlin)
  - fix savevm/migration after hot unplug (Mark McLoughlin)
  - Fix keyboard mapping on newer Xords with non-default keymaps (balrog)
  - Make PCI config status register read-only (Anthony Liguori)
  - Fix crash on resolution change -> screen dump -> vga redraw (Avi Kivity)
2009-05-01 18:47:10 +00:00
Juergen Lock
5c6fe2453b - Update to 0.10.1 - from the official changelog:
- virtio-net: allow masking of notifications on empty queue (Alex Williamson)
  - e1000: fix rx descriptor low threshold logic (Alex Willaimson)
  - x86 tcg: add NULL checks to lsl instruction (Jan Kiszka)
  - kvm vga: fix screen corruption with -std-vga and Windows (Avi Kivity)
  - kvm vga: fix screen corruption with Ubuntu installations (Glauber Costa)
  - virtio-net: check right return size on sg list (Alex Williamson)
  - Make qemu_announce_self handle holes (live migration after hotplug)
    (Marcelo Tosatti)
  - Revert r6804-r6808 (qcow2 allocation info).  This series of changes added
    a high cost to startup for large qcow2 images (Anthony Liguori)
  - qemu-img: fix help message (Aurelien Jarno)
  - Fix build for non-default installs of SDL (Anthony Liguori)
  - Fix race condition in env->interrupt_request.  When using TCG and a dynticks
    host timer, this condition could cause TCG to get stuck in an infinite
    loop (Aurelien Jarno)
  - Fix reading encrypted hard disk passwords during early startup (Jan Kiszka)
  - Fix encrypted disk reporting in 'info block' (Jan Kiszka)
  - Fix console size with tiny displays (MusicPal) (Jan Kiszka)
  - Improve error handling in bdrv_open2 (Jan Kiszka)
  - Avoid leaking data in mux'ed character devices (Jan Kiszka)
  - Fix initial character device reset (no banner in monitor) (Jan Kiszka)
  - Fix cpuid KVM crash on i386 host (Lubomir Rintel)
  - Fix SLES10sp2 installation by adding ISTAT1 register to LSI SCSI emulation
    (Ryan Harper)

- Add physical CDROM fixes (still not perfect tho, see pkg-message)
- Add MAKE_JOBS_SAFE fix and mark as such
2009-03-23 20:54:07 +00:00
Juergen Lock
31f27fb3f8 Fix NOPORTDOCS. (doh!) 2009-03-08 18:28:26 +00:00
Juergen Lock
e332617a7d Update to 0.10.0 - from the official changelog:
- TCG support (No longer requires GCC 3.x)
  - Kernel Virtual Machine acceleration support [kernel bits not ported
    to FreeBSD yet]
  - BSD userspace emulation [untested on FreeBSD, probably doesn't work
    at least for i386 hosts]
  - Bluetooth emulation and host passthrough support [not ported to
    FreeBSD yet]
  - GDB XML register description support
  - Intel e1000 emulation
  - HPET emulation
  - VirtIO paravirtual device support
  - Marvell 88w8618 / MusicPal emulation
  - Nokia N-series tablet emulation / OMAP2 processor emulation
  - PCI hotplug support
  - Live migration and new save/restore formats
  - Curses display support
  - qemu-nbd utility to mount supported block formats [not ported to
    FreeBSD yet]
  - Altivec support in PPC emulation and new firmware (OpenBIOS)
  - Multiple VNC clients are now supported
  - TLS encryption is now supported in VNC
  - MIPS Magnum R4000 machine (Herve Poussineau)
  - Braille support (Samuel Thibault)
  - Freecom MusicPal system emulation (Jan Kiszka)
  - OMAP242x and Nokia N800, N810 machines (Andrzej Zaborowski)
  - EsounD audio driver (Frederick Reeve)
  - Gravis Ultrasound GF1 sound card (Tibor "TS" Schuetz)
  - Many, many, bug fixes and new features
2009-03-08 17:09:43 +00:00
Juergen Lock
b1281b8d4e Rename band-aid build fix patch so it gets applied after the file it
patches (duh!)

Pointyhat to:	nox
2009-02-28 17:31:36 +00:00
Juergen Lock
16526aaf38 Add band-aid build fix for -current (usb host support still wont work with
the new stack - helpful hands wanted there!)

PR:		ports/132126
Submitted by:	Oleg Ginzburg <oleg.ginzburg@nevosoft.ru>
2009-02-28 16:50:44 +00:00
Juergen Lock
d6764fe00e Attempt to fix savevm that was broken by the original patch-CVE-2008-0928
by allowing writes outside the disk image boundaries if the guest isn't
running.

PR:		ports/129417
Submitted by:	Nate Eldredge <neldredge@math.ucsd.edu>
Obtained from:	debian (sid kvm_72+dfsg-3.diff.gz, adapted)
2008-12-04 22:36:46 +00:00
Juergen Lock
6bc005ce59 Fix heap overflow in Cirrus emulation
Obtained from:	qemu svn
Security:	http://www.vuxml.org/freebsd/07bb3bd2-a920-11dd-8503-0211060005df.html
2008-11-02 22:59:10 +00:00
Juergen Lock
de9d1ceb0a Fix NOPORTDOCS when texi2html is not installed
Found by:	itetcu
2008-06-03 18:39:51 +00:00
Juergen Lock
686e3757f3 - Add note about network boot issues to pkg-message.s
- Remove obsolete dhcp patch
- Bump PORTREVISION
2008-05-17 18:53:44 +00:00
Juergen Lock
bac358a249 Fix "drive_init()" Disk Format Security Bypass
Obtained from:	qemu cvs
Security:	http://www.vuxml.org/freebsd/8950ac62-1d30-11dd-9388-0211060005df.html
2008-05-08 20:45:10 +00:00
Juergen Lock
c291820c82 - Use PREFIX for qemu-ifup, install default scripts, bump PORTREVISION [1]
- Patch a pointer to pkg-message into the manpage

Submitted by:	bms [1]
2008-04-03 20:18:40 +00:00
Juergen Lock
e2f267539d - Add runtime warning when aio is not loaded
- Bump PORTREVISION

Requested by:	several people on freebsd-emulation@
2008-03-21 17:31:52 +00:00
Juergen Lock
710a65a0c4 Fix unchecked block read/write vulnerability
Obtained from:	qemu cvs
Security:	http://www.vuxml.org/freebsd/9cfbca7f-efb7-11dc-be01-0211060005df.html
2008-03-11 23:22:24 +00:00
Juergen Lock
5eb7c371b5 Actually remove removed patches (oops!)
Pointyhat to:	nox
2008-01-21 01:00:52 +00:00
Juergen Lock
12150beb71 Update to 0.9.1
Changelog at http://fabrice.bellard.free.fr/qemu/changelog.html
2008-01-20 17:16:05 +00:00
Juergen Lock
62d040db7a Fix translation block local denial of service vulnerability
Obtained from:	qemu cvs
Security:	http://www.freebsd.org/ports/portaudit/30f5ca1d-a90b-11dc-bf13-0211060005df.html
2007-12-13 01:10:53 +00:00
Juergen Lock
7cd4402a2b Merge qcow2 fixes from qemu-devel (cvs):
- Qcow2 corruption fix, by Juergen Keil.
- Qcow2: Release refcount table clusters after growing the refcount table,
  by Juergen Keil.
2007-05-26 16:08:17 +00:00
Juergen Lock
a9da25a9a9 Add security fixes from debian etch (slightly adapted to this version)
Obtained from:	debian
Security:	http://www.vuxml.org/freebsd/0ac89b39-f829-11db-b55c-000e0c6d38a9.html
2007-05-02 19:54:05 +00:00
Juergen Lock
7d720684c9 Update to 0.9.0:
- Mouse relative offset VNC extension (Anthony Liguori)
- info vnc command (Anthony Liguori)
- gdbserver fix

NOTES: Please read UPDATING!

Approved by:	miwi (mentor)
2007-02-06 23:49:01 +00:00
Juergen Lock
3c8cb897ad Update to 2007-02-03 snapshot:
- Fix `could not open hard disk image '/dev/ad0'' (e.g.) when open(2)
fails with EPERM instead of EACCES for ro devices.
- PIIX4 support, by Aurelien Jarno.
- Gallileo GT64xxx support, by Aurelien Jarno.
- MIPS Malta system and devices support, by Aurelien Jarno and Stefan Weil.
- ARM ELF loader.
- Improved console handling, thanks Stefan Weil.
- Disable Malta floppy controller for now, by Aurelien Jarno.
- Big endian support for Gallileo, by Aurelien Jarno.
- Add more ATAPI CDROM DMA support, by Juergen Keil.
- Add ARM Angel semihosting to system emulation.
- Don't resume guest when gdb connection terminates and -S specified.
- mips: Implementing dmfc/dmtc.
- Fix DMA timeouts on FreeBSD, by Carlo Marcelo Arenas Belon.
- New multiple snapshot support for VMDK, by Igor Lvovsky.
- Add support for 82371FB (Step A1) and Improved support for 82371SB
(Function 1), by Carlo Marcelo Arenas Belon.
- Accept -help.
- Accept --foo as an alias for -foo.
- Add nodelay option for TCP character devices.
- Use standard character device interface for gdbstub.
- GDB hosted syscalls.
- Upgrade the apic version_id, by Don Laor.
- Save some vm space for the regular program loading zone, by
Pierre d'Herbemont
- script=no for the TUN/TAP net option, by Jean-Christian de Rivaz
- Sparc arm/mips/sparc register patch, by Martin Bochnig.
- PIIX4 SMBus host, EEPROM device emulation, by Ed Swierk.
- sem* and msg* for qemu, by Kirill Shutemov.
- And some more bugfixes.

Approved by:	miwi (mentor, implicit)
2007-02-03 22:15:28 +00:00
Juergen Lock
50ae7e59e8 Fix crashes on -current/amd64 hosts
Submitted by:	jkim
Approved by:	miwi (mentor, implicit)
2007-01-31 23:20:54 +00:00
Juergen Lock
8598b8520e Update qemu to 2007-01-11 snapshot:
- add slirp udp fix
  [this should fix the dns problems with some guests]
- document slirp problems on recent -current (I don't have a -current box
  so if someone wants to help debug this you are most welcome!)
- memsave monitor command
- Dynamic handling of guest mice, by Lonnie Mendez.
- PPC32 Trace Exception and Trap instruction, by Jason Wessel.
- Add -option-rom option to allow loading of PCI option ROMs, by
  Anthony Liguori.
- Add -boot n option for x86 using PXE, by Anthony Liguori.
  [for use with tuntap]
- Support for Bochs "growing" images, by Volker Ruppert.
- Japanese keyboard patch (kazu)
- Revert -disk patch, as requested by Fabrice. The general idea of this
  patch is sound, but the implementation is just too ugly.
  [this should fix the hanging linux guests]
- Devfn number for the PIIX3 southbridge, by Aurelien Jarno.
- Increase MIPS BIOS from 128kB to 4MB, by Aurelien Jarno.
- And some more bugfixes.

Approved by:	miwi (mentor)
2007-01-12 00:13:58 +00:00
Juergen Lock
cc20143e5b Add patch to pass windows keys to qemu guests
PR:		ports/107216
Submitted by:	Scott Robbins <scottro@nyc.rr.com>
Approved by:	miwi (mentor)
2006-12-26 22:41:13 +00:00
Juergen Lock
332215d971 update qemu to 20061225 snapshot:
- Enable TCP_NODELAY, by Daniel Jacobowitz. [speeding up slirp]
- Run monitor over unix domain sockets, by Anthony Liguori.
- Unix domain socket support for VNC, by Anthony Liguori.
- Daemonize option, by Anthony Liguori.
- SCSI emulation improvements, by Chuck Brazie.
[adding scsi disk/cdrom emulation to i386/amd64 guests using new -disk
syntax - quoting /usr/local/share/doc/qemu/qemu-doc.html:

 "-disk scsi,img=file[,sdx=a..g][,type=disk|cdrom][,id=n]"

    Use file as the SCSI disk/CD-ROM image. The defaults are: sdx=a,type=
    disk,id='auto assign'

doing a quick test with a FreeBSD guest I was able to mount and look at
a ufs partition; doesn't seem to quite work with (some?) linux guests
yet tho, will post about this on the qemu list...]
- and a few bug fixes.

Approved by:	miwi (mentor)
2006-12-25 19:49:52 +00:00
Martin Wilke
19aaa9ef71 - Update to 20061216
- Fix usb host support

PR:		ports/106820
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
2006-12-17 00:22:36 +00:00
Martin Wilke
805b398386 - Update to 20061214
- Fix physical device access

PR:		ports/106727
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
2006-12-15 08:17:38 +00:00
Martin Wilke
4d356ed643 - Update to 20061102
PR:		ports/105086
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
Sponsored by:   FreeBSD Bug-a-thon #2
2006-11-04 18:29:35 +00:00
Pav Lucistnik
4a45abe094 - update to 20061031 cvs snapshot (now uses aio and supports acpi and a new
qcow2 image format)
- properly respect NOPORTDOCS
- make -serial /dev/cuadX work (modified patch from this post:
  http://lists.gnu.org/archive/html/qemu-devel/2006-09/msg00201.html , and hi
  Michael! :)
- add WITHOUT_SDL (hi joshe! :) and WITHOUT_CDROM_DMA knobs (the latter to work
  around atapicam problems in FreeBSD guests with the now by default enabled
  ide cdrom dma patch)
- use OPTIONS

PR:		ports/104989
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
2006-10-31 22:55:34 +00:00
Shaun Amott
daf9bed6c4 - Fix build on 4.x [1]
- Respect CFLAGS [2]
- Support parallel port under FreeBSD [3]

PR:		ports/102154 [1], ports/102188 [2]
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> [1],
		Stanislav Sedov <ssedov@mbsd.msk.ru> [2],
		Robert Jenssen (via freebsd-ports) [3]
Approved by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer) [2] [3]
2006-08-21 23:02:01 +00:00
Norikatsu Shigemura
abffcb30ec Update to 0.8.2.
PR:		ports/101381
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
2006-08-07 16:10:27 +00:00
Shaun Amott
b8cd95d65e - Add a fix by Anthony Liguori for the 'invisible wall' problem:
http://lists.gnu.org/archive/html/qemu-devel/2006-05/msg00112.html

- Update pkg-message (linux 2.6 default HZ)

PR:		ports/100722
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
Approved by:	ahze (mentor, implicit)
2006-07-23 00:04:01 +00:00
Norikatsu Shigemura
a61ec5194a Update to 0.8.1.
PR:		ports/96876
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
2006-05-06 16:15:41 +00:00
Pav Lucistnik
fef8509c79 - Update to 2006-04-26 snapshot
PR:		ports/96426
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
2006-04-29 09:15:50 +00:00
Volker Stolz
1039465e55 Fix build on 4.x
PR:		ports/95887
Submitted by:	maintainer
2006-04-23 17:33:29 +00:00
Norikatsu Shigemura
4ec773e477 Update to 2006-04-14 snapshot.
o no longer needs 3-wire configs when using the emulated serial port.
o update patch-libmath to match this commit: [1]
	http://docs.freebsd.org/cgi/mid.cgi?200512021345.jB2Dj6D3057000
o Allow multiple graphics devices.
o ARM Versatile Platform Baseboard emulation.
o Thumb prefetch abort fix.
o simulate a null modem cable.
o 64 bit disassembly.
o USB tablet support (Brad Campbell, Anthony Liguori).
o mouse API changes.

Suggested by:	jkim [1]
PR:		ports/95826
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
2006-04-16 02:38:02 +00:00
Norikatsu Shigemura
8c52a70b64 Update to 2006-04-08 snapshot.
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
2006-04-09 17:09:42 +00:00
Pav Lucistnik
66a6dd30c3 - Lonnie sent me updates to 2 of his usb fixes,
- and posted another usb bugfix affecting FreeBSD guests
- (optionally) seperate out the two WITH_HACKS patches after I learned the
  cirrus patch can cause problems with xp guests too

PR:		ports/94949
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
2006-03-26 15:11:36 +00:00
Pav Lucistnik
b56ad1448d - Add Lonnie's usb host support patches and a bunch of other fixes mostly from
cvs, including a workaround for the -nographic crash.

PR:		ports/94654
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
2006-03-18 21:23:42 +00:00
Edwin Groothuis
ff251aa40f two additional slirp patches for emulators/qemu
Apply two additional slirp patches from the mailing list
	(and quiet WITH_HACKS patching):

	http://lists.gnu.org/archive/html/qemu-devel/2005-12/msg00277.html
	(-> files/patch-slirp-nat)

	http://lists.gnu.org/archive/html/qemu-devel/2005-05/msg00228.html
	(-> files/patch-slirp-mbuf.c)

PR:		ports/91358
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de>
2006-01-05 22:21:14 +00:00
Pav Lucistnik
762aa1d96a - Fix patch from previous revision
PR:		ports/90778
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
2005-12-21 23:46:31 +00:00
Pav Lucistnik
a5136c5d65 - add slirp speedup patch by Paul Brook (avoiding host -> guest packet loss)
PR:		ports/90763
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
2005-12-21 22:12:46 +00:00
Sam Lawrance
53d4bbec5b Update to 2005-11-30 snapshot.
PR:		ports/ports/89816
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
2005-12-03 03:18:40 +00:00
Sam Lawrance
67b8cfeeef Update to 2005-11-12 snapshot.
PR:		ports/88952
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
2005-11-14 05:17:09 +00:00
Norikatsu Shigemura
b4846334d0 Fix build on 4.x.
PR:		ports/88522
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
2005-11-05 14:00:44 +00:00
Norikatsu Shigemura
6561fa6425 Update to 0.7.2s.2005.1030.
o separate kqemu build phase to emulators/kqemu-kmod port.
o cleanup kqemu support.
o cleanup MASTER_SITES.

Discussed with:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
Reviewed by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
2005-10-31 13:43:13 +00:00
Pav Lucistnik
edfcbac53b - Now compiles with system compiler on amd64 again (Klaus-J. Wolf)
- Fix bogus EBUSY with /dev/kqemu on 5+ (Manuel Stuehn)

PR:		ports/86617, ports/87086
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
2005-10-07 19:26:21 +00:00
Pawel Jakub Dawidek
e3f4531d51 Fix a panic on qemu process close (when kqemu is used).
Structure 'ks' was used after it has been freed.

Reviewed by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
2005-10-01 17:03:03 +00:00
Marcus Alves Grando
0059228c1d Fix build in 4.x
Make portlint happier

PR:		86686
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
Approved by:	pav (mentor)
2005-10-01 13:25:09 +00:00