summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit '749717a0ea2f60d33d01c1e37fa24dfa7250dfc0' into upstream-mergeAvi Kivity2009-12-071-0/+52
|\ | | | | | | | | | | | | | | | | | | * commit '749717a0ea2f60d33d01c1e37fa24dfa7250dfc0': Add S390 maintainer information Set default console to virtio on S390x S390 GDB stub Add S390x virtio machine description Signed-off-by: Avi Kivity <avi@redhat.com>
| * S390 GDB stubAlexander Graf2009-12-051-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to debug funny kernel breakages it's always good to have a working gdb stub around. While Uli's patches don't include one one, I needed one that's at least good enough for 'bt' and some variable examinations during early bootup. So here it is - the absolute basics to get the qemu gdb stub running with s390x targets. Sgined-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* | Merge commit '40ff6d7e8dceca227e7f8a3e8e0d58b2c66d19b4' into upstream-mergeAvi Kivity2009-12-071-0/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '40ff6d7e8dceca227e7f8a3e8e0d58b2c66d19b4': Don't leak file descriptors qemu-img: There is more than one host device driver qcow2: Fix some more qemu_malloc fallout qcow2: Store exact backing format length virtio-blk: Implement rerror option ide: Implement rerror option Conflicts: posix-aio-compat.c Extended qemu_set_cloexec() to compatfd.c. Signed-off-by: Avi Kivity <avi@redhat.com>
| * Don't leak file descriptorsKevin Wolf2009-12-031-0/+6
| | | | | | | | | | | | | | | | We're leaking file descriptors to child processes. Set FD_CLOEXEC on file descriptors that don't need to be passed to children to stop this misbehaviour. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Merge commit '93db66850d99fd9885edeff6af5679be51e1c610' into upstream-mergeMark McLoughlin2009-10-281-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '93db66850d99fd9885edeff6af5679be51e1c610': (81 commits) ne2k_isa: use qdev properties for configuration. qdev/net: common nic property bits qdev: add vlan property qdev: add netdev property qdev: mac addr property fixups net: add macaddr type. Send a RARP packet after migration. multiboot.S patch for old as(1) (was: Re: [Qemu-devel] Some OpenBSD/amd64 build fixes) raw/linux-aio: Also initialize POSIX AIO qcow2: Fix grow_refcount_table error handling usb-linux: return USB_RET_STALL on -EPIPE Makefile: Change make to be quiet again when doing nothing eepro100: Restructure code target-arm: use native tcg-ops for ror/bic/vorn target-arm: fix neon shift helper functions target-arm: fix neon vsri, vshl and vsli ops target-arm: allow modifying vfp fpexc en bit only target-arm: add support for neon vld1.64/vst1.64 instructions target-arm: fix neon vshrn/vrshrn ops target-arm: fix incorrect temporary variable freeing ... Signed-off-by: Mark McLoughlin <markmc@redhat.com>
| * char: rename CHR_EVENT_RESET to CHR_EVENT_OPENEDAmit Shah2009-10-211-1/+1
| | | | | | | | | | | | | | | | | | The char event RESET is emitted when a char device is opened. Give it a better name. Patchworks-ID: 35287 Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * gdbstub: x86: Switch 64/32 bit registers dynamicallyJan Kiszka2009-10-051-13/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 56aebc891674cd2d07b3f64183415697be200084 changed gdbstub in way that debugging 32 or 16-bit guest code is no longer possible with qemu for x86_64 guest CPUs. Since that commit, qemu only provides registers sets for 64-bit, forcing current and foreseeable gdb to also switch its architecture to 64-bit. And this breaks if the inferior is 32 or 16 bit. No question, this is a gdb issue. But, as it was confirmed in several discusssions with gdb people, it is a non-trivial thing to fix. So until qemu finds a gdb version attach with a rework x86 support, we have to work around it by switching the register layout as the guest switches its execution mode between 16/32 and 64 bit. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Merge commit '50af324697cb91d3e7a820e2b94ee0237c0103e2' into upstream-mergeAvi Kivity2009-10-051-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '50af324697cb91d3e7a820e2b94ee0237c0103e2': (48 commits) vga: move back dirty_log functions to vga.c cirrus_vga: also assign gr0/1 when writting shadow_gr0/1 Revert "eepro100: Remove unused device status entries" target-i386: Fix exceptions for fxsave/fxrstor tcg: allocate s->op_dead_iargs dynamically tcg: remove dead code bsd-user: fix "#if 0"'d printf() eepro100: Add more i825xx devices eepro100: Remove unused device status entries target-i386: add RDTSCP support target-i386: add SSE4a instruction support target-i386: add lock mov cr0 = cr8 tcg/i386: add support for ext{8,16}u_i32 TCG ops tcg/x86_64: add support for ext{8,16,32}u_i{32,64} TCG ops tcg: add ext{8,16,32}u_i{32,64} TCG ops linux-user: fix "#if 0"'d printf() Check availability of uuid header / library hw/omap_dma: add matching {} in if 0 oss/alsa: Do not invoke UB described in 7.15.1.1 (this time for ADC) libuser is a generated directory ... Signed-off-by: Avi Kivity <avi@redhat.com>
| * gdbstub: fix coding style nitMichael S. Tsirkin2009-09-301-1/+1
| | | | | | | | | | | | | | | | Put space between = and * when dereferencing a pointer, to avoid confusion with old-style "*=" Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | gdbstub: x86: Switch 64/32 bit registers dynamicallyJan Kiszka2009-09-181-13/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 56aebc891674cd2d07b3f64183415697be200084 changed gdbstub in way that debugging 32 or 16-bit guest code is no longer possible with qemu for x86_64 guest CPUs. Since that commit, qemu only provides registers sets for 64-bit, forcing current and foreseeable gdb to also switch its architecture to 64-bit. And this breaks if the inferior is 32 or 16 bit. No question, this is a gdb issue. But, as it was confirmed in several discusssions with gdb people, it is a non-trivial thing to fix. So until qemu finds a gdb version attach with a rework x86 support, we have to work around it by switching the register layout as the guest switches its execution mode between 16/32 and 64 bit. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
* | Merge commit '4c0960c0c483fffc5f8e1dab169d946ac295bf44' into upstream-mergeAvi Kivity2009-08-301-4/+4
|\| | | | | | | | | | | | | | | | | | | | | * commit '4c0960c0c483fffc5f8e1dab169d946ac295bf44': kvm: Simplify cpu_synchronize_state() Conflicts: hw/apic.c target-i386/machine.c Signed-off-by: Avi Kivity <avi@redhat.com>
| * kvm: Simplify cpu_synchronize_state()Avi Kivity2009-08-271-4/+4
| | | | | | | | | | | | | | | | | | | | | | cpu_synchronize_state() is a little unreadable since the 'modified' argument isn't self-explanatory. Simplify it by making it always synchronize the kernel state into qemu, and automatically flush the registers back to the kernel if they've been synchronized on this exit. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Merge commit '2f7bb8780af4a007e90045b4cc97f558e956adf9' into upstream-mergeAvi Kivity2009-07-291-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '2f7bb8780af4a007e90045b4cc97f558e956adf9': rename USE_NPTL to CONFIG_USE_NPTL rename NEEDS_LIBSUNMATH to CONFIG_NEEDS_LIBSUNMATH define ENOTSUP the same that the other errors Conflicts: create_config Signed-off-by: Avi Kivity <avi@redhat.com>
| * rename USE_NPTL to CONFIG_USE_NPTLJuan Quintela2009-07-271-1/+1
| | | | | | | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Merge commit '0ba99fc6a188988f11361cb41eba7c1afce346d4' into upstream-mergeAvi Kivity2009-07-281-2/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0ba99fc6a188988f11361cb41eba7c1afce346d4': (46 commits) configure already knows what TARGET_BASE_ARCH we need, no need to put the logic in Makefile.target already defined several lines before in block-obj-y Remove unused Makefile variable use nwfpe-obj-y for consistence use block-nested-y for files inside block/ Remove duplicated definition fix sparc not solaris build fix XEN Build fix for bad macaddr of e1000 in Windows 2003 server with original MS driver qdev: es1370+ac97 description qdev/compat: virtio-net-pci 0.10 compatibility. qdev: print device id in "info pci". qdev/compat: virtio-console-pci 0.10 compatibility. qdev: add id= support for pci nics. qdev/compat: virtio-blk-pci 0.10 compatibility. qdev: add user-specified identifier to devices. qdev/compat: add pc-0.10 machine type. qdev: add no_user, alias and desc qdev/compat: compat property infrastructure. qdev: factor out driver search to qdev_find_info() ... Conflicts: Makefile.target Signed-off-by: Avi Kivity <avi@redhat.com>
| * Update to a hopefully more future proof FSF addressBlue Swirl2009-07-161-2/+1
| | | | | | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* | Merge commit 'e1e8f35a4f59d82ab9a5361c3990c8dadd2e7678' into upstream-mergeAvi Kivity2009-07-281-80/+162
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e1e8f35a4f59d82ab9a5361c3990c8dadd2e7678': bios: Fix multiple calls into smbios_load_ex gdbstub: x86: Support for setting segment registers gdbstub: x86: Refactor register access gdbstub: Add vCont support slirp: Fix default netmask to 255.255.255.0 Conflicts: pc-bios/bios.bin (dropped) Signed-off-by: Avi Kivity <avi@redhat.com>
| * gdbstub: x86: Support for setting segment registersJan Kiszka2009-07-161-17/+31
| | | | | | | | | | | | | | | | | | | | This allows to set segment registers via gdb also in system emulation mode. Basic sanity checks are applied and nothing is changed if they fail. But screwing up the target via this interface will never be complicated, so I avoided being too paranoid here. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * gdbstub: x86: Refactor register accessJan Kiszka2009-07-161-73/+83
| | | | | | | | | | | | | | | | Clarify gdb's register set layout by using constants for cpu_gdb_read/write_register. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
| * gdbstub: Add vCont supportJan Kiszka2009-07-161-0/+58
| | | | | | | | | | | | | | | | | | | | This patch adds support for the vCont remote gdb command. It is used by gdb 6.8 or better to switch the debugging focus for single-stepping multi-threaded targets, ie. multi-threaded application in user mode emulation or VCPUs in system emulation. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* | Merge branch 'master' of git://git.sv.gnu.org/qemuMark McLoughlin2009-06-111-25/+44
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'master' of git://git.sv.gnu.org/qemu: (11 commits) Use hxtool to generate monitor documentation and C structures Use correct type for SPARC cpu_cc_op Fix typo qdev: add monitor command to dump the tree. Record device property types Fix elf loader range checking Remove ARM NVIC initialization hack Add --enable-debug qdev: kill DeviceState->name fix gdbstub support for multiple threads in usermode, v3 CRIS: Remove duplicated flag defines. Conflicts: monitor.c Signed-off-by: Mark McLoughlin <markmc@redhat.com>
| * fix gdbstub support for multiple threads in usermode, v3Nathan Froyd2009-06-041-25/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge branch 'master' of git://git.sv.gnu.org/qemuAvi Kivity2009-06-031-0/+32
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'master' of git://git.sv.gnu.org/qemu: (40 commits) Update maintainer list. Install keymaps from new location vvfat: one more missing BlockDriver C99 initializer conversion Move keymaps into pc-bios kvm: Mark full address range dirty on live migration start Add detection of pthread library name User networking: Show active connections User Networking: Enable removal of redirections Allow monitor interaction when using migrate -exec fully split aio_pool from BlockDriver qcow: add qcow_aio_setup helper raw-posix: fix hdev_create fix raw_pread_aligned return value VNC: Fix memory allocation (wrong structure size). Drop bdrv_create2 qcow2: Update multiple refcounts at once qcow2: Refactor update_refcount qcow/qcow2: Drop synchronous qcow_write() e1000: Ignore reset command Fix output of uninitialized strings ... Signed-off-by: Avi Kivity <avi@redhat.com>
| * microblaze: Add GDB stub support.Edgar E. Iglesias2009-05-261-0/+32
| | | | | | | | Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* | Merge branch 'master' of git://git.sv.gnu.org/qemu into masterAvi Kivity2009-04-231-46/+31
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'master': (180 commits) xen: add -vga xenfb option, configure xenfb (Gerd Hoffmann) simplify vga selection (Gerd Hoffmann) xen: pv domain builder. (Gerd Hoffmann) xen: blk & nic configuration via cmd line. (Gerd Hoffmann) xen: add net backend driver. (Gerd Hoffmann) xen: add block device backend driver. (Gerd Hoffmann) xen: add framebuffer backend driver (Gerd Hoffmann) xen: add console backend driver. (Gerd Hoffmann) xen: backend driver core (Gerd Hoffmann) xen: groundwork for xen support (Gerd Hoffmann) update .gitignore: add qemu-io (Gerd Hoffmann) qcow2: Add plausibility check for L1/L2 entries (Kevin Wolf) qcow2: Refcount checking code cleanup (Kevin Wolf) Introduce qemu-img check subcommand (Kevin Wolf) Introduce bdrv_check (Kevin Wolf) qcow2: Fix warnings in check_refcount() (Kevin Wolf) sending NUMA topology to BIOS (Andre Przywara) add info numa command to monitor (Andre Przywara) added -numa cmdline parameter parser (Andre Przywara) Safety net for the cases where disassembler/translator disagree over instruction decoding ... Conflicts: Makefile Makefile.target configure cpu-all.h gdbstub.c hw/apic.c hw/cirrus_vga.c hw/eepro100.c hw/pc.c hw/pcnet.c hw/rtl8139.c hw/vga.c net.c pc-bios/bios.bin sysemu.h vl.c Signed-off-by: Avi Kivity <avi@redhat.com>
| * Add 'static' to avoid a sparse warningblueswir12009-04-181-1/+1
| | | | | | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7175 c046a42c-6fe2-441c-8c8c-71466251a162
| * Fix ppc-softmmu warnings on OpenBSD hostblueswir12009-04-131-5/+5
| | | | | | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7099 c046a42c-6fe2-441c-8c8c-71466251a162
| * factor out setting pc in gdbstubaurel322009-04-081-38/+25
| | | | | | | | | | | | | | | | | | | | | | The code for handling the c and s packets both contain code for setting the pc. Move that code out to a common function. Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Acked-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7039 c046a42c-6fe2-441c-8c8c-71466251a162
* | Merge commit 'qemu-svn/trunk'Avi Kivity2009-04-061-14/+27
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'qemu-svn/trunk': (38 commits) Remove WIN32 guard around -k Add new command line option -singlestep for tcg single stepping. tcg/x86_64: optimize register allocation order stop dirty tracking just at the end of migration (Glauber Costa) create qemu_file_set_error (Glauber Costa) propagate error on failed completion (Glauber Costa) Disable qemu-io on Win32 Add files not included in previous commit. Fix savevm after BDRV_FILE size enforcement Fix the build for --disable-aio gdbstub: Rework configuration via command line and monitor (Jan Kiszka) Make `-icount' help fit 80 chars screen width (Robert Riebisch) qemu-io - an I/O path exerciser (Christoph Hellwig) Fix display breakage when resizing the screen (v2) (Avi Kivity) Fix some win32 compile warnings Make binary stripping conditional (Riku Voipio) qcow2: fix image creation for large, > ~2TB, images (Chris Wright) pci_add storage: fix error handling for 'if' parameter (Eduardo Habkost) build system: clean qemu-options.texi and gdbstub-xml.c (Jan Kiszka) build system: silent generation of doc files and qemu-options.h (Jan Kiszka) ... Conflicts: qemu/Makefile.target qemu/hw/vga.c qemu/vl.c Signed-off-by: Avi Kivity <avi@redhat.com>
| * gdbstub: Rework configuration via command line and monitor (Jan Kiszka)aliguori2009-04-051-14/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a more canonical gdbstub configuration (system emulation only) via the new switch '-gdb dev'. Keep '-s' as shorthand for '-gdb tcp::1234'. Use the same syntax also for the corresponding monitor command 'gdbserver'. Its default remains to listen on TCP port 1234. Changes in v4: - Rebased over new command line switches meta file Changes in v3: - Fix documentation Changes in v2: - Support for pipe-based like to gdb (target remote | qemu -gdb stdio) - Properly update the qemu-doc Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6992 c046a42c-6fe2-441c-8c8c-71466251a162
* | Merge commit 'qemu-svn/trunk'Avi Kivity2009-03-291-23/+36
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'qemu-svn/trunk': (27 commits) gdbstub: Allow re-instantiation (Jan Kiszka) char: Fix closing of various char devices (Jan Kiszka) qemu-img: adding a "-F base_fmt" option to "qemu-img create -b" (Uri Lublin) block-qcow2: keep backing file format in a qcow2 extension (Uri Lublin) block: support known backing format for image create and open (Uri Lublin) Introducing qcow2 extensions (Uri Lublin) kvm: Drop kvm_patch_opcode_byte (Jan Kiszka) ROM write access for debugging (Jan Kiszka) Use the DMA api to map virtio elements. virtio-blk: use generic vectored I/O APIs (Christoph Hellwig) add qemu_iovec_init_external (Christoph Hellwig) Clean some PCI defines (Stefan Weil) Fix monitor command (screendump) (Stefan Weil) Remove nodisk_ok machine feature (Jan Kiszka) musicpal: Fix regression caused by 6839 (Jan Kiszka) gdbstub: Drop redundant memset after qemu_mallocz (Jan Kiszka) get roms more room. (Glauber Costa) new scsi-generic abstraction, use SG_IO (Christoph Hellwig) Document sun ID PROM contents Fix DMA API when handling an immediate error from block layer (Avi Kivity) ... Conflicts: qemu/hw/pc.c qemu/hw/pci.h qemu/hw/virtio.c qemu/qemu-doc.texi qemu/vl.c Signed-off-by: Avi Kivity <avi@redhat.com>
| * gdbstub: Allow re-instantiation (Jan Kiszka)aliguori2009-03-281-21/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | [ Note: depends on char closing fixes ] Properly clean up the gdbstub when the user tries to re-open it (possibly under a different address). Moreover, allow to shut it down from the monitor via 'gdbserver none'. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6913 c046a42c-6fe2-441c-8c8c-71466251a162
| * gdbstub: Drop redundant memset after qemu_mallocz (Jan Kiszka)aliguori2009-03-281-2/+0
| | | | | | | | | | | | | | | | Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6897 c046a42c-6fe2-441c-8c8c-71466251a162
* | Merge branch 'qemu-cvs'Avi Kivity2009-03-151-5/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qemu-cvs: (29 commits) Make the ELF loader aware of backwards compatibility temporarily disable logging around pci config writes (Avi Kivity) stop dirty logging while updating cirrus bank memory (Glauber Costa) Add missing file Update changelog qemu:virtio-net: Check return size on the correct sg list (Alex Williamson) make qemu_announce_self handle non contiguous net tables (Marcelo Tosatti) Replace asprintf() with snprintf() in vnc.c ("Daniel P. Berrange") monitor: Provide empty command as final history entry (Jan Kiszka) Add and use remaining #defines for PCI device IDs (Stuart Brady) remove is_graphic_console from vga.c (Stefano Stabellini) DisplayAllocator interface (Stefano Stabellini) tcg/x86_64: add bswap16_i{32,64} and bswap32_i64 ops tcg/x86: add bswap16_i32 ops target-i386: use the new bswap* TCG ops target-ppc: use the new bswap* TCG ops tcg: update README wrt recent bswap changes tcg: add _tl aliases to bswap16/32/64 TCG ops tcg: add bswap16_i64 and bswap32_i64 TCG ops tcg: optimize tcg_gen_bswap16_i32 ... Conflicts: qemu/gdbstub.c qemu/hw/apic.c qemu/hw/vga.c qemu/monitor.c Signed-off-by: Avi Kivity <avi@redhat.com>
| * Guest debugging support for KVM (Jan Kiszka)aliguori2009-03-121-7/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a backport of the guest debugging support for the KVM accelerator that is now part of the KVM tree. It implements the reworked KVM kernel API for guest debugging (KVM_CAP_SET_GUEST_DEBUG) which is not yet part of any mainline kernel but will probably be 2.6.30 stuff. So far supported is x86, but PPC is expected to catch up soon. Core features are: - unlimited soft-breakpoints via code patching - hardware-assisted x86 breakpoints and watchpoints Changes in this version: - use generic hook cpu_synchronize_state to transfer registers between user space and kvm - push kvm_sw_breakpoints into KVMState Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6825 c046a42c-6fe2-441c-8c8c-71466251a162
* | Merge branch 'qemu-cvs'Avi Kivity2009-03-081-3/+55
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qemu-cvs: (135 commits) Use firmware configuration instead of NVRAM (initial patch by Aurelien Jarno) Add new entries to firmware configuration device Rename _BSD to HOST_BSD so that it's more obvious that it's defined by configure target-mips: remove dead code target-mips: rename helpers from do_ to helper_ do not pretend to support low voltage operation Fix correct reset value for ARM CP15 c1 auxiliary control register Work around QEMU GDB stub suboptimality Fix off-by-one errors for Altivec and SPE registers Use C99 initializers for BlockDriver methods clean build: Fix remaining m68k warnings clean build: Fix arm build warnings arm: Fix gic_irq_state.level bitfield type target-ppc: move the CD-ROM drive to the second IDE ppc_oldworld: swap the MACIO and CMD646 IDE controllers Use a dedicated function to request exit from execution loop Fix texinfo syntax errors. Disable BAT for 970 Fix mfcr on ppc64-softmmu Keep SLB in-CPU ... Conflicts: qemu/configure qemu/cpu-defs.h qemu/exec.c qemu/hw/pci-hotplug.c qemu/monitor.c qemu/net.c qemu/pc-bios/Makefile qemu/pc-bios/bios.bin qemu/qemu-tool.c qemu/sysemu.h qemu/vl.c Signed-off-by: Avi Kivity <avi@redhat.com>
| * Use a dedicated function to request exit from execution loopaurel322009-03-071-1/+1
| | | | | | | | | | | | Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6762 c046a42c-6fe2-441c-8c8c-71466251a162
| * Fix BSD userblueswir12009-03-071-3/+3
| | | | | | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6734 c046a42c-6fe2-441c-8c8c-71466251a162
| * monitor: Pass-through for gdbstub (Jan Kiszka)aliguori2009-03-051-1/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | Create a monitor terminal and pass it through the gdbstub. This allows to use gdb's monitor command to access the QEMU monitor. Works for all commands except for non-detached migration and password retrieval (user will receive error messages instead). Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6718 c046a42c-6fe2-441c-8c8c-71466251a162
* | Include qemu-kvm.h unconditionallyGlauber Costa2009-02-171-1/+1
| | | | | | | | | | | | | | | | | | We don't have any kind of kvm support for linux-user targets, but conditionalizing the inclusion of kvm header make linux-user compilation break. And we don't have a reason to prevent that, do we? Signed-off-by: Glauber Costa <glommer@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
* | Merge branch 'qemu-cvs'Avi Kivity2009-02-081-8/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qemu-cvs: (33 commits) Fix bug in omap_sx1.c introduced by r6344 Fix tosa_dac_recv warning Fix cpu_arm_handle_mmu_fault warning SH4: fix TMU init SH7750/51: add register BCR3, BCR4, PCR, RTCOR, RTCNT, RTCSR, SDMR2, SDMR3 and fix BCR2 support Add it_shift Fix VGA RAM offsets Fix SIGSEGV crash in slirp networking code Add savevm and reset support for OpenPic Revert part of 6531, fix build failure Replace exit() in oom_check with abort() Revert changes to fmopl.c qemu:virtio-net: Add VLAN filtering (Alex Williamson) qemu:virtio-net: Add additional MACs via a filter table (Alex Williamson) qemu:virtio-net: Enable filtering based on MAC, promisc, broadcast and allmulti (Alex Williamson) qemu:virtio-net: Add promiscuous and all-multicast mode bits (Alex Williamson) qemu:virtio-net: Add a virtqueue for control commands from the guest (Alex Williamson) qemu:virtio-net: Define ETH_ALEN for use when manipulating MAC addresses (Alex Williamson) qemu:virtio-net: Allow setting the MAC address via set_config (Alex Williamson) qemu:virtio-net: Save status and add some save infrastructure (Alex Williamson) ... Conflicts: qemu/hw/virtio-net.c Signed-off-by: Avi Kivity <avi@redhat.com>
| * toplevel: remove error handling from qemu_malloc() callers (Avi Kivity)aliguori2009-02-051-8/+0
| | | | | | | | | | | | | | | | 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@6531 c046a42c-6fe2-441c-8c8c-71466251a162
* | Merge branch 'qemu-cvs'Avi Kivity2009-02-021-7/+27
|\| | | | | | | | | | | | | | | | | Conflicts: qemu/hw/pci.c qemu/hw/virtio-blk.c qemu/target-i386/machine.c qemu/vl.c Signed-off-by: Avi Kivity <avi@redhat.com>
| * target-ppc: Change core powerpc gdbstub bits to be XML-awareaurel322009-01-241-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define GDB_CORE_XML and hack things similarly to ARM so that despite the FP registers coming in between the GPRs and some status registers, everything works out OK no matter which kind of GDB we're communicating with. It matters whether we're built to target 64-bit or 32-bit cores. I think there are still problems if we are debugging 32-bit programs on a built-for-64-bit QEMU (QEMU will always send 64-bit registers), but I don't know if there's a good way around that at the time being. Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6421 c046a42c-6fe2-441c-8c8c-71466251a162
| * Rework vm_state_change notifiers (Jan Kiszka)aliguori2009-01-221-6/+5
| | | | | | | | | | | | | | Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6402 c046a42c-6fe2-441c-8c8c-71466251a162
* | Merge branch 'qemu-cvs'Avi Kivity2009-01-221-1/+1
|\| | | | | | | | | | | | | | | | | | | Conflicts: qemu/Makefile.target qemu/hw/cirrus_vga.c qemu/hw/ide.c qemu/pc-bios/bios.bin qemu/vl.c Signed-off-by: Avi Kivity <avi@redhat.com>
| * add an init function parameter to qemu_chr_open()aurel322009-01-181-1/+1
| | | | | | | | | | | | | | | | | | And use it for the malta emulation. Fix segfault introduced in revision 6352. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6365 c046a42c-6fe2-441c-8c8c-71466251a162
* | Merge branch 'qemu-cvs'Avi Kivity2009-01-181-0/+6
|\| | | | | | | | | | | | | | | | | | | Conflicts: qemu/hw/cirrus_vga.c qemu/hw/pc.c qemu/hw/pcnet.c qemu/hw/vga.c qemu/vl.c Signed-off-by: Avi Kivity <avi@redhat.com>
| * Fix bsd-user buildblueswir12009-01-151-0/+6
| | | | | | | | git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6312 c046a42c-6fe2-441c-8c8c-71466251a162
* | Merge branch 'qemu-cvs'Avi Kivity2009-01-141-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: qemu/Makefile qemu/hw/mips_malta.c qemu/hw/pc.c qemu/hw/pci.c qemu/hw/pci.h qemu/hw/ppc_chrp.c qemu/hw/ppc_prep.c qemu/hw/realview.c qemu/hw/sun4u.c qemu/hw/versatilepb.c qemu/hw/virtio-net.c qemu/monitor.c qemu/net.c qemu/net.h qemu/pc-bios/bios.bin Signed-off-by: Avi Kivity <avi@redhat.com>