baum: fix build
08744c98115cfa144ed3493556024e400b2e2573 removed hw/baum.hbut did not adjust hw/baum.c, breaking build. Fix.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>Message-id: c50406bda98f8b277e8b9004a0012fa5e5c124d0.1362822910.git.blauwirbel@gmail.com...
serial: add flow control to transmit
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Amit Shah <amit.shah@redhat.com>Message-id: 2976f10d4e66ed4a34011f6f0d6937026d22be5f.1362505276.git.amit.shah@redhat.comSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
virtio: console: add flow control
The virtio-serial-bus already has the logic to make flow control workproperly. Hook into the char layer's new ability to signal a backend iswritable again.
Signed-off-by: Amit Shah <amit.shah@redhat.com>Message-id: abffa02235d55ca6e2489068c58971c8897e976c.1362505276.git.amit.shah@redhat.com...
virtio-serial: make flow control explicit in virtio-console
virtio-console.c used to return a value less than the number of bytesasked to be written out to a chardev backend in case the backend is notwritable. virtio-serial-bus.c then implicitly enabled flow control for...
qemu-char: move baum registration to baum.c
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Amit Shah <amit.shah@redhat.com>Message-id: 1b24baa1ec3a174d5cad31e079d829904b53077b.1362505276.git.amit.shah@redhat.comSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-char: move msmouse registeration to msmouse.c
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Amit Shah <amit.shah@redhat.com>Message-id: b47d1153b0d7669743c9a6bb98ce30f4cf7f876b.1362505276.git.amit.shah@redhat.comSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-char: move text console init to console.c
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Amit Shah <amit.shah@redhat.com>Message-id: 17cefde0a8d7807294bab95e93c3328a20d3f2ed.1362505276.git.amit.shah@redhat.comSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-char: add watch support
This allows a front-end to request for a callback when the backendis writable again.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Amit Shah <amit.shah@redhat.com>Message-id: 96f93c0f741064604bbb6389ce962191120af8b7.1362505276.git.amit.shah@redhat.com...
qemu-char: add pty watch
This lets ptys support adding front end watchs.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Amit Shah <amit.shah@redhat.com>Message-id: 23380f37b22d407ba0b9e080f6ea0d66b279f2d2.1362505276.git.amit.shah@redhat.com...
char: add gio watch fn for tcp backends
Signed-off-by: Amit Shah <amit.shah@redhat.com>Message-id: b50e668c4f4146a654c5d4412440eb9e589f2c02.1362505276.git.amit.shah@redhat.comSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-char: use a glib timeout instead of qemu-timer
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Amit Shah <amit.shah@redhat.com>Message-id: 05a883ce5a98275b976bf0124610599859c2b7da.1362505276.git.amit.shah@redhat.comSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-char: remove use of QEMUTimer in favor of glib idle function
qemu-char is now independent of the QEMU main loop.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Amit Shah <amit.shah@redhat.com>Message-id: 3cda0bbcfb94912df8a767983a52bb71a4a3231d.1362505276.git.amit.shah@redhat.com...
qemu-char: make char drivers dynamically registerable
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Amit Shah <amit.shah@redhat.com>Message-id: 0ff4f5f2b8b7afdb85a0c241403ad73f472f0b81.1362505276.git.amit.shah@redhat.comSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-char: move spice registration to spice-qemu-char.c
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Amit Shah <amit.shah@redhat.com>Message-id: 49a8d12eeb117e5530b2fab02af7681b54f9245c.1362505276.git.amit.shah@redhat.comSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-char: tcp: make use GIOChannel
I didn't bother switching to g_io_channel_read/write because we need to usesendmsg on Unix. No problem though since we're using an unbuffered channel.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Amit Shah <amit.shah@redhat.com>...
qemu-char: convert fd_chr to use a GIOChannel
This uses the newly introduced IOWatchPoll source.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Amit Shah <amit.shah@redhat.com>Message-id: 0cb5d14510ee835a0ebc23676d10a2cce9280da5.1362505276.git.amit.shah@redhat.com...
qemu-char: convert pty to GIOChannel
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Amit Shah <amit.shah@redhat.com>Message-id: 339eebf3c59a450b0354056e9ac4b41f67230831.1362505276.git.amit.shah@redhat.comSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-char: convert UDP to GIOChannel
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Amit Shah <amit.shah@redhat.com>Message-id: 775a2bd666a3d1fa008656bf97191b7573c6ffb5.1362505276.git.amit.shah@redhat.comSigned-off-by: Anthony Liguori <aliguori@us.ibm.com>
char-socket: fix error reporting
Right now the inet connect code tries all available addresses but until onedoesn't fail. It passes local_err each time without clearing it from theprevious failure. This can trigger an assert since the inet connect code...
qemu-char: remove dead/confusing logic with nb_stdio_clients
This code is very old dating back to 2007. What is puzzling is thatSTDIO_MAX_CLIENTS was always #define to 1 meaning that all of the code to dealwith more than one client was unreachable.
Just remove the whole mess of it....
char: add IOWatchPoll support
This is a special GSource that supports CharDriverState stylepoll callbacks.
For reviewability and bisectability, this code is #if 0'd out in thispatch to avoid unused warnings since all of the functions are static.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>...
hw/nand.c: correct the sense of the BUSY/READY status bit
The BIT6 of Status Register(SR):
SR6 behaves the same as R/B# pin SR6 = 0 indicates the device is busy; SR6 = 1 means the device is ready
Some NAND flash controller (i.e. ftnandc021) relies on the SR6...
Merge branch 'target-arm.next' of git://git.linaro.org/people/pmaydell/qemu-arm
mipsn32-linux-user: Configure the architecture properly
N32 is a 64-bit cpu with a 32-bit address space. We haveexisting cpp defines for this situation, but weren't using them.
This does mean that the linux-user/mipsn32 directory must bemerged with the linux-user/mips64 directory, and differences...
mips-linux-user: Save and restore fpu and dsp from sigcontext
Signed-off-by: Richard Henderson <rth@twiddle.net>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
mips-linux-user: Fix n32 and n64 syscalls
mips64-linux-user: Enable 64-bit address mode and fpu
mips-linux-user: Enable mips64 and mipsn32 linux-user targets
At this point we can enable compilation, though thingsstill don't work.
Signed-off-by: Richard Henderson <rth@twiddle.net>Reviewed-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
mips-linux-user: Share o32 code for n32 and n64 signals
mips-linux-user: Delete n32 and n64 signal stubs
Deleting these first makes the next patch much easier to read.This doesn't cause any sort of compilation failure because wehave not yet enabled n32/n64 compilation. This is dead code.
Signed-off-by: Richard Henderson <rth@twiddle.net>...
MAINTAINERS: add entry for ARM KVM guest cores
Add an entry indicating maintainer status for the ARM KVM code.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
configure: Enable KVM on ARM
Enable KVM on ARM hosts, now that all the necessary componentsfor it exist.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
hw/kvm/arm_gic: Implement support for KVM in-kernel ARM GIC
Implement support for using the KVM in-kernel GIC for ARM.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Reviewed-by: Andreas Färber <afaerber@suse.de>
target-arm: Use MemoryListener to identify GIC base address for KVM
When using an in-kernel GIC with KVM, we need to tell the kernel wherethe GIC's memory mapped registers live. Do this by registering aMemoryListener which tracks where the board model maps the A15's...
hw/arm_gic: Convert ARM GIC classes to use init/realize
Convert the ARM GIC classes to use init/realize rather thanSysBusDevice::init. (We have to do them all in one patch toavoid unconverted subclasses calling a nonexistent SysBusDeviceinit function in the base class and crashing.)...
hw/arm_gic: Add presave/postload hooks
Add presave/postload hooks to the ARM GIC common base class.These will be used by the KVM in-kernel GIC subclass to syncstate between kernel and userspace when migrating.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>...
ARM KVM: save and load VFP registers from kernel
Add support for saving and restoring VFP register state from thekernel. This includes a check that the KVM-created CPU has fullVFP support (as the TCG Cortex-A15 model always does), since forthe moment ARM QEMU doesn't have any way to tweak optional features...
ARM: KVM: Add support for KVM on ARM architecture
Add basic support for KVM on ARM architecture.
Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>[PMM: Minor tweaks and code cleanup, switch to ONE_REG]Signed-off-by: Peter Maydell <peter.maydell@linaro.org>...
oslib-posix: Align to permit transparent hugepages on ARM Linux
ARM Linux (like x86-64 Linux) can use transparent hugepages forKVM if memory blocks are 2MiB aligned; set QEMU_VMALLOC_ALIGNaccordingly.
linux-headers: resync from mainline to add ARM KVM headers
Resync QEMU's copy of the Linux kernel headers fromgit://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git mastercommit 2ef14f4. This adds the ARM KVM headers, since ARM KVMsupport has just hit mainline via Russell's ARM tree....
target-arm: Drop CPUARMState* argument from bank_number()
Drop the CPUARMState* argument from bank_number(), since we onlyuse it for passing to cpu_abort(). Use hw_error() instead.This avoids propagating further interfaces using env pointers.
In the long term this function's callers need auditing to fix...
target-arm: Factor out handling of SRS instruction
Factor out the handling of the SRS instruction rather thanduplicating it between the Thumb and ARM decoders. This inpassing fixes two bugs in the Thumb decoder's SRS handlingwhich didn't exist in the ARM decoder:...
target-arm: Don't decode RFE or SRS on M profile cores
M profile cores do not have the RFE or SRS instructions, socorrectly UNDEF these insn patterns on those cores.
target-mips: Fix accumulator selection for MIPS16 and microMIPS
Add accumulator arguments to gen_HILO and gen_muldiv, rather thanextracting the accumulator directly from ctx->opcode. The extractionwas only right for the standard encoding: MIPS16 doesn't have access...
target-mips: Translate breaks and traps into the appropriate signal
GCC and GAS are capable of generating traps or breaks to check fordivision by zero. Additionally, GAS is capable of generating trapsor breaks to check for overflow on certain division and multiplication...
target-mips: fix DSP overflow macro and affected routines
The previous implementation incorrectly used same macro to detect overflowfor addition and subtraction. This patch makes distinction between thesetwo, and creates separate macros. The affected routines are changed...
Merge remote-tracking branch 'stefanha/block' into staging
Merge remote-tracking branch 'mst/tags/for_anthony' into staging
virtio,vhost,pci,e1000
Mostly bugfixes, but also some ICH work by Laszlo.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Merge remote-tracking branch 'kraxel/seabios-1.7.2.1' into staging
Merge remote-tracking branch 'stefanha/net' into staging
dataplane: remove EventPoll in favor of AioContext
During the review of the dataplane code, the EventPoll API morphed itself(not concidentially) into something very very similar to an AioContext.Thus, it is trivial to convert virtio-blk-dataplane to use AioContext,...
slirp/tcp_subr.c: fix coding style in tcp_connect
Fix coding style in tcp_connect before the next patch.
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
move socket_set_nodelay to osdep.c
sheepdog: accept URIs
The URI syntax is consistent with the NBD and Gluster syntax. Thesyntax is
sheepdog[+tcp]://[host:port]/vdiname[#snapid|#tag]
sheepdog: use inet_connect to simplify connect code
This uses the form "<host>:<port>" for the representation of thesheepdog server to use inet_connect.
sheepdog: add support for connecting to unix domain socket
This patch adds support for a unix domain socket for a connectionbetween qemu and local sheepdog server. You can use the unix domainsocket with the following syntax:
$ qemu sheepdog+unix:///<vdiname>?socket=<socket path>[#snapid]...
block: for HMP commit() operations on 'all', skip non-COW drives
During a commit of 'all' using the HMP non-live commit, the operationis aborted and returns error on the first error enountered. Whennon-COW drives are in use (e.g. ejected floppy, cdrom, or drives without...
ide/macio: Fix macio DMA initialisation.
Commit 07a7484e5d713f1eb7c1c37b18a8ab0d56d88875 accidentally introduced a bugin the initialisation of the second macio DMA device which could cause someDMA operations to segfault QEMU.
CC: Andreas Färber <afaerber@suse.de>...
virtio-blk: fix unplug + virsh reboot
virtio-blk registers a vmstate change handler. Unfortunately thishandler is not unregistered on unplug, leading to some randomcrashes if the system is restarted, e.g. via virsh reboot.Lets unregister the vmstate change handler if the device is removed....
gen-icount.h: Rename gen_icount_start/end to gen_tb_start/end
The gen_icount_start/end functions are now somewhat misnamed since theyare useful for generic "start/end of TB" code, used for more than justicount. Rename them to gen_tb_start/end.
translate-all.c: Remove cpu_unlink_tb()
The (unsafe) function cpu_unlink_tb() is now unused, so we can simplyremove it and any code that was only used by it.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Reviewed-by: Richard Henderson <rth@twiddle.net>...
Handle CPU interrupts by inline checking of a flag
Fix some of the nasty TCG race conditions and crashes by implementingcpu_exit() as setting a flag which is checked at the start of each TB.This avoids crashes if a thread or signal handler calls cpu_exit()...
cpu-exec: wrap tcg_qemu_tb_exec() in a fn to restore the PC
If tcg_qemu_tb_exec() returns a value whose low bits don't indicate alink to an indexed next TB, this means that the TB execution neverstarted (eg because the instruction counter hit zero). In this case the...
cpu: Introduce ENV_OFFSET macros
Introduce ENV_OFFSET macros which can be used in non-target-specificcode that needs to generate TCG instructions which reference CPUStatefields given the cpu_env register that TCG targets set up with apointer to the CPUArchState struct....
tcg: Document tcg_qemu_tb_exec() and provide constants for low bit uses
Document tcg_qemu_tb_exec(). In particular, its return value is acombination of a pointer to the next translation block and someextra information in the low two bits. Provide some #defines for...
tcg-sparc: fix build
Fix build breakage by 803d805bcef4ea7b7d6ef0b4929263e1160d6b3c:make tcg_out_addsub2() always available.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
m25p80.c: Use QOM classes for part differentiation
Currently, M25P80 uses an object property to differentiate between flash parts.Changed this over to use QOM sub-classes - the actual names of the different partsare used to create a set of dynamic classes which passes the part info as class...
cadence_gem: Flush queued packets
The device needs to check for queued RX packets when the RX path is re-enabled.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>Message-id: 1fa8c88a3b7c654886d0a7484c2463cd4c2a2781.1360901435.git.peter.crosthwaite@xilinx.com...
cadence_gem: factor out can_rx() logic replication
The gem_receive() function replicates the logic for whether or not the devicecan rx. Just call the actual gem_can_receive() function in place.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>...
cadence_gem: fix interrupt events
Bits in the ISR were continually mirroring their corresponding TX/RX SR bits.This is incorrect. The ISR bits are only ever set at the time theircorresponding event occurs.
cadence_gem: Don't reset rx desc pointer on rx_en
This doesn't happen in the real hardware. The Zynq TRM explicitly states thatthis bit has no effect on the rx descriptor pointer ("The receive queuepointer register is unaffected").
cadence_gem: Add debug msgs for rx desc movement
Add some helpful messages that show the rx descriptor pointer moving as packetsare rxed.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>Message-id: 1ef2eb34dade64d589a69a2bcfd5aaddb7d50164.1360901435.git.peter.crosthwaite@xilinx.com...
vl.c: allow for repeated -sd arguments
Allows for repeating of -sd arguments in the same way as -pflash and -mtdblock.
Acked-by: Igor Mitsyanko <i.mitsyanko@samsung.com>Reviewed-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>...
xilinx_zynq: Added SD controllers
The Xilinx Zynq device has two SDHCI controllers. Added to the machine model.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
arm: a9mpcore: Coreify the SCU
Split the SCU in a9mpcore out into its own object definition. mpcore is nowjust a container for the mpcore components.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/sdhci: introduce standard SD host controller
Device model for standard SD Host Controller Interface (SDHCI) compliant withversion 2.00 of SD association specification.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>...
arm: mptimer: CamelCased type names
Trivial find replace on type names "timerblock" and "arm_mptimer_state" toconform with QEMU coding style.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>Reviewed-by: Peter Maydell <peter.maydell@linaro.org>...
arm: arm11mpcore, a9mpcore: CamelCased type names
To conform with QEMU coding style.
arm: mptimer: Remove WDT distinction
In QEMU emulation, there is no functional difference between the ARM mpcoreprivate timers and watchdogs. Removed all the distinction between the two fromarm_mptimer.c and converted it to be just the mptimer. a9mpcore and arm11mpcore...
arm: a9mpcore: remove old_timer_status field
This field was write only and thus unused. Removed.
hw/ds1338: Fix conversion between 12 hours and 24 hours modes.
The proper mapping between 24 hours and 12 hours modes is:0 12 AM1-11 1-11 AM12 12 PM13-23 1-11 PMFix code accordingly.
Signed-off-by: Antoine Mathys <barsamin@gmail.com>...
hw/pflash_cfi01: Make read after byte-write or erase return status
The Intel flash command set requires that a read operation afterdoing a 'single byte write' command returns the status register;add this case to pflash_read() so we return the correct information....
hw/pflash_cfi01: Treat read in unknown command state as read
The code for handling the default "unknown command state" case inpflash_read in pflash_cfi01.c comments "reset state & treat it asa read". However the code doesn't actually do this. Moving the...
update seabios to 1.7.2.1
Alex Williamson (3): seabios q35: Enable all PIRQn IRQs at startup seabios q35: Add new PCI slot to irq routing function seabios: Add a dummy PCI slot to irq mapping function
Avik Sil (1): USB-EHCI: Fix null pointer assignment...
target-i386: Use mulu2 and muls2
These correspond very closely to the insns that we're emulating.
Signed-off-by: Richard Henderson <rth@twiddle.net>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Set virtio-serial device to have a default of 2 MSI vectors.
The virtio-serial device is expected to use 2 MSI vectors, one forcontrol queue and a second shared for all queues.
Signed-off-by: Gal Hammer <ghammer@redhat.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Fix guest OS hang when 64bit PCI bar present
This patch addresses the issue fully described here:http://lists.nongnu.org/archive/html/qemu-devel/2013-02/msg01804.html
Linux kernels prior to 2.6.36 do not disable the PCI device duringenumeration process. Since lower and higher parts of a 64bit BAR...
ICH9 LPC: Reset Control Register, basic implementation
This commit does the same for the ICH9 LPC as commit 1ec4ba74 for thePIIX3. For the present we're ignoring the Full Reset (FULL_RST) and SystemReset (SYS_RST) bits; the guest can read them back but that's it....
e1000: unbreak the guest network migration to 1.3
QEMU 1.3 does not emulate the link auto negotiation, so if migrate to a1.3 machine during link auto negotiation, the guest link will be set to down.Fix this by just disabling auto negotiation for 1.3 and older....
tap: forbid creating multiqueue tap when hub is used
Obviously, hub does not support multiqueue tap. So this patch forbids creatingmultiple queue tap when hub is used to prevent the crash when command line suchas "-net tap,queues=2" is used.
Cc: qemu-stable@nongnu.org...
tap: set IFF_ONE_QUEUE per default
historically the kernel queues packets two times. onceat the device and second in qdisc. this is believed to causeinterface stalls if one of these queues overruns.
setting IFF_ONE_QUEUE is the default in kernels >= 3.8. the...
net: reduce the unnecessary memory allocation of multiqueue
Edivaldo reports a problem that the array of NetClientState in NICState is toolarge - MAX_QUEUE_NUM(1024) which will wastes memory even if multiqueue is notused.
Instead of static arrays, solving this issue by allocating the queues on demand...
doc: document -netdev hubport
Reviewed-by: Markus Armbruster <armbru@redhat.com>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
qmp: netdev_add is like -netdev, not -net, fix documentation
Cc: qemu-stable@nongnu.orgSigned-off-by: Markus Armbruster <armbru@redhat.com>Reviewed-by: Laszlo Ersek <lersek@redhat.com>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
net: fix unbounded NetQueue
In the current implementation of qemu, running without a networkbackend will cause the queue to grow unbounded when the guest istransmitting traffic.
This patch fixes the problem by implementing bounded size NetQueue,used with an arbitrary limit of 10000 packets, and dropping packets...
net: fix qemu_flush_queued_packets() in presence of a hub
When frontend and backend are connected through a hub as below(showing only one direction), and the frontend (or in general, alloutput ports of the hub) cannot accept more traffic, the backendqueues packets in queue-A....
vhost: memory sync fixes
This fixes two bugs related to memory sync duringmigration: - ram address calculation was missing the chunk address, so the wrong page was dirtied - one after last was used instead of the end address of a region, which might overflow to 0...
Merge remote-tracking branch 'kiszka/queues/slirp' into staging
glib: Add compat wrapper for g_poll on old glib
Older glib doesn't implement g_poll(). Most notably the glib version in useon SLE11 is on 2.18 which is hit by this.
We do want to use g_poll() in the source however. So on older systems, justwrap it with functions that do exist on older versions....
qemu-log: default to stderr for logging output
Switch the default for qemu_log logging output from "/tmp/qemu.log" to stderr. This is an incompatible change in some sense, but loggingis mostly used for debugging purposes so it shouldn't affect production...