head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.4 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.2 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q1:1.3.0.6 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.3.0.4 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.2 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.1.0.4 pkgsrc-2011Q2-base:1.1 pkgsrc-2011Q1:1.1.0.2 pkgsrc-2011Q1-base:1.1; locks; strict; comment @# @; 1.4 date 2012.06.07.21.23.46; author ryoon; state dead; branches; next 1.3; 1.3 date 2011.09.22.05.37.49; author ryoon; state Exp; branches; next 1.2; 1.2 date 2011.07.11.09.57.18; author ryoon; state dead; branches; next 1.1; 1.1 date 2011.04.03.09.56.39; author shattered; state Exp; branches; next ; desc @@ 1.4 log @Update to 1.1.0 * based on wip/qemu Changelog: 1.1.0 System emulation All targets qdev properties of type hex8 and hex32 used to accept hexadecimal values not prefixed with "0x"; the prefix is mandatory starting with this version. These properties are: iobase, membase, io_base for all devices that support the properties; vram_size for sysbus-g364 and SUNW,tcx; version for sb16 and iommu; ctl_iobase and data_iobase for fw_cfg; readback for debugcon; elcr_addr and elcr_mask for i8259. PCI addresses can still be addressed with a pair of hexadecimal device and function without a "0x" prefix. -kernel, -initrd and -append are now aliases for suboptions of -machine (for example -machine kernel=foo), and as such they are also available with -readconfig. PCI-to-PCI bridges are supported [...] PCI emulation includes a standard hot-plug controller [...] The coroutine backend can now be configured using configure --with-coroutine=.... A new coroutine backend sigaltstack is available for platforms that don't support the default ucontext backend. Last but not least: the SDL user interface now uses the new QEMU icon. ARM The syborg machine type has been removed since the Symbian Virtual Platform is no longer relevant with the disbanding of Symbian. A device tree can be passed to the kernel using -dtb option (or alternatively -machine dtb=...). New 'nuri' and 'smdkc210' models of Samsung Exynos4210 based devboards. New 'highbank' model of the Calxeda Highbank. New 'vexpress-a15' model of the Versatile Express Cortex-A15. PowerPC The Bamboo machine now works with TCG, before only KVM was able to execute 440 code. Pseries handles PCI, allowing for virtio devices with -M pseries. Pseries works with PR KVM allowing for -M pseries -enable-kvm to work on G5s. We can now emulate e500mc cores, but no e500mc based board is emulated yet. You need to use -M mpc8544ds and a special guest kernel. Timers on ppc405 now work and don't segfault QEMU. S/390 Added support to -kernel to allow booting of ELF binaries. Fixed -kernel to allow booting of newer guest kernels. Devices can now be hotplug add'ed (remove is not there yet). Rebooting a virtual machine now works. SPARC Added interrupt controller and support of vector interrupts. Fixed handling 32 bit instructions on a sparc64 CPU. Fixed block load instructions regression happened in 1.0 release. Fixed BCD mask in m48t59 emulation, so that Solaris 2.5.1 doesn't hang on sun4m emulation when day of month >21. Fixed initrd loading in qemu-system-sparc64. x86 NMIs are correctly injected through the LAPIC (rather than sent directly to the guest CPU) and respect the LINT1 mask, thus fixing kdump. The -rtc-td-hack option is now available as a qdev property (-global mc146818rtc.lost_tick_policy=slew) and as such can be specified in a -readconfig configuration file. When the system is suspended to RAM, QEMU will now stop executing the guest until a wakeup event occurs. Implemented wakeup events include key presses, mouse button presses, RTC alarm, ACPI timer expiration, serial console input (off by default; enable with -global isa-serial.wakeup=1), and the system_wakeup monitor command. KVM can optionally use kernel-based emulation of the local APIC, IOAPIC, i8259 PIC and i8254 PIT. This is supported with the -machine ...,kernel_irqchip=on command-line option. MSI is not supported yet when using the kernel_irqchip option. Emulation of a PC System Flash device. The feature is enabled by adding a pflash drive. This feature is not supported when KVM is enabled. See Features/PC System Flash for more information. KVM guests support Hyper-V enlightenments. These are enabled by the -cpu features hv_spinlocks, hv_relaxed and hv_vapic. Device emulation The virtio-scsi device is now supported by QEMU. The guest driver will be supported in Linux starting at version 3.4. QEMU now includes experimental support for USB 3.0 (xHCI). Various improvement on the floppy emulation, most notably media change has been fixed Audio devices Audio devices can now use volume control capabilities exposed by the PulseAudio and Spice backends. (Note: all audio devices do not expose their volume control unless --enable-mixemu is turned on). Block devices QEMU's NBD client implementation and the qemu-nbd server both fully support asynchronous I/O. The rbd block driver supports the discard operation now The vpc block driver supports the Fixed Disk subformat of VHD images now The new QMP command transaction can be used to perform a set of multiple snapshots atomically, rolling back to the original images if there is a problem along the way. See Features/SnapshotsMultipleDevices for more information. The new monitor command block_stream lets guest copy data from the backing file to the current image while the guest is running. This lets users enables quick provisioning of new virtual machines using shared remote storage, and lets the guest transition incrementally to fast local storage. An alternative to streaming is the copy-on-read option of the -drive command-line option, which only transfers data when the guest needs it. An experimental extension of the qcow2 file format has been introduced. With the implementation as of QEMU 1.1, the most important addition is zero clusters, which allows image streaming and copy-on-read to leave images sparse if the backing file they are copying from is sparse. In order to enable the extension, use qemu-img create -f qcow2 -o compat=1.1 for creating the image. Note that older versions of QEMU won't be able to read such images. I/O throttling is experimentally supported using the new -drive options bps/bps_rd/bps_wr/iops/iops_rd/iops_wr. It is expected to work with virtio-blk and IDE harddisks, but may lead to hangs when used with CD-ROM or floppy emulation or other devices. qemu-io supports new options to enable tracing and to choose a cache modes Network devices QEMU supports a new type of network device, bridge (used with -net bridge or -netdev bridge). The new type is similar to tap, but uses a helper program instead of a script to attach the device to a bridge. The helper program can then be installed as setuid. The helper program supports a simple ACL and configuration mechanism, see the commit message and feature page for documentation. Live Migration, Save/Restore Live migration (or save/restore) from QEMU releases prior to 0.13 to QEMU 1.1 is not supported. Live migration supports IPv6. IPv6 addresses can be expressed as tcp:host:port. Brackets around a numeric host address are required if a port is also specified, otherwise they can be omitted. Guest agent qemu-ga has been ported to Windows. Interfaces added for suspending guests to disk/ram, and retrieving information about network interfaces Interfaces for filesystem freeze have been hardened, and no longer depend on guest agent runtime state to determine whether a system is currently frozen. An easier to use reset mechanism has been added: guest-sync-delimited. Host support ARM hosts are now supported again (they were broken in 1.0). Sockets and SLIRP on Windows hosts was broken in 0.14 and works again. 64-bit Windows hosts are now supported. User-mode emulation User-mode emulation can provide some information from the /proc filesystem. On 64-bit hosts user-mode emulation now defaults to reserving 0xf7000000 bytes of address space for the guest. This significantly reduces the likelihood of QEMU having to fail a guest mmap() request when there is still memory available. This reservation can be overridden with the -R command line option. Testing A make check target has been implemented and runs some quick sanity tests qemu-iotests, which was previously hosted in an external git repository, has been merged into the QEMU source tree Build dependencies Building QEMU requires glib 2.12 on POSIX systems, and glib 2.20 on Win32 systems. Changelog: 1.0.1 * Version 1.0.1 * Merge branch 's390-1.0' of git://repo.or.cz/qemu/agraf * Merge branch 'ppc-1.0' of git://repo.or.cz/qemu/agraf * e1000: bounds packet size against buffer size * s390: fix cpu hotplug / cpu activity on interrupts * s390x: add TR function for EXECUTE * pseries: Don't try to munmap() a malloc()ed TCE table * pseries: Populate "/chosen/linux,stdout-path" in the FDT * pseries: Add a routine to find a stable "default" vty and use it * pseries: Emit device tree nodes in reg order * kvm-ppc: halt secondary cpus when guest reset * pseries: Fix array overrun bug in PCI code * console: Fix segfault on screendump without VGA adapter * Merge branch 'master' of ssh://git.qemu.org/pub/git/qemu-stable-1.0 * rbd: always set out parameter in qemu_rbd_snap_list * Documentation: Add qemu-img -t parameter in man page * qemu-img rebase: Fix for undersized backing files * coroutine: switch per-thread free pool to a global pool * qiov: prevent double free or use-after-free * PPC: Fix linker scripts on ppc hosts * target-sh4: ignore ocbp and ocbwb instructions * usb-ohci: td.cbp incorrectly updated near page end * usb-host: properly release port on unplug & exit * usb-storage: cancel I/O on reset * Fix parse of usb device description with multiple configurations * pc: fix event_idx compatibility for virtio devices * pc: add pc-0.15 * cris: Handle conditional stores on CRISv10 * configure: Enable build by default PIE / read-only relocation sections on OpenBSD amd64/i386. * target-i386: fix cmpxchg instruction emulation * hw/9pfs: Use the correct signed type for different variables * hw/9pfs: replace iovec manipulation with QEMUIOVector * hw/9pfs: Use the correct file descriptor in Fsdriver Callback * hw/9pfs: Add qdev.reset callback for virtio-9p-pci device * hw/9pfs: Reset server state during TVERSION * hw/9pfs: use migration blockers to prevent live migration when virtfs export path is mounted * hw/9pfs: Improve portability to older systems * exec.c: Fix subpage memory access to RAM MemoryRegion * malta: Fix regression (i8259 interrupts did not work) General i386-softmmu is no longer named qemu but instead referred to as qemu-system-i386 for better consistency with other targets. A new tool is likely to be introduced that uses the qemu name so distributions are advised to not undo this change. QEMU now uses a separate thread for VCPU execution. This merges the biggest difference between the qemu-kvm tree and upstream QEMU. A new memory dispatch API has been added internally. A new monitor command "info mtree" can show the hierarchy of memory regions in the guest. QEMU now has a build dependency on glib and makes extensive use of glib. QEMU now can run on more hosts. Hosts without a native code generator can use the TCG interpreter (TCI). See Features/TCI for more information. Block devices (disks) QEMU now supports I/O latency accounting in the monitor command "info blockstats". Errors are now tracked per device and are shown by the monitor command "info block". All image formats now support asynchronous operation. IDE and SCSI emulation will use this feature, while other devices (notably floppy and SD) will not. IDE/ATAPI A large number of bugs were fixed regarding CD media change and tray locking. SCSI Memory management errors could crash QEMU when scsi-disk encountered I/O errors. Many instances of this problem were fixed. The accuracy of error handling for SCSI emulation has been greatly improved. SCSI devices can now be addressed by channel, target (id) and LUN. Not all emulated HBAs will support this feature (in particular, the LSI controller will not). Block device pass through is now supported through a new scsi-block device. The scsi-block device works with block devices (like /dev/sda or /dev/sr0) rather than /dev/sgN devices, and is more efficient because it does not consume arbitrary amounts of memory when the guest does large data transfers. SCSI CD-ROMs now report media changed events. SCSI CD-ROMs now support DVD images. Bugfixes for IDE media change also apply to SCSI. SCSI devices now report a unit attention condition when the system is started or reset. This may cause problems with old firmware versions. VDI Now supports discarded blocks in dynamically-sized images. User-mode networking (SLIRP) SLIRP can process ARP replies and gratuitous ARP requests from the guest. ARM QEMU now supports the new Cortex-A15 instructions in linux-user mode (via "-cpu any"): VFPv4 fused multiply-accumulate (VFMA, VFMS, VFNMA, VFNMS) and also integer division (UDIV, SDIV). The vexpress-a9, versatileab, versatilepb and realview-* boards now have audio support. QEMU is known not to work on ARM hosts in this release. (ARM target emulation is fine.) pSeries sPAPR VIO devices can now be created with -device. Xtensa QEMU now supports DC232b and FSF xtensa CPU cores. QEMU now supports sim (similar to Tensilica ISS) and LX60/LX110/LX200 machines. Migration QEMU now supports live migration using image files like QCOW2 on shared storage @ text @$NetBSD: patch-bb,v 1.3 2011/09/22 05:37:49 ryoon Exp $ * fix build on NetBSD/4.0.1. --- scripts/signrom.sh.orig 2011-08-08 18:28:42.000000000 +0000 +++ scripts/signrom.sh @@@@ -26,12 +26,12 @@@@ test "$1" -a "$2" || exit 1 sum=0 # find out the file size -x=`dd if="$1" bs=1 count=1 skip=2 2>/dev/null | od -t u1 -A n` +x=`dd if="$1" bs=1 count=1 skip=2 2>/dev/null | od -t u1 | sed -e 's/^[0-9]* *//' -e 's/^00*\([0-9]\)/\1/'` #size=`expr $x \* 512 - 1` size=$(( $x * 512 - 1 )) # now get the checksum -nums=`od -A n -t u1 -v -N $size "$1"` +nums=`od -t u1 -v "$1" | sed -e 's/^[0-9]* *//' -e 's/^00*\([0-9]\)/\1/' -e 's/ 00*\([0-9]\)/ \1/g'` for i in ${nums}; do # add each byte's value to sum sum=`expr \( $sum + $i \) % 256` @ 1.3 log @Restore missing patches. It is my mistake. * patch-aa is for tap detection bug. * patch-bb is for build on NetBSD 4. The patch-aa requires bump of PKGREVISION. Pointed out by Sergey Svishchev in private e-mail. @ text @d1 1 a1 1 $NetBSD: patch-bb,v 1.1 2011/04/03 09:56:39 shattered Exp $ @ 1.2 log @Update to 0.14.1 * New features are not tested yet, for example SPICE protocol support. * I have tested on NetBSD/i386 5.99.54 and DragonFly/i386 2.10.1 as host, NetBSD/{amd64, i386, sparc} as guest. Changelog: 0.14.1 virtio-blk: fail unaligned requests qed: Fix consistency check on 32-bit hosts exit if -drive specified is invalid instead of ignoring the "wrong" -drive vhost: fix dirty page handling Do not delete BlockDriverState when deleting the drive vnc: tight: Fix crash after 2GB of output lan9118: Ignore write to MAC_VLAN1 register Don't allow multiwrites against a block device without lsi53c895a: add support for ABORT messages virtio-pci: fix bus master work around on load fix applesmc REV key rbd: don't link with -lcrypto net: Add the missing option declaration of "vhostforce" lsi53c895a: Update dnad when skipping MSGOUT bytes Revert "prep: Disable second IDE channel, as long as ISA IDE emulation doesn't support same irq for both channels" isa-bus: Remove bogus IRQ sharing check virtio-net: Fix lduw_p() pointer argument of wrong size hw/sd.c: Add missing state change for SD_STATUS, SEND_NUM_WR_BLOCKS vnc: Fix fatal crash with vnc reverse mode qemu-char: Check for missing backend name 0.14.0 Targets ARM Most of the changes are related to bug fixes and improvements to match what the real hardware does. For now there is no new board or CPU. MIPS Host CPU consumption for idle guests Timer fixes FPU improvements SH4 Various bug fixes and improvements including SM501 2D engine copyrect support, needed to boot recent kernels MMU mmaped TLB access, needed to boot recent kernels Floating point exceptions and correct NaN support. PPC Fix running recent PPC64 kernels New maintainer: Alexander Graf Improve interrupt injection with KVM Enable PV enabled guests for speedup with KVM Floating point fixes Add a ppc-440x5 Xilinx model Add a virtex5 ml507 refdesign board for ppc-440x5 BookE MMU emulation improvements s390x No news, business as usual. SPARC Fix div(cc) and sdiv(cc) instruction emulation, fixes Xorg crash in the guest Hosts ARM Fix random crashes Fix 64-bit big-endian targets support MIPS Fix random crashes IA64 Fix random crashes for 32-bit targets Devices IDE / AHCI Added emulation layer for an ICH-9 AHCI controller (not yet stable). Tested with Linux, OpenBSD, Windows Vista and Windows 7. The AHCI emulation supports NCQ, so multiple read or write requests can be outstanding at the same time. to use it, use the following command line snippet: -drive id=disk,file=,if=none -device ahci,id=ahci -device ide-drive,drive=disk,bus=ahci.0 SCSI Various bug fixes, no new features. USB Added USB support for remote wakeup, allowing the guest to suspend the USB bus when idle, which in turn reduces the CPU overhead of an idle machine. The USB subsystem also got a bunch of patches to prepare it for USB 2.0 support. virtio virtio-pci can use ioeventfd for virtqueue notify. On systems that support KVM, the ioeventfd mechanism can be used to make virtqueue notify a lightweight exit by deferring hardware emulation to the iothread and allowing the VM to continue execution. This model is similar to how vhost receives virtqueue notifies. The result of this change is improved performance for userspace virtio devices. Virtio-blk throughput increases especially for multithreaded scenarios and virtio-net transmit throughput increases substantially. Read the commit message for more details. Various fixes and stabilization for live-migration: Various virtio-net improvements: Make tx_timer timeout configurable Limit number of packets sent per TX flush Introduce a new bottom half packet TX Fix cross-endianness support PCI/PCI Express Improved PCI Express support and functionalities with the implementation of: flr (Function Level Reset) aer (Advanced Error Reporting) and other improvements A new monitor command to inject errors into the PCI bus: pcie_aer_inject_error Implementation of Message Signaled Interrupts (MSI/MSI-X) support Separation of the PCI bridge code from the main PCI code. Sound New Intel HD Audio support, adding three new devices: intel-hda: Intel HD Audio Controller, the PCI device. hda-duplex: HDA Codec. Attaches to the HDA bus. Supports 16bit stereo, rates 16k -> 96k, playback, recording and volume control (with CONFIG_MIXEMU=y). hda-output: HDA Codec without recording support. Subset of the hda-duplex codec. Use this if you don't want your guests access your mic. Usage: add '-device intel-hda -device hda-duplex' to your command line. Tested guests: Linux works. Win7 works. DOS (mpxplay) works. WinXP doesn't work. Real Time Clock Fix binary/BCD mode switch Video Fix cirrus VGA crash with some guests Fix curses big endian support Block Drivers qcow2 Added a writeback metadata cache. This improves performance of scenarios with lots of cluster allocations noticably (e.g. installation or after taking a snapshot), in some benchmarks by a factor of ten or more. Use cache=none or cache=writeback to take advantage from this change. Copy snapshots out of QCOW2 disk, eg: qemu-img convert -f qcow2 -O qcow2 -s snapshot_name src_img bck_img Zero-copy read and write operations Other fixes and code cleanups: qcow2: Invalidate cache after failed read block: Allow bdrv_flush to return errors qcow2: Simplify image creation qcow2: Fixes unaligned access on IA64 qed Introduction of the QEMU Enhanced Disk (qed) image format. It is a disk image format that forgoes features found in qcow2 in favor of better levels of performance and data integrity. Due to its simpler on-disk layout, it is possible to safely perform metadata updates more efficiently. More information about qed: http://wiki.qemu.org/Features/QED Initial thread discussion: http://lists.nongnu.org/archive/html/qemu-devel/2010-09/msg00310.html ceph/rbd Introduction of the new ceph/rbd block driver. RBD is an block driver for the distributed file system Ceph. More information about ceph: http://ceph.newdream.net/ nbd Improve qemu-nbd performance by 4400 %. This patch combines the reply header and payload send operation. Introduce NBD named exports. Spice New support for the SPICE protocol. The project main focus is to provide high-quality remote access to QEMU virtual machines. More information about SPICE can be found at the project's web site: http://spice-space.org/ New qxl device. qxl is a paravirtual graphics card. The qxl device is the bridge between the guest and the spice server (aka libspice-server). The spice server will send the rendering commands to the spice client, which will actually render them. The spice server is also able to render locally, which is done in case the guest wants read something from video memory. Local rendering is also used to support display over vnc and sdl. qxl is activated using -vga qxl. qxl supports multihead, additional cards can be added via '-device qxl. Relevant commits: spice: core bits spice: add keyboard spice: add mouse spice: simple display spice: add tablet support spice: tls support spice: make compression configurable. spice: add config options for channel security. spice: add config options for the listening address spice: add misc config options spice: add audio spice: add qxl device spice: connection events. QMP / monitor TODO: QMP is now stable, except for error reporting? The work to facilitate the management of QEMU instances has been improved. QMP has received various fixes. Now it is possible to call a traditional monitor command through QMP, in case your application depends on the output or the command is not yet ported to QMP. New commands: query-spice / info spice human-monitor-command set_password drive_del block_resize command, allowing resizing of block devices while qemu is running. For virtio-blk the size is updated automatically when this command is issued on the host. IDE is not supported. For SCSI devices the new size can be updated in Linux guests by doing the following shell command: echo > /sys/class/scsi_device/0:0:0:0/device/rescan Tracing Introduction of platform-independent tracing, more information about it: http://wiki.qemu.org/Features/Tracing Documentation and tutorial: http://git.qemu.org/qemu.git/plain/docs/tracing.txt Some relevant commits: Add trace-events file for declaring trace events Add a DTrace tracing backend targetted for SystemTAP compatibility Add LTTng Userspace Tracer backend Add simple built-in tracing backend Add stderr trace-event backend: Support for dynamically enabling/disabling trace events Specify trace file name Add trace-file command to open/close/flush trace file Other stuff Extend -option-rom command to have additional parameter bootindex Little endian / big endian MMIO framework. Until now, most devices had special hacks to allow them to work on big and little endian systems (ppc / x86). With that framework, they should mostly work with both and not require and device specific hacks anymore. @ text @d3 5 a7 3 --- pc-bios/optionrom/signrom.sh.orig 2010-02-23 20:54:38.000000000 +0000 +++ pc-bios/optionrom/signrom.sh 2010-04-09 06:18:25.000000000 +0000 @@@@ -26,12 +26,12 @@@@ d17 1 a17 1 -nums=`od -A n -t u1 -v "$1"` d21 1 a21 1 sum=`expr $sum + $i` @ 1.1 log @PR/44325 PR/42899 -- fix build on netbsd-4 @ text @d1 1 a1 1 $NetBSD$ @