- Apr 07, 2011
-
-
Jes Sorensen authored
This adds the basic infrastructure for supporting progress output on the command line, as well as progress support for qemu-img commands 'rebase' and 'convert'. Signed-off-by:
Jes Sorensen <Jes.Sorensen@redhat.com> Reviewed-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
-
Stefan Hajnoczi authored
The block layer caches the device size to avoid doing lseek(fd, 0, SEEK_END) every time this value is needed. For removable media the device size becomes stale if a new medium is inserted. This patch simply prevents device size caching for removable media. A smarter solution is to update the cached device size when a new medium is inserted. Given that there are currently bugs with CD-ROM media change I do not want to implement that approach until we've gotten things correct first. Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
-
Stefan Hajnoczi authored
It can be handy to know when the guest locks/unlocks the CD-ROM tray. This trace event makes that possible. Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
-
Ryan Harper authored
When removing a drive from the host-side via drive_del we currently have the following path: drive_del qemu_aio_flush() bdrv_close() // zaps bs->drv, which makes any subsequent I/O get // dropped. Works as designed drive_uninit() bdrv_delete() // frees the bs. Since the device is still connected to // bs, any subsequent I/O is a use-after-free. The value of bs->drv becomes unpredictable on free. As long as it remains null, I/O still gets dropped, however it could become non-null at any point after the free resulting SEGVs or other QEMU state corruption. To resolve this issue as simply as possible, we can chose to not actually delete the BlockDriverState pointer. Since bdrv_close() handles setting the drv pointer to NULL, we just need to remove the BlockDriverState from the QLIST that is used to enumerate the block devices. This is currently handled within bdrv_delete, so move this into its own function, bdrv_make_anon(). The result is that we can now invoke drive_del, this closes the file descriptors and sets BlockDriverState->drv to NULL which prevents futher IO to the device, and since we do not free BlockDriverState, we don't have to worry about the copy retained in the block devices. We also don't attempt to remove the qdev property since we are no longer deleting the BlockDriverState on drives with associated drives. This also allows for removing Drives with no devices associated either. Reported-by:
Markus Armbruster <armbru@redhat.com> Signed-off-by:
Ryan Harper <ryanh@us.ibm.com> Acked-by:
Markus Armbruster <armbru@redhat.com> Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
-
Feiran Zheng authored
Bug fix: routines 'ioreq_runio_qemu_sync' and 'ioreq_runio_qemu_aio' won't call 'ioreq_unmap' or 'ioreq_finish' on errors, leaving ioreq in the blkdev->inflight list and a leak. Signed-off-by:
Feiran Zheng <famcool@gmail.com> Acked-by:
Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
-
Edgar E. Iglesias authored
Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Mike Frysinger authored
Standard autoconf scripts include a --version flag so people can easily query things. Add this to qemu's configure so it too can integrate with build systems that have standard autotool helpers. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
- Apr 04, 2011
-
-
Peter Maydell authored
CPU_QuadU isn't used on all targets, but there's no harm in defining the typedef anyway. It only needs to be guarded by CONFIG_SOFTFLOAT, because softfloat-native doesn't have a float128 type. This avoids the need for every new target which uses CPU_QuadU to add itself to an #ifdef in what ought to be target-agnostic code. Signed-off-by:
Peter Maydell <peter.maydell@linaro.org> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Peter Maydell authored
Make the Neon helper routines use the correct FP status from the CPUEnv rather than using a dummy static one. This means they will correctly handle denormals and NaNs and will set FPSCR exception bits properly. Signed-off-by:
Peter Maydell <peter.maydell@linaro.org> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Peter Maydell authored
Use the global 'env' variable in the helper functions in iwmmxt_helper.c. This means we don't need to pass env as an argument to them any more. Signed-off-by:
Peter Maydell <peter.maydell@linaro.org> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Peter Maydell authored
Use the global 'env' variable in the helper functions in neon_helper.c. This means we don't need to pass env as an argument to them any more. Signed-off-by:
Peter Maydell <peter.maydell@linaro.org> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Peter Maydell authored
Build all files matching *_helper.c with HELPER_CFLAGS, not just op_helper.c. This allows you to put target helper functions which use the global 'env' variable in multiple source files. This only affects the ARM target as all the other targets currently only have op_helper.c. Signed-off-by:
Peter Maydell <peter.maydell@linaro.org> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
David Gibson authored
At one point, usb-ccid.c attempts to use a %lX format specifier to print a uint64_t, which is only correct on some host platforms. This patch corrects the statement to use the stdint specified PRIX64 constant instead. Signed-off-by:
David Gibson <david@gibson.dropbear.id.au> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Michael Walle authored
Signed-off-by:
Michael Walle <michael@walle.cc> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Michael Walle authored
This patch adds almost complete support for the Milkymist system-on-chip (http://www.milkymist.org ). Additional to running bare metal applications, booting a linux kernel with initrd is supported. Signed-off-by:
Michael Walle <michael@walle.cc> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Michael Walle authored
This patch adds wrappers for easy creation of the qdev devices. Signed-off-by:
Michael Walle <michael@walle.cc> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Michael Walle authored
This patch adds support for Milkymist's VGA framebuffer. Signed-off-by:
Michael Walle <michael@walle.cc> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Michael Walle authored
This patch adds support for Milkymist's simple UART. Signed-off-by:
Michael Walle <michael@walle.cc> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Michael Walle authored
This patch adds support for Milkymist's texture mapping unit. For fast computation this model needs hardware accelerated 3D graphics support (OpenGL). There is no graphical output, all computations belong to internal framebuffers only. Signed-off-by:
Michael Walle <michael@walle.cc> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Michael Walle authored
This patch introduce a new config option CONFIG_OPENGL. Signed-off-by:
Michael Walle <michael@walle.cc> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Michael Walle authored
This patch adds support for Milkymist's System Controller core. The model has the following features: - support for shutting down and restarting the board - provide two timers and GPIO - provide registers for system identification and reading the boards capabilities Signed-off-by:
Michael Walle <michael@walle.cc> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Michael Walle authored
This patch adds support for Milkymist's SoftUSB core. This model differ from the real hardware in its functionality. The real hardware consits of a tiny freely programmable microcontroller which controls the USB ports. For simplicity reasons, this model emulates only keyboard and mouse input devices, eg. input events translates directly to the corresponding expected messages. Signed-off-by:
Michael Walle <michael@walle.cc> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Michael Walle authored
This patch adds support for Milkymist's Programmable FPU. Signed-off-by:
Michael Walle <michael@walle.cc> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Michael Walle authored
This patch adds support for Milkymist's minimal Ethernet MAC. Signed-off-by:
Michael Walle <michael@walle.cc> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Michael Walle authored
This patch adds support for Milkymist's memory card core. Signed-off-by:
Michael Walle <michael@walle.cc> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Michael Walle authored
This patch adds support for the Milkymist's High Performance Dynamic Memory Controller. This is just a dumb model without any functionality. While the real hardware acts for example as a bridge between software and hardware for sending SDRAM commans, this model will only eat up these commands and always returns the expected hardware states, eg. PLL locked etc. Signed-off-by:
Michael Walle <michael@walle.cc> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Michael Walle authored
This patch adds support for the Milkymist AC97 compatible sound output and input core. Signed-off-by:
Michael Walle <michael@walle.cc> Signed-off-by:
Edgar E. Iglesias <edgar.iglesias@gmail.com>
-
Aurelien Jarno authored
This reverts commit 9bcfc7da.
-
- Apr 03, 2011
-
-
Ulrich Hecht authored
S390x uses the QuadU type, so let's enable it. Signed-off-by:
Ulrich Hecht <uli@suse.de> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Ulrich Hecht authored
S390x user emulation can do nptl. Reflect this in the configure script. Signed-off-by:
Ulrich Hecht <uli@suse.de> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Ulrich Hecht authored
This patch enables the instruction disassembler when using an S390x target. Signed-off-by:
Ulrich Hecht <uli@suse.de> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Alexander Graf authored
Commit 6b331efb broke the s390 proxy version of virtio-serial by only taking its PCI brother into account. So let's adjust s390-virtio-serial the same way as its PCI counterpart, making it compile and work again. Signed-off-by:
Alexander Graf <agraf@suse.de> CC: Amit Shah <amit.shah@redhat.com> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Alexander Graf authored
During Jan's rework of the generic KVM layer, he added some more error checks and actually aborted if something went wrong. Unfortunately, one of the s390 internal error codes slipped through, aborting the VM without needing to. This patch fixes booting of S390x virtual machines in KVM. Signed-off-by:
Alexander Graf <agraf@suse.de> CC: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Alexander Graf authored
We have two different virtio buses: pci and s390. The abstraction path taken in qemu is to have generic aliases for each device type in the architecture specific qdev devices. So let's make use of these aliases whenever we can and define them whenever we can. Signed-off-by:
Alexander Graf <agraf@suse.de> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Alexander Graf authored
The ivshmem depends on PCI and KVM, not only KVM. Reflect this in the Makefile, so we don't get build errors on s390x. Signed-off-by:
Alexander Graf <agraf@suse.de> CC: Cam Macdonell <cam@cs.ualberta.ca> CC: Juan Quintela <quintela@redhat.com> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Stefan Weil authored
arpa/inet.h is not available for w32, so commit edbb2136 breaks w32 compilations. This is fixed by using qemu_socket.h. Signed-off-by:
Stefan Weil <weil@mail.berlios.de> Reviewed-by:
Alon Levy <alevy@redhat.com> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Gleb Natapov authored
SDL library initialization mangles signal handlers, so QEMU should register them after initializing SDL. This was the case before and code even have a comment about that. Fix it to be so again. Signed-off-by:
Gleb Natapov <gleb@redhat.com> Reviewed-by:
Peter Maydell <peter.maydell@linaro.org> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Peter Maydell authored
Tidy up the message printed when qemu exits due to a signal, so that it's clearer where the message is coming from and that it's not just stray debug output. Signed-off-by:
Peter Maydell <peter.maydell@linaro.org> Reviewed-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Acked-by:
Gleb Natapov <gleb@redhat.com> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Stefan Hajnoczi authored
The common checksum functions were moved to net/checksum.c in commit 7200ac3c but the original net-checksum.c was never deleted from the source tree. Remove it now since all users of the checksum functions link against net/checksum.o and net-checksum.c is not even compiled anymore. Signed-off-by:
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-
Kevin Wolf authored
Rx and Tx descriptors are 16 byte aligned, so the lower bits are ignored by real hardware. In fact, they always read back as zero on real hardware, but probably nobody relies on that. Signed-off-by:
Kevin Wolf <mail@kevin-wolf.de> Signed-off-by:
Aurelien Jarno <aurelien@aurel32.net>
-