Commit graph

92 commits

Author SHA1 Message Date
Tobias Kortkamp
5fa9d49141 emulators/qemu: Fix build without DOCS
- While here also add missing X11 dependencies to the GTK2 option

/usr/bin/install -c -c -m 0644 docs/qemu-qmp-ref.7 "/wrkdirs/usr/ports/emulators/qemu/work/stage/usr/local/man/man7"
install: docs/qemu-qmp-ref.7: No such file or directory
gmake[1]: *** [Makefile:576: install-doc] Error 71
gmake[1]: Leaving directory '/wrkdirs/usr/ports/emulators/qemu/work/qemu-2.9.0'

PR:		221749
Submitted by:	smh
Reviewed by:	novel
Approved by:	bofh
MFH:		2017Q4
2017-10-06 18:53:00 +00:00
Muhammad Moinur Rahman
7896bf95c6 emulators/qemu: Update version 2.8.1=>2.9.0
- Reorder LIB_DEPENDS
- Add VDE Networking OPTION [1]
- Move SAMBA CONFIGURE options to new clause from default
- Fix CONFIGURE failure [2]

PR:		220836[1], 220835[2]
submitted by:	holindho@saunalahti.fi [1][2]
Relnotes:	https://wiki.qemu.org/index.php/ChangeLog/2.9
2017-08-04 13:45:29 +00:00
Muhammad Moinur Rahman
cf2484d8a1 emulators/qemu: Update version 2.6.1=>2.8.0
- Fix ncurses build uses to use base version and remove from CONFIGURE_ARGS
  for OPTIONS usage [1]

PR:		211973[1]
Submitted by:	ilavsky.martin@gmail.com[1]
2017-03-10 12:54:21 +00:00
Jan Beich
7277ec6a16 Assume "pkg-config libusb*" works after 9.x EOL
FreeBSD appears to use different pkg-config name for 0.1.x API but it
doesn't matter much as 0.1, 1.0 and 2.0 share CFLAGS/LIBS.
2017-01-05 22:58:02 +00:00
Muhammad Moinur Rahman
49298d0d19 emulators/qemu: Unbreak in 11+ [1]
- Fix ncurses build uses to use base version and remove from CONFIGURE_ARGS
  for OPTIONS usage [2]

PR:		212057 [1] 211973 [2]
Submitted by:	mat [1]	ilavsky.martin@gmail.com [2]
2016-08-27 17:15:50 +00:00
Muhammad Moinur Rahman
3241ffeaf1 emulators/qemu: Update version 2.5.1.1=>2.6.1
- Remove BSD_USER related codes
- Add NCURSES support [1]
- Fix STATIC_LINKS code to not build with X11 support

PR: 		211973 [1]
Submitted by:	ilavsky.martin@gmail.com [1]
2016-08-19 20:52:57 +00:00
Muhammad Moinur Rahman
82892483e0 emulators/qemu: Fix patch files which was updated in latest dist
Submitted by:	bar
2016-06-15 18:04:36 +00:00
Muhammad Moinur Rahman
fd7dd95f0d emulators/qemu: Update version 2.4.0=>2.5.1.1
- Change X86_TARGETS Description
- Update pkg-plist to fix X86_TARGETS issue
2016-06-10 11:01:52 +00:00
Mathieu Arnold
ea98dfade6 Fix build with Perl 5.25.1+.
Unescaped left brace in regex is illegal in regex.

With hat:	perl@
Sponsored by:	Absolight
2016-05-31 10:18:27 +00:00
Muhammad Moinur Rahman
cb11558b75 emulators/qemu: Update version 0.11.1=>2.4.1
- MASTER_SITES has been changed from SAVANNAH and local repo of nox@
  to new wiki.qemu.org
- Take MAINTAINERSHIP
- Updated to maintain version release with UPSTREAM. qemu-devel will be
updated to maintain with SNAPSHOTS
- Some of the patches has been converted to OPTIONSNG with post-patch
- Most of the patches are now makepatch compatible
- Converted most of the LEGACY OPTIONS to OPTIONSNG
2015-12-16 14:15:19 +00:00
Juergen Lock
f0e20e9950 - Apply fixes for pcnet guest to host escape vulnerability - CVE-2015-3209.
- Bump PORTREVISIONs.

PR:		201064
Submitted by:	koobs
Security:	https://vuxml.FreeBSD.org/freebsd/acd5d037-1c33-11e5-be9c-6805ca
1d3bb1.html
2015-06-26 19:14:41 +00:00
Juergen Lock
a5d6daade5 - Apply fixes for "BENOM" vulnerability - CVE-2015-3456 .
- Bump PORTREVISIONs.

PR:		200255
PR:		200256
PR:		200257
Submitted by:	venture37@geeklan.co.uk
Obtained from:	http://git.qemu.org/?p=qemu.git;a=commitdiff;h=e907746266721f305d67bc0718795fedee2e824c
Security:	http://vuxml.FreeBSD.org/freebsd/2780e442-fc59-11e4-b18b-6805ca1d3bb1.html
2015-05-17 10:09:36 +00:00
Adam Weinberger
79d6017866 Rename emulators/ patch-xy patches to reflect the files they modify. 2014-07-28 18:39:29 +00:00
Juergen Lock
bae371eefc - Fix build after texi2html grew a new arg so -number became ambigious. [1]
- Remove double quotes from *_DESC now that make showconfig no longer
  needs them.

