cleanup cpu-exec.c, part 0/N: consolidate handle_cpu_signal
handle_cpu_signal is very nearly copy-paste code for each target, with afew minor variations. This patch sets up appropriate defaults for ageneric handle_cpu_signal and provides overrides for particular targets...
Unbreak large mem support by removing kqemu
kqemu introduces a number of restrictions on the i386 target. The worst is thatit prevents large memory from working in the default build.
Furthermore, kqemu is fundamentally flawed in a number of ways. It relies on...
Only build osdep once
We no longer need hackery to work around kqemu
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
unify popen/fopen qemu wrappers
While reading Chris's code for fd migration I noticed the duplicationbetween QEMUFilePopen and QEMUFileStdio. This fixes it, and makesqemu_fopen more similar qemu_popen.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>...
Route IOAPIC interrupts via ISA bus
Instead of calling the IOAPIC from the PIC, raise IOAPIC irqs via the ISA bus.As a side effect, IOAPIC lines 16-23 are enabled.
Signed-off-by: Avi Kivity <avi@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Migration via unix sockets.
Implement migration via unix sockets. While you can fake this usingexec and netcat, this involves forking another process and isgenerally not very nice. By doing this directly in qemu, we can avoidthe copy through the external nc command. This is useful for...
Add a configure switch to enable / disable all user targets. I felt compelled to do it for symmetry, mostly it is useful to disable user targets when you don't want to build them.
Signed-off-by: Zachary Amsden <zamsden@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
SMART ATA Functionality
For the lulz I implemented basic SMART functionality in ide.c. smartctlon linux recognizes it just fine and starting self tests with itcomplete successfully.
Signed-off-by: Brian Wheeler <bdwheele@indiana.edu>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
QEMU set irq0override in fw_cfg
Hi,
After discussing the issue with Avi, Gleb and a couple others on irq,we came to the conclusion that it is preferred to have QEMU requestfeatures from the BIOS, rather than notifying the BIOS that it isrunning on QEMU or KVM. This way memory ranges can change etc. and...
Makefile: fixed rule TAGS
- still works if the build dir is not the src dir- use find instead of .c block/.c etc...
Signed-off-by: Alexandre Bique <alexandre.bique@citrix.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Route PC irqs to ISA bus instead of i8259 directly
A PC has its motherboard IRQ lines connected to both the PIC and IOAPIC.Currently, qemu routes IRQs to the PIC which then calls the IOAPIC, anincestuous arrangement. In order to clean this up, create a new ISA IRQ...
Fix detached migration with exec.
When trying to do detached migration with exec, I found thatthe monitor wouldn't always return in a timely manner. Itracked this down to exec_start_outgoing_migration. Itappeared we were setting the fd to NONBLOCK'ing, but in...
Don't segfault when changing VNC password on an SDL display.
When using stdio monitor and VNC display, one can set or clear a VNC password; this should set or turn off VNC authentication as well.
Clean up VGA type selection; far too many variables being used to track one state leads to confusion if new variables are added.
Add missing linefeed in error message
The error message for an unknown network device given tomonitor command set_link looks better with a terminatinglinefeed.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
make vga screen_dump use DisplayState properly
Hi all,currently the vga screen_dump code doesn't use the DisplayStateinterface properly and tries to replace it temporarily while taking thescreenshot.A better approach is to register a DisplayChangeListener, call...
Do not disable autostart for live migration
If the user does not want autostart, they can specify -S.
Restore consistent formatting
Signed-off-by: malc <av1474@comtv.ru>
es1370: Remove unused indirection of PCIES1370State and ES1370State
Signed-off-by: Juan Quintela <quintela@redhat.com>
Fix device name completion for 'eject'
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Revert my commit c00a9de060124a988bd9847c095e5836488c6f01
was incorrect.
Fix segfault of qemu-system-arm with PXA target
qemu-system-arm (0.10.5) segfaults when invoked with a PXA machine target,e.g. -M tosa. The reason is fairly obvious:
Signed-off-by: Torsten Duwe <duwe@lst.de>Signed-off-by: Christoph Hellwig <hch@lst.de>...
sdl.c: support 32 bpp cursors
Hello,currently when a 32 bpp cursor gets defined the result is all-black inthe areas that are not transparent (you'll get a 32 bpp cursor if youuse my previous patch to allow vmware_vga to use a 32 bpp framebuffer).This is because the switch in sdl.c lacks a 32 bpp case....
Use corect depth from DisplaySurface in vmware_vga.c
Hello,for what I can tell, there is no way for vmware_vga to work correctlyright now. It assumes that the framebuffer bits-per-pixel and the onefrom the DisplaySurface are identical (it uses directly the VRAM from...
Remove the unnecessary and only global in musicpal.c
Merge with balrog@git.sv.gnu.org:/srv/git/qemu.git
Make musicpal.c use the I2C device and the Marvell 88w8618 audio device
Signed-off-by: Benoit Canet <benoit.canet@gmail.com>Signed-off-by: Andrzej Zaborowski <balrogg@gmail.com>
Extract the Marvell 88w8618 audio device from musicpal.c
Extract musicpal.c I2C bitbanging code and make it gpio aware
Musicpal qdev conversion: gpio (except I2C part), keyboard and lcd
Sparc32: fix monitor commands 'info pic' and 'info irq'
Rearrange to suppress gcc 3.3.5 warning about unused variable
def-helper.h allow helpers returning pointers
This change allows to define helpers returning pointers.This looks like a typo in original commit.
Signed-off-by: igor.v.kovalenko@gmail.comSigned-off-by: Blue Swirl <blauwirbel@gmail.com>
ESP: implement Transfer Pad
ESP: Implement select without ATN, fix comments
ARM back-end: Handle all possible immediates for ALU ops
this patch handles all possible constants for immediate operand of ALU ops.I'm not very satisfied by the implementation.
Laurent
Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com>Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
ARM back-end: Add TCG not
this patch:
- implements TCG not.
sparc32 remove an unnecessary cpu irq set
Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Sparc32/64: fix jmpl followed by branch
Fix a case where 'jmpl' instruction followed by a branch instruction washandled incorrectly.
Remove unneded ac97 indirection accessing its state
Searching for "inspiration" to convert another device to qdev, I gotac97. Once I understood a bit of qdev, found that ac97 used a not neededindirection. To protect the unaware, just fixed it.
Later, Juan....
Sparc32/64: Fix user emulator breakage
Fix breakage of alpha, mips64, ppc64 and x86_64 targets on non-amd64 host
Replace REGX with PRIx64
Replace local ADDRX/PADDRX macros with TARGET_FMT_lx/plx
Replace always_inline with inline
We define inline as always_inline.
user: compile host-utils.c only once
Simplify 5ba6531956b9b6486560cbd13604c2238a3542dd
Thanks to Juan Quintela.
Fix desynchronization of condition code state when a memory access traps
PPC: clean up ppc405
Rely on the subpage system instead of the local version.Make most functions "static".Fix wrong parameter passed to ppc4xx_pob_reset.
Use pstrcpy to avoid OpenBSD linker warnings
bsd-user: Add generic env variable handling
Based on 04a6dfebb6b52532a1e0bd637899f1eba14e94c6.
Adds support for qemu to modify target process environmentvariables using -E and -U commandline switches. This replaceseventually the -drop-ld-preload flag....
linux-user: compile envlist.c only once
user: compile ioport-user.c only for x86
user: compile path.c only once
Also merge bsd-user/path.c and linux-user/path.c.
Fix migration for ide devices
commit 93c8cfd9e67a62711b86f4c93747566885eb7928Author: Gleb Natapov <gleb@redhat.com>Date: Sun Aug 2 11:36:47 2009 +0300
make windows notice media change
Broke save/restore by loading a new field but not saving it....
Unbreak Sparc64
EBus is a sort of ISA bus.
Unbreak Sparc32 and PPC
Convert qdev ptr type to chr, allow a NULL pointer.
Third attempt to invoke create_config properly
Second attempt failed due to $_ not being standard and as such it'sinterpretation by certain shells when they were symlinked to /bin/shand invoked as such led to unpredictable results. So instead of trying...
Fix typo
Do not use $SHELL to invoke our scripts
http://www.opengroup.org/onlinepubs/7990989775/xbd/envvar.html
<quote>SHELL A pathname of the user's preferred command language interpreter. If this interpreter does not conform to the XSI Shell Command Language in the XCU specification, Shell Command Language,...
use C99 initializers for audio_pcm_ops
use C99 initializers for all audio/*
Aesthetics
Reformat to make item borders more visibleFix cases of stray tabs and vertical misalignments
Use proper struct initializers and remove INIT_FIELD() macro
Use C99 initializers for audio_option
Fix virtio-blk
Reported-by: Christoph HellwigSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
qdev/prop: convert xilinx_ethlite.c to helper macros.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Message-Id:
qdev/prop: convert xilinx_intc.c to helper macros.
qdev/prop: convert xilinx_timer.c to helper macros.
fix qdev_print_devinfo()
snprintf returns number of bytes needed for the output, not the numberof bytes actually written. Thus the math is wrong ...
Spotted by Markus Armbruster.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>...
rename "info qdrv" to "info qdm"
As requested by avi: driver != device model.
check for PR_SET_NAME being defined
Depending on what glibc/kernel headers you are compiling against,PR_SET_NAME may or may not be defined. Do the right thing ifPR_SET_NAME isn't defined and skip setting the process name.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>...
Add emacs header to Makefile.target
Signed-off-by: Anthony Liguori <aliguori@us.ibmc.om>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Message-Id:
qdev/prop: convert syborg_interrupt.c to helper macros.
qdev/prop: convert syborg_keyboard.c to helper macros.
qdev/prop: convert syborg_pointer.c to helper macros.
qdev/prop: convert syborg_serial.c to helper macros.
qdev/prop: convert syborg_timer.c to helper macros.
qdev/prop: convert tcx.c to helper macros.
qdev/prop: convert vga.c to helper macros.
qdev/prop: convert virtio-pci.c to helper macros.
qdev/prop: convert slavio_timer.c to helper macros.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Message-Id:Message-Id:
qdev/prop: convert smbus_eeprom.c to helper macros.
qdev/prop: convert sparc32_dma.c to helper macros.
qdev/prop: convert sun4m.c to helper macros.
qdev/prop: convert sun4u.c to helper macros.
qdev/prop: convert syborg_fb.c to helper macros.
qdev/prop: convert slavio_intctl.c to helper macros.
qdev/prop: convert pcnet.c to helper macros.
qdev/prop: convert etraxfs_pic.c to helper macros.
qdev/prop: convert i2c.c to helper macros.
qdev/prop: convert integratorcp.c to helper macros.
qdev/prop: convert iommu.c to helper macros.
qdev/prop: convert m48t59.c to helper macros.
qdev/prop: convert pci.c to helper macros.
qdev/prop: convert arm_sysctl.c to helper macros.
qdev/prop: convert armv7m.c to helper macros.
qdev/prop: convert eccmemctl.c to helper macros.
qdev/prop: convert escc.c to helper macros.