aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2009-06-06Fix spelling in comment.Stefan Weil1-1/+1
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
2009-06-06Use hxtool to generate monitor documentation and C structuresBlue Swirl5-473/+624
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2009-06-06Use correct type for SPARC cpu_cc_opPaul Brook1-1/+2
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-06-06Fix typoPaul Brook1-1/+1
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-06-05qdev: add monitor command to dump the tree.Gerd Hoffmann4-0/+93
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-06-05Record device property typesPaul Brook5-19/+77
Record device property types, and provide a list of properties at device registration time. Add a "device" property type that holds a reference to annother device. Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-06-05Fix elf loader range checkingPaul Brook1-3/+3
The ELF loader tracks the range of addresses used by a binary. However this incorrectly assumes zero is not a valid address. Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-06-04Remove ARM NVIC initialization hackPaul Brook2-6/+1
The ARMv7-M NVIC device pokes itself into the CPU state. Now we have a proper device model we can have the CPU/SoC code do this. Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-06-04Add --enable-debugPaul Brook1-1/+15
New configure option for debug builds. Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-06-04qdev: kill DeviceState->nameGerd Hoffmann2-3/+1
is redundant with DeviceState->type->name Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2009-06-04fix gdbstub support for multiple threads in usermode, v3Nathan Froyd4-27/+49
When debugging multi-threaded programs, QEMU's gdb stub would report the correct number of threads (the qfThreadInfo and qsThreadInfo packets). However, the stub was unable to actually switch between threads (the T packet), since it would report every thread except the first as being dead. Furthermore, the stub relied upon cpu_index as a reliable means of assigning IDs to the threads. This was a bad idea; if you have this sequence of events: initial thread created new thread #1 new thread #2 thread #1 exits new thread #3 thread #3 will have the same cpu_index as thread #1, which would confuse GDB. (This problem is partly due to the remote protocol not having a good way to send thread creation/destruction events.) We fix this by using the host thread ID for the identifier passed to GDB when debugging a multi-threaded userspace program. The thread ID might wrap, but the same sort of problems with wrapping thread IDs would come up with debugging programs natively, so this doesn't represent a problem. Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
2009-06-03CRIS: Remove duplicated flag defines.Edgar E. Iglesias1-2/+0
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-06-03microblaze: Fix loading of petalogix s3adsp1800 dtb.Edgar E. Iglesias3-10/+12
Provide a petalogix-s3adsp1800.dtb blob. Correct loading of the petalogix dtb. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-06-03Stellaris qdev conversionPaul Brook4-51/+97
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-06-02Implement multiple samplers on stellaris ADCPaul Brook1-19/+31
Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-30Use relative path for biosPaul Brook16-122/+366
Look for bios and other support files relative to qemu binary, rather than a hardcoded prefix. Signed-off-by: Paul Brook <paul@codesourcery.com>
2009-05-28Update maintainer list.Edgar E. Iglesias1-0/+4
Add myself as maintainer for the microblaze cpu and boards. Update list of CRIS machines. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-28Install keymaps from new locationAnthony Liguori1-1/+1
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-28vvfat: one more missing BlockDriver C99 initializer conversionChristoph Hellwig1-4/+3
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-28Move keymaps into pc-biosAnthony Liguori35-0/+0
This isn't the most ideal layout, but it makes -L /path/to/git/pc-bios Just Work which is very convenient. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-28kvm: Mark full address range dirty on live migration startJan Kiszka2-1/+3
As Avi correctly noted, last_ram_offset does not mark the last physical RAM address the guest may see (due to non-continuous memory regions). Ensure that we catch them all by marking the full possible address range dirty. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-28Add detection of pthread library nameSebastian Herbszt1-5/+9
Try to detect the name of the pthread library. Currently it looks for "-pthread" and "-pthreadGC2". Signed-off-by: Sebastian Herbszt <herbszt@gmx.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-28User networking: Show active connectionsAlexander Graf4-1/+74
In case you're wondering what connections exactly you have open or maybe redir'ed in the past, you can't really find out from qemu right now. This patch enables you to see all current connections the host only networking holds open, so you can kill them using the previous patch. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-27User Networking: Enable removal of redirectionsAlexander Graf6-5/+71
Using the new host_net_redir command you can easily create redirections on the fly while your VM is running. While that's great, it's missing the removal of redirections, in case you want to have a port closed again at a later point in time. This patch adds support for removal of redirections. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-27Allow monitor interaction when using migrate -execChris Lalancette3-12/+34
All, I've recently been playing around with migration via exec. Unfortunately, when starting the incoming qemu process with "-incoming exec:cmd", it suffers the same problem that -incoming tcp used to suffer; namely, that you can't interact with the monitor until after the migration has happened. This causes problems for libvirt usage of -incoming exec, since libvirt expects to be able to access the monitor ahead of time. This fairly simple patch allows you to access the monitor both before and after the migration has completed using exec. (note: developed/tested with qemu-kvm, but applies perfectly fine to qemu) Signed-off-by: Chris Lalancette <clalance@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-27fully split aio_pool from BlockDriverChristoph Hellwig9-149/+121
Now that we have a separate aio pool structure we can remove those aio pool details from BlockDriver. Every driver supporting AIO now needs to declare a static AIOPool with the aiocb size and the cancellation method. This cleans up the current code considerably and will make it cleaner and more obvious to support two different aio implementations behind a single BlockDriver. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-27qcow: add qcow_aio_setup helperChristoph Hellwig1-23/+29
[this one is required for [PATCH] fully split aio_pool from BlockDriver, sorry for not sending it out earlier] Add a qcow_aio_setup helper to qcow to shared common code between the aio_readv and aio_writev methods. Based on the function with the same name in qcow2. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-27raw-posix: fix hdev_createChristoph Hellwig1-10/+1
We do need hdev_create unconditionally on all platforms so that qemu-img create support for host device works on all platforms. Also relax the check to allow character devices in addition to block devices. On many Unix platforms block devices have buffered block nodes and unbuffered character device nodes, and on FreeBSD the block nodes don't even exist anymore. Also on Linux we do support the /dev/sgN scsi passthrough devices through the host device driver, and probably the old-style /dev/raw/rawN raw devices although I haven't tested that. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-27fix raw_pread_aligned return valueChristoph Hellwig1-1/+1
raw_pread_aligned currently returns the raw return value from lseek/read, which is always -1 in case of an error. But the callers higher up the stack expect it to return the negated errno just like raw_pwrite_aligned. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-27VNC: Fix memory allocation (wrong structure size).Stefan Weil1-2/+1
Pointer vs addresses a VncDisplay structure, so it is sufficient to allocate sizeof(VncDisplay) or sizeof(*vs) bytes instead of the much larger sizeof(VncState). Maybe the misleading name should be fixed, too: the code contains many places where vs is used, sometimes it is a VncState *, sometimes it is a VncDisplay *. vd would be a better name. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-27Drop bdrv_create2Kevin Wolf2-42/+24
This patch converts the remaining users of bdrv_create2 to bdrv_create and removes the now unused function. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-27qcow2: Update multiple refcounts at onceKevin Wolf1-4/+36
Don't write each single changed refcount block entry to the disk after it is written, but update all entries of the block and write all of them at once. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-27qcow2: Refactor update_refcountKevin Wolf1-30/+56
This is a preparation patch with no functional changes. It moves the allocation of new refcounts block to a new function and makes update_cluster_refcount (for one cluster) call update_refcount (for multiple clusters) instead the other way round. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-27qcow/qcow2: Drop synchronous qcow_write()Kevin Wolf2-77/+2
There is only one (internal) user left and it can be switched to the normal emulation provided in block.c Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-27e1000: Ignore reset commandKevin Wolf1-2/+9
When a reset is requested, the current e1000 emulation never clears the reset bit which may cause a driver to hang. This patch masks the reset bit out when setting the control registert, so the reset is immediately completed. Signed-off-by: Kevin Wolf <mail@kevin-wolf.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-27Fix output of uninitialized stringsKevin Wolf2-22/+11
Commit ffad4116b96e29e0fbe892806f97c0a6c903d30d removed the "scratch buffer" from check_params, but didn't care for the error messages which actually included this string to tell the user which option was wrong. Now this string is uninitialized, so this patch removes it from the message. This means that the user is only told the whole parameter string and has to pick the wrong option by himself as the callers of check_params can't know this value any more. An alternative approach would be to revert that commit and do whatever is needed to fix the original problem without changing check_params. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-05-27microblaze: Conditionalize FDT features.Edgar E. Iglesias1-2/+17
If libfdt is not available, disable the fdt manipulation features. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-27doc: Briefly mention CRIS and MicroBlaze.Edgar E. Iglesias1-1/+3
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-27microblaze: Make writes to MMU_ZPR flush the TLB.Edgar E. Iglesias1-0/+7
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-27microblaze: Correct typo.Edgar E. Iglesias1-1/+1
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-26microblaze: Hook into the build-system.Edgar E. Iglesias2-1/+41
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-26microblaze: Add GDB stub support.Edgar E. Iglesias1-0/+32
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-26microblaze: Add petalogix s3a1800dsp MMU linux ref-design.Edgar E. Iglesias3-0/+245
This setup was designed by petalogix and is supported by upstream linux. The design targets a xilinx spartan-3a-1800 dsp board with MMU. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-26xilinx: Add ethlite emulation.Edgar E. Iglesias1-0/+235
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-26xilinx: Add uartlite emulation.Edgar E. Iglesias1-0/+218
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-26xilinx: Add OPB timer.Edgar E. Iglesias1-0/+224
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-26xilinx: Add interrupt controller.Edgar E. Iglesias1-0/+167
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-26microblaze: Add CPU interrupt wrapper logic.Edgar E. Iglesias1-0/+50
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-26microblaze: Add MMU emulation.Edgar E. Iglesias2-0/+338
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2009-05-26microblaze: Add disassembler.Edgar E. Iglesias3-0/+851
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>