summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* winwave: make error logging more consistentmalc2009-10-151-6/+7
| | | | Signed-off-by: malc <av1474@comtv.ru>
* winwave: follow the rules when closing the output devicemalc2009-10-151-0/+19
| | | | | | | a. call waveOutReset to drain the queue b. unprepare headers before freeing underlying memory Signed-off-by: malc <av1474@comtv.ru>
* configure: clean temporary executable files even on Windowsmalc2009-10-151-1/+1
| | | | Signed-off-by: malc <av1474@comtv.ru>
* scsi disk block descriptor v2Artyom Tarasenko2009-10-141-1/+21
| | | | | | | | | | | | | | | The SCSI-2 documentation suggests, that although the block descriptor is optional for an arbitrary SCSI-2 device (chapter 8.2.10, http://ldkelley.com/SCSI2/SCSI2/SCSI2/SCSI2/SCSI2-08.html ) it is mandatory for a disk: chapters 9.1.2, 9.3.3 ( http://ldkelley.com/SCSI2/SCSI2/SCSI2/SCSI2-09.html ) don't say "optional" any more, just "The block descriptor in the MODE SENSE data describes the block lengths that are used on the medium." v2: limit the number of sectors reported in the block descriptor to 24 bits. Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* Add some chipset doc linksBlue Swirl2009-10-132-0/+17
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* user: fix libuser build messagesBlue Swirl2009-10-131-1/+1
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* sparc64: fix done instruction pcIgor V. Kovalenko2009-10-131-1/+1
| | | | | | | Fix done instruction to resume with pc=tnpc, npc=tnpc+4 Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* qemu: allow pulseaudio to be the defaultMichael S. Tsirkin2009-10-131-1/+1
| | | | | | | | | | | | | | | | We're seeing various issues with the SDL audio backend and want to switch to the pulseaudio backend. See e.g. https://bugzilla.redhat.com/495964 https://bugzilla.redhat.com/519540 https://bugzilla.redhat.com/496627 The pulseaudio backend seems to work well, so we should allow it to be selected as the default. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: malc <av1474@comtv.ru>
* Fixed wacom emulationFrançois Revol2009-10-121-14/+24
| | | | | | | | | | | | | | | | | - for absolute mode, scale coordinates to the real device maximum values, since some drivers (on Haiku and Linux at least) need them as such, and the HID descriptor is boggus on some models anyway, - keep the coordinates even when no button is pressed, on real tablet the pen is sensed on the surface even without direct contact, and drivers expect this, - map left button to pressure according to what the Haiku driver wants, - map the right button to the pen button, - map the middle button to the eraser, - use asynchronous reporting as the hid code does, stops the Haiku driver (and probably others) from spending 50% cpu polling for changes. Signed-off-by: François Revol <revol@free.fr> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* rom loader: also try filename as-is.Gerd Hoffmann2009-10-121-2/+1
| | | | | | | | In case qemu_find_file fails try to open the file as-is. Patchworks-ID: 35263 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* rom loader: fix sparc -kernel boot.Gerd Hoffmann2009-10-1214-24/+54
| | | | | | | | | | | | | | | | | | | | | | | | Changes: (1) register pstrcpy_targphys() in rom list, it is used for kernel command lines by a number of architectures. (2) add rom_ptr() function to get a pointer for applying changes to loaded images. Needed for example to tell the linux kernel where it finds the initrd image by updating the header. (3) make sparc use rom_ptr for initrd setup. booting sparc-test works now, and 'info roms' shows this: (qemu) info roms addr=0000000000000000 size=0x2a3828 mem=ram name="phdr #0: vmlinux-2.6.11+tcx" addr=00000000007ff000 size=0x00000e mem=ram name="cmdline" addr=0000000000800000 size=0x400000 mem=ram name="/root/qemu-test/sparc-test/linux.img" addr=0000000070000000 size=0x0e4000 mem=rom name="phdr #0: /home/kraxel/projects/qemu/build-zfull/pc-bios/openbios-sparc32" reboot via 'system_reset' works too. Patchworks-ID: 35262 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* unlock iothread mutex before running kvm ioctlGlauber Costa2009-10-123-4/+9
| | | | | | | | | Without this, kvm will hold the mutex while it issues its run ioctl, and never be able to step out of it, causing a deadlock. Patchworks-ID: 35359 Signed-off-by: Glauber Costa <glommer@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* TARGET_I386 is always defined if TARGET_X86_64 is definedJuan Quintela2009-10-123-4/+4
| | | | | | Patchworks-ID: 35378 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* slirp: fix !CONFIG_SLIRP compilationJuan Quintela2009-10-121-1/+4
| | | | | | | | This moves the code that depens on slirp under CONFIG_SLIRP again. Patchworks-ID: 35372 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* ide: BMDMAState don't need a pci_dev field anymoreJuan Quintela2009-10-123-3/+0
| | | | | | Patchworks-ID: 35306 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* ide: cmd646 ->unit has just the value that we wantJuan Quintela2009-10-121-2/+2
| | | | | | Patchworks-ID: 35307 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* ide: cmd646 we can get the pci device with container_ofJuan Quintela2009-10-121-6/+11
| | | | | | Patchworks-ID: 35305 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* ide: 'secondary' field is only used by cmd646Juan Quintela2009-10-121-1/+1
| | | | | | Patchworks-ID: 35303 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* ide: PCIIDEState type field is not needed anymoreJuan Quintela2009-10-123-30/+11
| | | | | | | | We have split the functions that needed it for cmd646 Patchworks-ID: 35302 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* ide: split cmd646 and piix from pci.cJuan Quintela2009-10-124-341/+482
| | | | | | | | | | | | This patch splits cmd646 specific code from pci.c. This patch splits piix4 specific code from pci.c. And compile new piix.o and cmd646.o when they are needed. The only change that is not code movemet is removal of cmd646 specific parts in bmdma_readb/writeb for piix. Patchworks-ID: 35301 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* ide: export needed ide-pci functions for splitJuan Quintela2009-10-122-10/+20
| | | | | | Patchworks-ID: 35300 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* ide: create ide/pci.h for common ide pci definitionsJuan Quintela2009-10-122-13/+19
| | | | | | Patchworks-ID: 35299 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* ide: remove uselsess casts from void *Juan Quintela2009-10-122-13/+13
| | | | | | Patchworks-ID: 35298 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* ide: Remove duplicated definitionsJuan Quintela2009-10-121-6/+0
| | | | | | Patchworks-ID: 35297 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* ide: Remove cast in pci_register_barJuan Quintela2009-10-121-12/+6
| | | | | | | | We already have a PCIDevice at that point Patchworks-ID: 35296 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* ide: change cast to DO_UPCASTJuan Quintela2009-10-121-2/+2
| | | | | | Patchworks-ID: 35293 Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Fix bswap in commentStefan Weil2009-10-111-2/+2
| | | | | | | Replace bsawp -> bswap. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
* Move dependency generation falgs out of configuremalc2009-10-112-3/+4
| | | | Signed-off-by: malc <av1474@comtv.ru>
* configure: clean up temporary dependency filesmalc2009-10-111-1/+2
| | | | Signed-off-by: malc <av1474@comtv.ru>
* winwave: pause/restore playing upon seeing VOICE_DISABLE/ENABLEmalc2009-10-111-0/+18
| | | | Signed-off-by: malc <av1474@comtv.ru>
* winwave: close event handle and delete wait object after closing HWAVEOUTmalc2009-10-111-2/+2
| | | | | | To avoid possibly being called back and thus racing. Signed-off-by: malc <av1474@comtv.ru>
* winwave: remove wait object when finalizing DAC voicemalc2009-10-111-13/+14
| | | | Signed-off-by: malc <av1474@comtv.ru>
* CRIS: Segmented addressing only for kernel mode.Edgar E. Iglesias2009-10-102-3/+5
| | | | | | | | Segmented translation through the CRIS MMU is only done for accesses in kernel mode. In user-mode, all accesses are treated as paged regardless of the mode config in RW_MM_CFG. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
* Fix Windows host breakage by 45a50b1668822c23afc2a89f724654e176518bc4 (TeLeMan)malc2009-10-101-1/+1
| | | | Signed-off-by: malc <av1474@comtv.ru>
* winwave: poll modemalc2009-10-101-0/+61
| | | | Signed-off-by: malc <av1474@comtv.ru>
* Windows Waveform Audio driver (no ADC support yet)malc2009-10-107-97/+449
| | | | Signed-off-by: malc <av1474@comtv.ru>
* pcnet: Restart poll timer on pcnet_startJan Kiszka2009-10-081-0/+1
| | | | | | | | | Just like we call into pcnet_poll_timer on stop, we need to call it on start to trigger the setup of the poll timer. Patchworks-ID: 35313 Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* pcnet: Drop unused recv_pos fieldJan Kiszka2009-10-081-13/+8
| | | | | | | | | | This state field was never used, simply remained 0. Drop it from the PCNetState and update the save/restore code accordingly, keeping backward compatibility. Patchworks-ID: 35314 Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* monitor: Convert do_info_cpus() to QObjectLuiz Capitulino2009-10-081-14/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | Each CPU information is stored in a QDict and the returned QObject is a QList of all CPUs. The QDict contains the following information: - "CPU": cpu index - "current": "yes" or "no" - "pc": current PC - "halted": "yes" or "no" The user output in the Monitor should not change and the future monitor protocol is expected to emit something like: [ { "CPU": 0, "current": "yes", "pc": 0x..., "halted": "no" }, { "CPU": 1, "current": "no", "pc": 0x..., "halted": "yes" } ] which corresponds to the following user output: * CPU #0: pc=0x00000000fffffff0 CPU #1: pc=0x00000000fffffff0 (halted) Patchworks-ID: 35352 Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* monitor: Convert do_info_balloon() to QObjectLuiz Capitulino2009-10-081-3/+13
| | | | | | | | | | | | | On success return a QInt with the balloon's value. This also introduces monitor_print_balloon() to print the balloon information in the user protocol. Please, note that errors are not being converted yet. Patchworks-ID: 35351 Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* monitor: Convert do_info_version() to QObjectLuiz Capitulino2009-10-081-3/+25
| | | | | | | | | | | The returned data is always a QString. Also introduces monitor_print_qobject(), which can be used as a standard way to print QObjects in the user protocol format. Patchworks-ID: 35350 Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* monitor: Convert do_balloon() to QObjectLuiz Capitulino2009-10-082-3/+6
| | | | | | | | | It is important to note that it never fails, as big refactoring of the virtio code would be needed to get the proper error code. Patchworks-ID: 35349 Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* monitor: Convert do_cont() to QObjectLuiz Capitulino2009-10-082-3/+7
| | | | | | | | | | | Appropriate error handling support will be needed to have encrypted images working under the future machine protocol, but this initial conversion will work with the current user protocol. Patchworks-ID: 35348 Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* monitor: Convert do_system_powerdown() to QObjectLuiz Capitulino2009-10-082-2/+7
| | | | | | Patchworks-ID: 35346 Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* monitor: Convert do_system_reset() to QObjectLuiz Capitulino2009-10-082-2/+7
| | | | | | Patchworks-ID: 35347 Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* monitor: Convert do_stop() to QObjectLuiz Capitulino2009-10-082-2/+6
| | | | | | Patchworks-ID: 35343 Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* monitor: Convert do_quit() do QObjectLuiz Capitulino2009-10-082-2/+6
| | | | | | Patchworks-ID: 35345 Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* monitor: do_info(): handle new and old info handlersLuiz Capitulino2009-10-082-8/+24
| | | | | | | | | | | | | | | | | | | | | | | | | do_info() is special, its job is to call 'info handlers'. This is similar to what monitor_handle_command() does, therefore do_info() also has to distinguish among new and old style info handlers. This commit converts do_info() to the new QObject style and makes the appropriate changes so that it can handle both info handlers styles. In the future, when all handlers are converted to QObject's style, it will be possible to share more code with monitor_handle_command(). This commit also introduces a new function called monitor_user_noop(), it should be used by handlers which do not have data to print. This is the case of do_info(). Patchworks-ID: 35341 Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* monitor: Handle new and old style handlersLuiz Capitulino2009-10-081-3/+23
| | | | | | | | | | | | | | | | | | | | This commit changes monitor_handle_command() to support old style _and_ new style handlers. New style handlers are protocol independent, they return their data to the Monitor, which in turn decides how to print them (ie. user protocol vs. machine protocol). Converted handlers will use the 'user_print' member of 'mon_cmd_t' to define its user protocol function, which will be called to print data in the user protocol format. Handlers which don't have 'user_print' defined are not converted and are handled as usual. Patchworks-ID: 35340 Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* monitor: Add user_print() to mon_cmd_tLuiz Capitulino2009-10-081-0/+1
| | | | | | | | | | | | This new struct member will store a pointer to a function that should be used to output data in the user protocol format. It will also serve as a flag to say if a given handler has already been converted to the new QObject style. Patchworks-ID: 35339 Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
OpenPOWER on IntegriCloud