Submitted by:	pointyhat via linimon and pav [1]
2012-06-19 16:19:16 +00:00
Stanislav Sedov
764bc338f9 - Fix SMC91c111 device emulation in qemu. This allows FreeBSD to boot on
the GUMSTIX platform.

Approved by:	nox (maintainer)
Obtained from:	qemu git
2011-08-31 02:34:44 +00:00
Juergen Lock
63d98d05d8 - Add patch and knob (defaulted to on) to support udp networking
and a patch for promiscuous multicast for the emulated e1000 and
  eepro100 nics, both to support using qemu with the (also to be
  updated) emulators/gns3 port.
- Bump PORTREVISION.

Requested by:	Benjamin Epitech <mlspirat42@gmail.com>
		(via private email)
Obtained from:	http://sourceforge.net/projects/gns-3/files/Qemu/qemu-0.11.0-olive.patch/download (in parts)
2011-07-13 19:59:15 +00:00
Juergen Lock
d192ad85aa - Avoid using mmap MAP_ANON with a non-zero offset. [1]
- Bump PORTREVISION.

PR:		kern/71258 [1]
2010-05-30 19:22:32 +00:00
Juergen Lock
7052bc7d68 - Fix libcurl probe for emulators/qemu and add proper dependencies and knobs.
- Bump PORTREVISIONs.

PR:		ports/145591
Submitted by:	gcooper
2010-04-11 11:42:38 +00:00
Juergen Lock
47de8e10d8 - Welcome usable qemu pcap networking! :)
1. Fix packet delays. [1]
  2. Truncate oversize packets according to host interface's MTU
     to avoid e.g. Linux guests panic'ing.
     Note:  This is only necessary as a stopgap measure for cases like
     host inferfaces using TSO (it still causes retransmissions),
     the better workaround is to disable the feature on the host
     interface while using qemu's pcap code.
- Add note about pcap to pkg-message.s
- Bump PORTREVISIONs.

Submitted by:	jkim [1]
2010-02-04 20:27:30 +00:00
Juergen Lock
7f1ce3a82d Fix NOPORTDOCS.
Submitted by:	QAT
2009-12-06 22:49:50 +00:00
Juergen Lock
b987bd37c9 - Update to 0.11.1 - from the official announcement:
- fix I2C slave addressing (Juha Riihimaki)
  - Revert "vga: do not resize the screen on hw_invalidate" (Aurelien Jarno)
  - slirp: fix use-after-free (Mark McLoughlin)
  - Fix sparc.ld (Blue Swirl)
  - ELF codedump build failures (Laurent Desnogues)
  - kvm: Move KVM mp_state accessors to i386-specific code (Hollis Blanchard)
  - fix configure script with armv4l cpu (Laurent Desnogues)
  - net: disable draining tap queue in one go (Mark McLoughlin)
  - pcnet: Restart poll timer on pcnet_start (Jan Kiszka)
  - Sparc32: Fix lance (Blue Swirl)
  - mac99: fix segmentation fault on startup (Aurelien Jarno)
  - usb-linux.c: fix buffer overflow (Jim Paris)
  - ARM host: fix generated blocks linking (Laurent Desnogues)
  - qemu serial: lost tx irqs (affecting FreeBSD's new uart(4) driver)
    (Juergen Lock)
  - exec-all.h: increase MAX_OP_PER_INSTR to 96 from 64 (Aurelien Jarno)

- Added a cherry picked commit from stable branch that fixes qcow2.
2009-12-06 19:37:46 +00:00
Juergen Lock
c7acb4aa30 - Fix a serial emulation bug affecting (at least) FreeBSD 8's new
uart(4) driver.
- Bump PORTREVISION.

Reported by:	Olivier Cochard-Labbé <olivier@cochard.me>
Feature safe:	yes
2009-09-18 19:29:24 +00:00
Juergen Lock
d5169e4d2c - Remove the dynticks patch for now, it seems to cause even worse timing
behavoiur than the default -clock unix, see this post:
	http://lists.gnu.org/archive/html/qemu-devel/2009-09/msg00049.html
- Add a patch to close the tap fd before invoking the ifdown script
instead of after, this avoids triggering a KASSERT when doing things
like `ifconfig tap0 destroy' from in there.  Inspired by this post:
	http://lists.freebsd.org/pipermail/freebsd-emulation/2009-August/006700.html [1]
- Updated version of the pcap patch. [2]
- Bump PORTREVISION.

Submitted by:	gamato@users.sf.net (martinko) [1]
Submitted by:	jkim [2]
2009-09-05 14:18:17 +00:00
Juergen Lock
a77a39e475 Update to 0.10.5 - from the official announcement:
- kvm: trim unsupported cpu features from cpuid (Avi Kivity)
   - kvm: provide a better error message for -smp > 1 (Mark McLoughlin)
   - Remove initrd printfs (Richard Jones)
   - Initial variables found by valgrind (Jean-Christophe Dubois)
   - Fix -initrd with > 4GB guests (Glauber Costa)
   - Fix busy loop on live migration for certain platforms (Uri Lublin)
   - Remove GCC 3.x requirements from docs (Hollis Blanchard)
   - ETRAX: fixes for kernel command line, ethernet address, bmi (Edgar
     Iglesias)
   - CRIS: Fix bmi (Edgar Iglesias)
   - Fix bounce buffer errors (Avi Kivity)
   - Fix regression in -kernel (Anthony Liguori)
2009-05-21 16:28:27 +00:00
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