summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-06-21Merge commit '666daa68234b5b1758652633cab07d5ca6046a5b' into upstream-mergeAvi Kivity46-770/+894
* commit '666daa68234b5b1758652633cab07d5ca6046a5b': blockdev: Collect block device code in new blockdev.c qdev: Move declaration of qdev_init_bdrv() into qdev.h blockdev: Hide QEMUMachine from drive_init() block: call the snapshot handlers of the protocol drivers close all the block drivers before the qemu process exits block: Assume raw for drives without media Fix error message in drive_init scsi: Fix info qtree for scsi-disk.ver scsi: Turn drive serial into a qdev property scsi-disk.serial ide: Fix info qtree for ide-drive.ver ide: Turn drive serial into a qdev property ide-drive.serial qdev: Don't leak string property value on hot unplug qdev: New qdev_prop_set_string() ide: Split non-qdev code off ide_init2() ide: Change ide_init_drive() to require valid dinfo argument ide: Split ide_init1() off ide_init2() ide: Remove redundant IDEState member conf ide: Remove useless IDEDeviceInfo members unit, drive usb: Remove unused usb_device_add() parameter is_hotplug Conflicts: hw/pc.c sysemu.h vl.c Signed-off-by: Avi Kivity <avi@redhat.com>
2010-06-21Merge commit 'f274776028ddb026f8891cabaf59bd58dbfc31bd' into upstream-mergeAvi Kivity6-27/+26
* commit 'f274776028ddb026f8891cabaf59bd58dbfc31bd': blockdev: Belatedly remove driveopts blockdev: Belatedly remove MAX_DRIVES qemu-io: Fix error messages Cleanup: virtio-blk.c: Be more consistent using BDRV_SECTOR_SIZE instead Cleanup: raw-posix.c: Be more consistent using BDRV_SECTOR_SIZE instead of 512 Cleanup: Be consistent and use BDRV_SECTOR_SIZE instead of 512 Cleanup: bdrv_open() no need to shift total_size just to shift back. Conflicts: sysemu.h vl.c Signed-off-by: Avi Kivity <avi@redhat.com>
2010-06-21Make hpet/pit interface close to upstreamAvi Kivity3-8/+8
Signed-off-by: Avi Kivity <avi@redhat.com>
2010-06-21Merge commit '27bb0b2d6f80f058bdb6fcc8fcdfa69b0c8a6d71' into upstream-mergeAvi Kivity11-355/+393
* commit '27bb0b2d6f80f058bdb6fcc8fcdfa69b0c8a6d71': hpet: Coding style cleanups and some refactorings hpet: Catch out-of-bounds timer access configure: Fix evaluation of config-host.mak in create_config tcg-s390: correctly detect s390 with a 64-bit kernel Compile OS specific files only once for all targets Move set_proc_name() to OS specific files. Move line-buffering setup to OS specific files. Make os_change_process_uid and os_change_root os-posix.c local Move daemonize handling to OS specific files Conflicts: hw/hpet.c Signed-off-by: Avi Kivity <avi@redhat.com>
2010-06-21Merge commit '0766379d4c58c5c1edc6adc414bfb25fc979b083' into upstream-mergeAvi Kivity4-15/+22
* commit '0766379d4c58c5c1edc6adc414bfb25fc979b083': Move chroot handling to OS specific files. Conflicts: vl.c Signed-off-by: Avi Kivity <avi@redhat.com>
2010-06-21Merge commit '8847cfe8aa9d8f6b8648aafd5d929a57d836cc61' into upstream-mergeAvi Kivity4-28/+31
* commit '8847cfe8aa9d8f6b8648aafd5d929a57d836cc61': Move runas handling from vl.c to OS specific files. Conflicts: vl.c Signed-off-by: Avi Kivity <avi@redhat.com>
2010-06-21Merge commit '59a5264b994343f01d19faf95c0e5df70346ded8' into upstream-mergeAvi Kivity32-2370/+1769
* commit '59a5264b994343f01d19faf95c0e5df70346ded8': (33 commits) Introduce OS specific cmdline argument handling and move SMB arg to os-posix.c Rename qemu-options.h to qemu-options.def Move find_datadir to OS specific files. Move main signal handler setup to os specificfiles. Rename os_setup_signal_handling() to os_setup_early_signal_handling() Move win32 early signal handling setup to os_setup_signal_handling() Introduce os-posix.c and create os_setup_signal_handling() vl.c: Move host_main_loop_wait() to OS specific files. Introduce os-win32.c and move polling functions from vl.c Create qemu-os-win32.h and move WIN32 specific declarations there vl.c: Remove double include of netinet/in.h for Solaris NEON vldN optimization tcg: fix DEF macro after commit c61aaf7a388c4ad95d8b546fdb9267dc01183317 tcg-s390: Adjust compilation flags. tcg-s390: Compute is_write in cpu_signal_handler. s390x: Don't use a linker script for user-only. s390x: Avoid _llseek. tcg-s390: Allocate the code_gen_buffer near the main program. tcg-s390: Icache flush is a no-op. tcg-i386: fix andi r, r, 0xff ... Conflicts: vl.c Signed-off-by: Avi Kivity <avi@redhat.com>
2010-06-21Merge commit '7f9744812291853425b614f68668f48d49882a1f' into upstream-mergeAvi Kivity1-3/+3
* commit '7f9744812291853425b614f68668f48d49882a1f': virtio-net: stop vhost backend on vmstop Conflicts: hw/virtio-net.c Signed-off-by: Avi Kivity <avi@redhat.com>
2010-06-21Merge commit 'ca35f780ac4654bfa086613c72b011448afff327' into upstream-mergeAvi Kivity5-61/+71
* commit 'ca35f780ac4654bfa086613c72b011448afff327': move computation of tools and roms outside of config-host.mak generation configure: move directory defaults earlier configure: ignore unknown --xyzdir options configure: introduce more --xyzdir options configure: expand ${prefix} in create_config configure: move all directory entries in config-host.mak close configure: unify handling of xyzdir variables rename CONFIG_QEMU_PREFIX configure: introduce confdir and confsuffix Conflicts: configure Signed-off-by: Avi Kivity <avi@redhat.com>
2010-06-21Merge commit 'e7b45cc4467f9bbae46acdc8d21ceb2a16d63b50' into upstream-mergeAvi Kivity16-435/+3117
* commit 'e7b45cc4467f9bbae46acdc8d21ceb2a16d63b50': configure: introduce sysconfsuffix configure: delete duplicate create_config case stanza configure: dyngen is long time gone configure: avoid using expr configure: bail out early on invalid -cpu option configure: remove some bashisms target-mips: Fix compilation hw: honor low bit in mipssim machine linux-user: honor low bit of entry PC for MIPS target-mips: add microMIPS exception handler support target-mips: microMIPS ASE support target-mips: mips16 cleanups target-mips: refactor c{, abs}.cond.fmt insns target-mips: move FP FMT comments closer to the definitions target-mips: define constants for magic numbers tcg: get rid of DEF2 in tcg-opc.h tcg: get rid of copy_size in TCGOpDef Conflicts: configure Signed-off-by: Avi Kivity <avi@redhat.com>
2010-06-20Update OpenBIOS imagesBlue Swirl4-1/+1
Update PPC, Sparc32 and Sparc64 OpenBIOS images to R795. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2010-06-19apic: qdev conversion cleanupBlue Swirl5-63/+82
Make APICState completely private to apic.c by using DeviceState in external APIs. Move apic_init() to pc.c. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2010-06-19apic: convert to qdevBlue Swirl2-29/+61
Convert to qdev. Use an opaque CPUState pointer because of missing VMState implementation for CPUState. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2010-06-19apic: avoid using CPUState internalsBlue Swirl5-39/+77
Move the actual CPUState contents handling to cpu.h and cpuid.c. Handle CPU reset and set env->halted in pc.c. Add a function to get the local APIC state of the current CPU for the MMIO. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2010-06-19apic: avoid passing CPUState from CPU codeBlue Swirl5-42/+36
Pass only APICState when accessing APIC from CPU code. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2010-06-19apic: avoid passing CPUState from devicesBlue Swirl3-25/+25
Pass only APICState from pc.c. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2010-06-19ioapic: convert to qdevBlue Swirl4-19/+51
Convert to qdev. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2010-06-18device-assignment, msi: PBA is longHidetoshi Seto1-1/+1
Accidentally a pci_read_long() was replaced with assigned_dev_pci_read_byte() by the commit: commit a81a1f0a7410976be7dbc9a81524a8640f446ab5 Author: Alex Williamson <alex.williamson@redhat.com> device-assignment: Don't use libpci Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> Acked-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2010-06-17ioapic: unexport ioapic_set_irqBlue Swirl2-2/+1
There's no need to use ioapic_set_irq() outside of ioapic.c, so make it static. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2010-06-16qemu: Enable XSAVE related CPUIDSheng Yang1-0/+21
We can support it in KVM now. The 0xd leaf is queried from KVM. Signed-off-by: Sheng Yang <sheng@linux.intel.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2010-06-16qemu: kvm: Extend kvm_arch_get_supported_cpuid() to support indexSheng Yang2-9/+12
Would use it later for XSAVE related CPUID. Signed-off-by: Sheng Yang <sheng@linux.intel.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2010-06-16Usermode exec-stack fixPaul Brook4-0/+14
When loading a shared library that requires an executable stack, glibc uses the mprotext PROT_GROWSDOWN flag to achieve this. We don't support PROT_GROWSDOWN. Add a special case to handle changing the stack permissions in this way. Signed-off-by: Paul Brook <paul@codesourcery.com>
2010-06-16Strace mprotect flags.Paul Brook2-0/+9
Teach strace code about linux specific mprotect flags. Signed-off-by: Paul Brook <paul@codesourcery.com>
2010-06-16GDB exit status for semihostingPaul Brook4-15/+23
Report exit status to GDB when a semihosted application exits. Signed-off-by: Paul Brook <paul@codesourcery.com>
2010-06-16cris: Move sign extension.Edgar E. Iglesias1-13/+13
Move it in preparation for further changes. No functional change. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@axis.com>
2010-06-16cris: Centralize fetchingEdgar E. Iglesias1-22/+44
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
2010-06-16cris: Make the CRISv32 insn decoders return signed int.Edgar E. Iglesias1-86/+86
Prepare to return error from the individual decoders. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@axis.com>
2010-06-16tcg: Optionally sign-extend 32-bit arguments for 64-bit hosts.Richard Henderson8-36/+193
Some hosts (amd64, ia64) have an ABI that ignores the high bits of the 64-bit register when passing 32-bit arguments. Others require the value to be properly sign-extended for the type. I.e. "int32_t" must be sign-extended and "uint32_t" must be zero-extended to 64-bits. To effect this, extend the "sizemask" parameter to tcg_gen_callN to include the signedness of the type of each parameter. If the tcg target requires it, extend each 32-bit argument into a 64-bit temp and pass that to the function call. This ABI feature is required by sparc64, ppc64 and s390x. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2010-06-15test: add test for pusha and popa instructionsWei Yongjun1-0/+46
This patch add test for pusha and popa instructions. Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2010-06-15Synchronize kernel headersMarcelo Tosatti2-3/+81
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2010-06-15Fix compilation with !KVM_CAP_XSAVEMarcelo Tosatti1-4/+15
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2010-06-16Fix comparison which always returned falseStefan Weil1-2/+4
Comparing an 8 bit value with ~0 does not work as expected. Replace ~0 by UINT8_MAX in comparison and also in assignment (and fix coding style, too). Cc: Gleb Natapov <gleb@redhat.com> Cc: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: malc <av1474@comtv.ru>
2010-06-15qxl: allow flushing the command queue in QXL_MODE_UNDEFINED.Gerd Hoffmann2-11/+10
2010-06-15spice: live migration (wip).Gerd Hoffmann4-0/+101
Handle spice client migration, i.e. inform a spice client connected about the new host and connection parameters, so it can move over the connection automatically.
2010-06-15spice: add pci vdi port backend (obsolete).Gerd Hoffmann2-1/+557
This is *not* intended to be merged upstream. It is just here because the virtio-serial windows guest drivers are not ready, so you can't go with the new spice-vmc yet.
2010-06-15spice: add virtio-serial based vdi port backend.Gerd Hoffmann2-0/+204
Adds the spicevmc device. This is a communication channel between the spice client and the guest. It is used to send display information and mouse events from the spice clients to the guest.
2010-06-15spice: add audioGerd Hoffmann6-0/+319
Add support for the spice audio interface. The driver is first in the driver list, but can_be_default is set only in case spice is active. So if you are using spice the spice audio driver is the default one, otherwise whatever comes first after spice in the list. Overriding the default using QEMU_AUDIO_DRV works in any case.
2010-06-15spice: add qxl deviceGerd Hoffmann10-3/+1913
qxl is a paravirtual graphics card. The qxl device is the bridge between the guest and the spice server (aka libspice-server). The spice server will send the rendering commands to the spice client, which will actually render them. The spice server is also able to render locally, which is done in case the guest wants read something from video memory. Local rendering is also used to support display over vnc and sdl. qxl is activated using "-vga qxl". qxl supports multihead, additional cards can be added via '-device qxl".
2010-06-15spice: tls supportGerd Hoffmann2-4/+86
Add options to the -spice command line switch to setup tls: tls-port listening port x509-dir x509 file directory. Expects same filenames as -vnc $display,x509=$dir x509-key-file x509-key-password x509-cert-file x509-cacert-file x509-dh-key-file x509 files can also be set individually. tls-ciphers which ciphers to use.
2010-06-15all vga: refuse hotplugging.Gerd Hoffmann3-0/+12
Try to pci hotplug a vga card, watch qemu die with hw_error(). This patch fixes it.
2010-06-15switch vmware_vga to pci vgabiosGerd Hoffmann1-6/+1
2010-06-15switch stdvga to pci vgabiosGerd Hoffmann1-4/+3
2010-06-15vgabios update to 0.6c + pcibios patches.Gerd Hoffmann7-2/+3
2010-06-15spice: add tablet supportsubmit.1Gerd Hoffmann2-8/+93
Add support for the spice tablet interface. The tablet interface will be registered (and then used by the spice client) as soon as a absolute pointing device is available and used by the guest, i.e. you'll have to configure your guest with '-usbdevice tablet'.
2010-06-15spice: simple displayGerd Hoffmann5-2/+464
With that patch applied you'll actually see the guests screen in the spice client. This does *not* bring qxl and full spice support though. This is basically the qxl vga mode made more generic, so it plays together with any qemu-emulated gfx card. You can display stdvga or cirrus via spice client. You can have both vnc and spice enabled and clients connected at the same time.
2010-06-15spice: add mouseGerd Hoffmann1-0/+31
Open mouse channel. Now you can move the guests mouse pointer. No tablet / absolute positioning (yet) though.
2010-06-15spice: add keyboardGerd Hoffmann4-1/+61
Open keyboard channel. Now you can type into the spice client and the keyboard events are sent to your guest. You'll need some other display like vnc to actually see the guest responding to them though.
2010-06-15spice: core bitsGerd Hoffmann7-0/+224
Add -spice command line switch. Has support setting passwd and port for now. With this patch applied the spice client can successfully connect to qemu. You can't do anything useful yet though.
2010-06-15add spice into the configure fileGerd Hoffmann1-0/+36
2010-06-15configure: add loggingGerd Hoffmann1-2/+5
Write compile commands and messages to config.log. Useful for debugging configure.