prep: Fix offset of BIOS MemoryRegion
Since 0c90c52fab5ea92d7f12b29bfe26a7cd75d9efcb (ppc_prep: convert to memoryAPI) OHW was "Trying to execute code outside RAM or ROM at 0xfff00700".
The BIOS MemoryRegion is created with a fixed size of 1 MiB.Ensure that the full size can be accessed since the exception...
prep: Use ISA m48t59
This simplifies the code later when the i8259 moves to the i82378PCI->ISA bridge and happens to fix a SysBus m48t59 io_base issueintroduced by commit 0fb56ffc5edd66f12ccfc0d71af5f9c79c0a2612 (m48t59:drop obsolete address base arithmetic). Suggested by Hervé and Jan....
prep: qdev'ify Raven host bridge (PCIDevice)
Move initialization of vendor ID, etc. to PCIDeviceInfo.Introduce VMState.
Signed-off-by: Andreas Färber <andreas.faerber@web.de>Reviewed-by: Alexander Graf <agraf@suse.de>Cc: Hervé Poussineau <hpoussin@reactos.org>...
prep_pci: Simplify I/O endianness
The prep PowerPC CPU is Big Endian. An explicit byte swap thereforeeffectively becomes Little Endian.
Remove explicit byte swaps and mark as Little Endian.
Signed-off-by: Andreas Färber <andreas.faerber@web.de>Reviewed-by: Alexander Graf <agraf@suse.de>...
prep_pci: Update I/O to MemoryRegion ops
Convert to new-style read/write callbacks.
Signed-off-by: Andreas Färber <andreas.faerber@web.de>Cc: Alexander Graf <agraf@suse.de>Cc: Michael S. Tsirkin <mst@redhat.com>Cc: Avi Kivity <avi@redhat.com>Cc: Benoît Canet <benoit.canet@gmail.com>
prep: qdev'ify Raven host bridge (SysBus)
Drop pci_prep_init() in favor of extended device state. Inspired bypatches from Hervé and Alex.
Assign the 4 IRQs from the board after device instantiation. This movesthe knowledge out of prep_pci and allows for future machines with...
MAINTAINERS: Add PCI host bridge files to PReP machine
Signed-off-by: Andreas Färber <andreas.faerber@web.de>Acked-by: Alexander Graf <agraf@suse.de>
prep: Add i82374 DMA emulation
Prepare Intel 82374 emulation for use by Intel 82378 PCI->ISA bridge.
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Confine to CONFIG_I82374. Add VMState.
Signed-off-by: Andreas Färber <andreas.faerber@web.de>Reviewed-by: Alexander Graf <agraf@suse.de>
Merge remote-tracking branch 'spice/spice.v47' into staging
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
Merge remote-tracking branch 'qmp/queue/qmp' into staging
Merge remote-tracking branch 'pmaydell/arm-devs.for-upstream' into staging
Merge remote-tracking branch 'kraxel/usb.37' into staging
Makefile: Remove generated headers on clean
Running `make distclean' followed by a new out-of-tree build would faildue to stale generated QMP headers in the tree.
Commit 611b727374ad76fb0078ea65bc1387194913980e (Makefile: remove moregenerated files on clean) made sure generated sources are removed....
Makefile: Exclude tests/Makefile in unconfigured tree
Since commit dbfe06c62ccedc5b64e1c6466445133dd50f6de1 (build:split unit test builds to a separate makefile fragment),in absence of config-host.mak an undefined $(SRC_PATH) breaks`make distclean' due to /tests/Makefile not being include'able....
lm32: Fix mixup of uint32 and uint32_t
Commit d23948b15a9920fb7f6374b55a6db1ecff81f3ee (lm32: add MilkymistVGAFB support) introduced a stray usage of the softfloat uint32 type.
Use uint32_t instead.
Signed-off-by: Andreas Färber <afaerber@suse.de>Acked-by: Michael Walle <michael@walle.cc>...
tests: Silence gtester in Makefile
This prettifies make output a little by avoiding a very long line.As gtester prints the checks when they are run, no information is lost.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
qemu-tool: Fix mixup of int64 and int64_t
Commit cbcfa0418f0c196afa765f5c9837b9344d1adcf3 (link the main loop andits dependencies into the tools) introduced stray usages of int64.
Use int64_t instead.
Signed-off-by: Andreas Färber <afaerber@suse.de>Cc: Paolo Bonzini <pbonzini@redhat.com>...
block: eject_device(): Use error_set()
Also drops the leftover 'mon' argument.
This is a preparation for the next commits which will port theeject and change commands to the QAPI.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
qapi: Convert eject
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
monitor: expose readline state
HMP is now implemented in terms of QMP. The monitor has a bunch of logic todeal with HMP right now like readline support. Export it from the monitor sowe can consume it in hmp.c.
In short time, hmp.c will take over all of the readline bits....
qapi: Introduce change-vnc-password
New QMP command to change the VNC password.
qerror: Extend QERR_DEVICE_ENCRYPTED
Include the name of the encrypted file.
qapi: Convert change
qapi: Convert block_set_io_throttle
qmp: Add missing gcc format attribute and fix format string
Signed-off-by: Stefan Weil <sw@weilnetz.de>Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
qerror: add check-qerror.sh to verify alphabetical order
We're supposed to keep qerror definitions and table entries inalphabetical order. In practice this is not checked.
I haven't found a nice way to integrate this into the makefile yet butwe can at least have this script which verifies that qerrors are in...
qerror: restore alphabetical order over qerrors
Over time these must have gotten out of order. Put everything back inalphabetical order.
This is purely a clean up. In practice nothing depends on the order.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>...
block: use proper qerrors in qmp_block_resize
Let's report specific errors so that management tools and users canidentify the problem.
Two new qerrors are needed: * QERR_DEVICE_HAS_NO_MEDIUM for ENOMEDIUM * QERR_DEVICE_IS_READ_ONLY for EACCES
vnc: Simplify vnc_display_password()
Drop the qerror_report() call from it and let its callers set the errorthemselves. This also allows for dropping the 'ret' variable.
qapi: Convert set_password
qapi: Convert expire_password
qxl: Slot sanity check in qxl_phys2virt() is off by one, fix
Spotted by Coverity.
Signed-off-by: Markus Armbruster <armbru@redhat.com>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
vexpress, realview: Add (dummy) L2 cache controller
Instantiate the L2 cache controller on the ARM devboards which have one,since we have a dummy model of it now. Note that the only non-MP boardwith an L2x0 is the PB1176, which we don't model.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
arm: Remove incorrect comment in arm_timer
The current comment says that the arm_timers are restricted to between32 KHz and 1 MHz, but sp804 TRM does not specify those limits.
Signed-off-by: Mark Langsdorf <mark.langsdorf@calxeda.com>Reviewed-by: Andreas Färber <afaerber@suse.de>...
hw/lan9118: Add save/load support
Implement save/load for the LAN9118.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Reviewed-by: Andreas Färber <afaerber@suse.de>
arm: make the number of GIC interrupts configurable
Increase the maximum number of GIC interrupts for a9mp and a11mp to 1020,and create a configurable property for each defaulting to 96 and 64(respectively) so that device modelers can set the value appropriately...
usb-redir: Clear iso / irq error when stopping the stream
And ignore status messages from the client which arrive after streamstop (the stream stop send to the client and an error status reported bythe client my cross each other due to network latency)....
usb-redir: Dynamically adjust iso buffering size based on ep interval
Note the bufpq_target_size id stored in the endpoint info struct,even though it only used once. This is done because it will bereferenced from other code in a follow up patch.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>...
usb-redir: Pre-fill our isoc input buffer before sending pkts to the host
This is something which should have been done from the first version ofusb-redir, but wasn't.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
usb-redir: Try to keep our buffer size near the target size
Before this patch we would allow the (iso) buffer to grow unlimited(and it would under certain circumstances) leading to way too highlatencies for iso data streams.
usb-redir: Improve some debugging messages
usb: add USBEndpoint
Start maintaining endpoint state at USBDevice level. Add USBEndpointstruct and some helper functions to deal with it. For now it containsthe endpoint type only. Moved over some bits from usb-linux.c
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
usb: add ifnum to USBEndpoint
usb-desc: USBEndpoint support
Initialize USBEndpoint structs from USBDesc* data.
usb/debug: add usb_ep_dump
Add function to dump endpoint data, for debugging purposes.
usb: add max_packet_size to USBEndpoint
usb: link packets to endpoints not devices
Add USBEndpoint for the control endpoint to USBDevices. Link asyncpackets to the USBEndpoint instead of the USBDevice.
xhci: Initial xHCI implementation
Based on the implementation from Hector Martin <hector@marcansoft.com>
Hectors's implementation completely sidestepped the qemu usb system andused libusb directly for usb device pass through. So I've ripped outthe libusb bits (or left them in disabled, as reference for further...
pxa2xx_keypad: fix unbalanced parenthesis.
Breakage introduced by me when ammending a previous patch, sorry.
hw/arm_boot.c: Make SMP boards specify address to poll in bootup loop
The secondary CPU bootloader in arm_boot.c holds secondary CPUs in apen until the primary CPU releases them. Make boards specify theaddress to be polled to determine whether to leave the pen (it was...
hw/sysbus.h: Increase maximum number of device IRQs.
Samsung exynos4210 Interrupt Combiner needs 512 IRQ sources.
Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>Reviewed-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
pxa2xx_keypad: make single automatic scans work
u-boot uses single automatic scans and polling inpxa2xx_keypad driver, so clear KPC_AS bit immediatelyand update keys state even if KPC_AS and KPC_ASACT arecleared.
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>...
pxa2xx_lcd: fix palette parser
Pallete entry size for 16bpp format is 2 bytes, not 4
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
seabios: Update to release 1.6.3.1
User visible changes in seabios: - Probe HPET existence (fix for -no-hpet) - Probe PCI existence (fix for -machine isapc) - usb: fix boot paths
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
isapc: Fix segfault during initialization
Obviously, linking the RTC device state to the PIIX does not belong intothe common path that is shared with the isapc.
kvm: flush the dirty log when unregistering a slot
Otherwise, the dirty log information is lost in the kernel forever.
Fixes opensuse-12.1 boot screen, which changes the vga windows rapidly.
Signed-off-by: Avi Kivity <avi@redhat.com>
target-arm: Fix errors in decode of M profile CPS
Fix errors in the decode of M profile CPS: * the decode of the I (affects PRIMASK) and F (affects FAULTMASK) bits was reversed * the FAULTMASK system register number is 19, not 17
This fixes an issue reported as LP:913925....
arm: Add dummy support for co-processor 15's secure config register
Signed-off-by: Rob Herring <rob.herring@calxeda.com>Signed-off-by: Mark Langsdorf <mark.langsdorf@calxeda.com>Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
prepare for future GPLv2+ relicensing
All files under GPLv2 will get GPLv2+ changes starting tomorrow.event_notifier.c and exec-obsolete.h were only ever touched by Red Hatemployees and can be relicensed now.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>...
qdev: Add a 'free' method to disassociate chardev from qdev device
When a device is removed, remove the association with a chardev, if any,so that the chardev can be re-used later for other devices.
Reported-by: Qunfang Zhang <qzhang@redhat.com>Fix-suggested-by: Markus Armbruster <armbru@redhat.com>...
virtio-console: no need to remove char handlers explicitly
qdev is now equipped (thanks to the last commit) to disassociatechardevs from the qdev devices on the devices going away. So doing itin the virtio-console driver is not necessary.
Since that was the only thing being done in the qdev exit method, drop...
vectorize is_dup_page
is_dup_page is already proceeding in 32-bit chunks. Changing itto 16 bytes using Altivec or SSE is easy.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vmstate: extract declarations out of hw/hw.h
virtio-blk: refuse SG_IO requests with scsi=off
QEMU does have a "scsi" option (to be used like -devicevirtio-blk-pci,drive=foo,scsi=off). However, it onlymasks the feature bit, and does not reject the commandif a malicious guest disregards the feature bits and...
rtc: clear non-PF bits when reinjecting on ack
When an rtc interrupt is reinjected immediately after being acked,other interrupts should not be reinjected, so do clear their bits.
Also, if the periodic interrupts have been disabled before acking,do not reinject, as the guest might get very confused!...
ptimer: move declarations to ptimer.h
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qdev: fix device_del by refactoring reference counting
Commit 8eb0283 broken device_del by having too overzealous reference countingchecks. Move the reference count checks to qdev_free(), make sure to removethe parent link on free, and decrement the reference count on property removal....
rtc: fix 12-hour mode
Hours in 12-hour mode are in the 1-12 range, not 0-11.
rtc: raise AF bit when the alarm is encountered but AIE=0
rtc: raise PF bit when the periodic timer triggers but PIE=0
Merge remote-tracking branch 'stefanha/trivial-patches' into HEAD
target-i386: fix compilation with --enable-debug-tcg
Commit 2355c16e74ffa4d14e7fc2b4a23b055565ac0221 introduced a new ldmxcsrhelper taking an i32 argument, but the helper is actually passed a long.Fix that by truncating the long to i32.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hmp: Fix freeing of PciInfoList
Remember the original PciInfoList in info_list and usethe info variable to traverse the list.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
virtfs-proxy-helper: Fix compilation on newer systems
Include file attr/xattr.h is not available on "newer" systems(for example Fedora 12 or Debian Squeeze).
See comments in qemu-xattr.h for more information.This file handles the system dependencies automatically....
virtfs-proxy-helper: Clean include files
The common standard include files are already included via qemu-common.h,and for the socket related include files there is qemu_socket.h, so thecode can be reduced by some lines.
Signed-off-by: Stefan Weil <sw@weilnetz.de>...
virtfs-proxy-helper: Add missing printf format attribute
Every function with printf like arguments must have it(see file HACKING), so add it.
bt-host: add missing break statement
The switch statement in bt_host_read() is missing a break in one case.Andrzej Zaborowski <andrew.zaborowski@intel.com> confirmed that this isnot an intentional fall-through.
Reviewed-by: Stefan Weil <sw@weilnetz.de>...
configure: Modify detection of supported warning options
Reversing the order of the warning options and -Werror is importantwhen clang is used instead of gcc. It changes nothing for gcc.
tcg-arm: fix a typo in comments
ARM still doesn't support 16GB buffers in 32-bit modes, replace the16GB by 16MB in the comment.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Spelling fixes in comments and documentation
Codespell detected these new spelling issues.
vvfat: avoid leaking file descriptor in commit_one_file()
Reported-by: Dr David Alan Gilbert <davidagilbert@uk.ibm.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
vnc: fix no-lock-key-sync strncmp() length
The no-lock-key-sync option is being parsed incorrectly because of anoutdated strcmp() length value. Use the correct length so that invalidoption names do not match.
Reported-by: Dr David Alan Gilbert <davidagilbert@uk.ibm.com>...
omap_dss: correct chip1 index in RFBI_READ/RFBI_STATUS
The RFBI_READ/RFBI_STATUS code incorrectly uses chip0 when it shouldbe using chip1. Andrzej Zaborowski <balrog@zabor.org> confirmed thisbug since I don't know this code well.
Add 'fall through' comments to case statements without break
These comments are used by static code analysis tools and in code reviewsto avoid false warnings because of missing break statements.
The case statements handled here were reported by coverity....
cris: Update paths to match the move of tests/cris
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
usb-host: rip out legacy procfs support
This patch removes support for parsing /proc/bus/usb/devices for devicediscovery. The code lacks a few features compared to the sysfs code andis also bitrotting as everybody has sysfs these days.
This implies having sysfs mounted is mandatory now to use the usb-host...
usb: track configuration and interface count in USBDevice.
Move fields from USBHostDevice to USBDevice.Add bits to usb-desc.c to fill them for emulated devices too.Also allow to set configuration 0 (== None) for emulated devices.
usb: track altsetting in USBDevice
Also handle {GET,SET}_INTERFACE in common code (usb-desc.c).
usb-desc: audio endpoint support
Add support for audio endpoints which have two more fields in thedescriptor. Also add support for extra class specific endpointdescriptors.
usb: add audio device model
This brings a usb audio device to qemu. Output only, fixed at16bit stereo @ 480000 Hz. Based on a patch fromH. Peter Anvin <hpa@linux.intel.com>
Usage: add '-device usb-audio' to your qemu command line.
Works sorta ok on a idle machine. Known issues:...
check-qstring: remove check.h include
Reported-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
cleanup, Remove duplicated code
These two blocks of code are exactly the same, remove one.
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
cleanup, save a syscall
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Support for UDP unicast network backend
Signed-off-by: Benjamin MARSILI <mlspirat42@gmail.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
MAINTAINERS: update tracing repo git URL
I have moved git hosting services.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
test: eliminate libcheck tests and have make check use gtester
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
check-qlist: convert to gtest
check-qjson: convert to gtest
check-qjson: enable disabled tests
gtest does the right thing here so there's no need to comment these tests out.