summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit '5f6b9e8fd5b9516170e582d9b6c27c98519a8031' into upstream-mergeAvi Kivity2009-09-211-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '5f6b9e8fd5b9516170e582d9b6c27c98519a8031': (29 commits) Probe for fdatasync() PPC: make system bus parent of PCI bus Fix indentation ESP: convert to VMState target-alpha: fix extlh instruction target-ppc: optimize slw/srw/sld/srd audio: use correct email address audio: internal API change sdlaudio: use correct function names in sdl_XXX calls oss: use audio_pcm_hw_clip_out alsa: use audio_pcm_hw_clip_out audio: introduce audio_pcm_hw_clip_out helper function audio: use muldiv64 where it makes sense coreaudio: fix sloppy "posixification" by 1ea879e5580f63414693655fcf0328559cdce138 tcg: fix size of local variables in tcg_gen_bswap64_i64 qemu serial: lost tx irqs (affecting FreeBSD's new uart(4) driver) fix typo in configure --help escc: fix IRQ routing, broken by 6c319c82223a1766c5d64a20051e5c6ab7b53951 ide/isa: convert to qdev. ide/pci: convert to qdev. ... Conflicts: configure Signed-off-by: Avi Kivity <avi@redhat.com>
| * Probe for fdatasync()Blue Swirl2009-09-201-1/+1
| | | | | | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | Merge commit '1a621c8dc9e4dcc9d385bdd2c24c5b5dbfd0ebe4' into upstream-mergeMarcelo Tosatti2009-09-141-0/+41
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1a621c8dc9e4dcc9d385bdd2c24c5b5dbfd0ebe4': (51 commits) ram: remove support for loading v1 move mux focus field from CharDriverState to MuxDriver monitor: fix muxing qdev: add parser for chardev properties Allow -serial chardev:<name> convert udp chardev to QemuOpts. convert mux chardev to QemuOpts. convert vc chardev to QemuOpts. convert tty + parport chardevs to QemuOpts. convert windows console chardev to QemuOpts. convert braille chardev to QemuOpts. convert msmouse chardev to QemuOpts. convert stdio chardev to QemuOpts. convert pty chardev to QemuOpts. convert unix+tcp chardevs to QemuOpts. sockets: add inet_listen_opts sockets: add inet_connect_opts sockets: add unix_*_opts for windows. sockets: add unix_listen_opts sockets: add unix_connect_opts ... Conflicts: vl.c Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
| * block: use fdatasync instead of fsync if possibleChristoph Hellwig2009-09-111-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If we are flushing the caches for our image files we only care about the data (including the metadata required for accessing it) but not things like timestamp updates. So try to use fdatasync instead of fsync to implement the flush operations. Unfortunately many operating systems still do not support fdatasync, so we add a qemu_fdatasync wrapper that uses fdatasync if available as per the _POSIX_SYNCHRONIZED_IO feature macro or fsync otherwise. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * Add bdrv_aio_multiwriteKevin Wolf2009-09-111-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One performance problem of qcow2 during the initial image growth are sequential writes that are not cluster aligned. In this case, when a first requests requires to allocate a new cluster but writes only to the first couple of sectors in that cluster, the rest of the cluster is zeroed - just to be overwritten by the following second request that fills up the cluster. Let's try to merge sequential write requests to the same cluster, so we can avoid to write the zero padding to the disk in the first place. As a nice side effect, also other formats take advantage of dealing with less and larger requests. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * Revert "support colon in filenames"Anthony Liguori2009-07-091-26/+0
| | | | | | | | | | | | This reverts commit 707c0dbc97cddfe8d2441b8259c6c526d99f2dd8. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Revert "support colon in filenames"Avi Kivity2009-07-121-26/+0
| | | | | | | | | | | | | | | | | | | | | | This reverts commit 707c0dbc97cddfe8d2441b8259c6c526d99f2dd8. It was reverted from upstream as well. Conflicts: block.c Signed-off-by: Avi Kivity <avi@redhat.com>
* | Merge commit '600309b6108484a60be4a84cfe68e6b8d645799c' into upstream-mergeAvi Kivity2009-07-051-0/+13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '600309b6108484a60be4a84cfe68e6b8d645799c': Rename target_cpu to target_arch2 monitor: Fix typo in documentation target-mips: fix MADD and MSUB/MSUBU instructions Fix hxtool. Use ctz64 in favor of ffsll Respect the standard Use pstrcpy and pstrcat to avoid OpenBSD linker warning Suppress a GCC warning Fix breakage by obsolete _P() for good Fix sdl_zoom compile problems on OpenBSD Fix missing strnlen problems Fix typo Remove bogus -Werror Conflicts: configure Signed-off-by: Avi Kivity <avi@redhat.com>
| * Fix missing strnlen problemsBlue Swirl2009-07-011-0/+13
| | | | | | | | | | | | | | Fix missing strnlen (a GNU extension) problems by using qemu_strnlen used for user emulators also for system emulators. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | Merge commit '6c1f42fe83bf9bc14a7a6cc5afd8dad83ee25c74' into upstream-mergeAvi Kivity2009-06-301-0/+26
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6c1f42fe83bf9bc14a7a6cc5afd8dad83ee25c74': fix KVMs GET_SUPPORTED_CPUID feature usage CPUID Fn8000_0001.EAX is family/model/stepping, not features introduce -cpu host target allow hypervisor CPUID bit to be overriden support colon in filenames Prefer ncurses over curses slirp: Basic VLAN client info_str slirp: Make hostfwd_add/remove multi-instance-aware net: Provide VLAN client lookup helper slirp: Enable multi-instance support for the smb service slirp: Improve error handling in slirp_smb slirp: Use shell to erase smb directory slirp: Save/restore bootp client states slirp: Enable multiple instances slirp: Allocate/free stack instance dynamically slirp: Use internal state in interface slirp: Factor out internal state structure slirp: Drop link_up checks from if_output and slirp_socket_can_recv slirp: Clean up timeout handling around slirp_select_fill/poll slirp: Drop redundant checks from slirp_output Conflicts: target-i386/helper.c Signed-off-by: Avi Kivity <avi@redhat.com>
| * support colon in filenamesRam Pai2009-06-291-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: It is impossible to feed filenames with the character colon because qemu interprets such names as a protocol. For example filename scsi:0, is interpreted as a protocol by name "scsi". This patch allows user to espace colon characters. For example the above filename can now be expressed either as 'scsi\:0' or as file:scsi:0 anything following the "file:" tag is interpreted verbatin. However if "file:" tag is omitted then any colon characters in the string must be escaped using backslash. Here are couple of examples: scsi\:0\:abc is a local file scsi:0:abc http\://myweb is a local file by name http://myweb file:scsi:0:abc is a local file scsi:0:abc file:http://myweb is a local file by name http://myweb Signed-off-by: Ram Pai <linuxram@us.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Flush icache after dma operations for ia64Jes Sorensen2009-06-071-0/+5
|/ | | | | | | | | | | ia64 system depends on that platform issues snoop cycle to flush icache for memory touched by DMA write operations, but virtual DMA operations is emulated by memcpy, so use explict instrustions to flush the related icache, otherwise, guest may use obsolete icache. Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com> Signed-off-by: Jes Sorensen <jes@sgi.com> Signed-off-by: Avi Kivity <avi@redhat.com>
* Include assert.h from qemu-common.hPaul Brook2009-05-131-1/+0
| | | | | | | Include assert.h from qemu-common.h and remove other direct uses. cpu-all.h still need to include it because of the dyngen-exec.h hacks Signed-off-by: Paul Brook <paul@codesourcery.com>
* add qemu_iovec_init_external (Christoph Hellwig)aliguori2009-03-281-0/+19
| | | | | | | | | | | | | | Allow to initialize a QEMUIOVector from an externally allocated iovec. qiov->nalloc is initialized to -1 to indicate external storage for qiov->iov and all functions dealing with memory management assert on the iovec beeing an internally managed first. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6902 c046a42c-6fe2-441c-8c8c-71466251a162
* Add qemu_iovec_reset() (Avi Kivity)aliguori2009-02-051-0/+6
| | | | | | | | | | | Add a helper to zero out an existing iovec. Removes the need to deallocate and reallocate it. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6523 c046a42c-6fe2-441c-8c8c-71466251a162
* qemu iovec: keep track of total size, allow partial copies (Gerd Hoffman)aliguori2009-01-261-4/+11
| | | | | | | | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6448 c046a42c-6fe2-441c-8c8c-71466251a162
* I/O vector helpers (Avi Kivity)aliguori2009-01-221-0/+47
| | | | | | | | | | | | In general, it is not possible to predict the size of of an I/O vector since a contiguous guest region may map to a disconiguous host region. Add some helpers to manage I/O vector growth. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6396 c046a42c-6fe2-441c-8c8c-71466251a162
* Rename fls to qemu_flsblueswir12008-12-111-1/+1
| | | | | | | Fix compiler warning on OSX, reported by Andreas Faerber. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5982 c046a42c-6fe2-441c-8c8c-71466251a162
* Define fls() in terms of clz32().aliguori2008-12-041-7/+2
| | | | | | | | | | As suggested by Laurent Desnogues. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5872 c046a42c-6fe2-441c-8c8c-71466251a162
* Introduce fls() helperaliguori2008-12-041-0/+11
| | | | | | | | | | | This is needed for virtio. The implementation is originally from Marcelo Tosatti. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5868 c046a42c-6fe2-441c-8c8c-71466251a162
* Attached patch fixes a series of this warningblueswir12008-11-161-1/+1
| | | | | | | | | | | when compiling on NetBSD: warning: array subscript has type 'char' Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5727 c046a42c-6fe2-441c-8c8c-71466251a162
* Revert r5532, r5536 and a piece of r5531.balrog2008-11-081-12/+0
| | | | | | | | The use of strncat and strndup was correct, pstrcpy and pstrdup wasn't. I'll try to restore building on non-gnu OSes in a later commit. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5651 c046a42c-6fe2-441c-8c8c-71466251a162
* Replace uses of strndup (a GNU extension) with Qemu pstrdupblueswir12008-10-251-0/+12
| | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5532 c046a42c-6fe2-441c-8c8c-71466251a162
* Prevent guest reusing host memory allocations.pbrook2008-06-091-35/+0
| | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4710 c046a42c-6fe2-441c-8c8c-71466251a162
* Remove osdep.c/qemu-img code duplicationaurel322008-04-111-0/+35
| | | | | | | (Kevin Wolf) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4191 c046a42c-6fe2-441c-8c8c-71466251a162
* Split block API from vl.h.pbrook2007-11-111-1/+1
| | | | | | | | Remove QEMU_TOOL. Replace with QEMU_IMG and NEED_CPU_H. Avoid linking qemu-img against whole system emulatior. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3578 c046a42c-6fe2-441c-8c8c-71466251a162
* always use mktimegmbellard2007-11-101-0/+14
| | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3570 c046a42c-6fe2-441c-8c8c-71466251a162
* find -type f | xargs sed -i 's/[\t ]$//g' # on most filesths2007-09-161-2/+2
| | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3173 c046a42c-6fe2-441c-8c8c-71466251a162
* added cutils.cbellard2007-01-071-0/+83
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2310 c046a42c-6fe2-441c-8c8c-71466251a162