virtio-serial: Don't copy over guest buffer to host
When the guest writes something to a host, we copied over the entirebuffer first into the host and then processed it. Do away with that, itcould result in a malicious guest causing a DoS on the host....
virtio-serial: move out discard logic in a separate function
Instead of combining flush logic into the discard case and not discardcase, have one function doing discard case. This will help later whenadding flow control logic to the do_flush_queued_data() function....
virtio-console: Factor out common init between console and generic ports
The initialisation for generic ports and console ports is similar.Factor out the parts that are the same in a different function that canbe called from each of the initfns.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
virtio-console: Remove unnecessary braces
Remove unnecessary braces around a case statement.
sparc: fix NaN handling
Fix several bugs in NaN handling: * e in fcmpe* only changes qNaN handling * FCC is unchanged if an exception is raised * clear previous FTT before setting it
Reported-by: Mateusz Loskot <mateusz@loskot.net>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-arm: Log instruction start in TCG code
Add support for logging the start of instructions in TCGcode debug dumps for ARM targets.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
mips: Break TBs after mfc0_count
Break the TB after reading the count register. This makes itpossible to take timer interrupts immediately after a read ofa possibly expired timer.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
mips: Expire late timers when reading cp0_count
When reading cp0_count from a timer with a late trigger that shouldalready have expired, expire it and raise the timer irq.
This makes it possible for guest code (e.g, Linux) that first readcp0_count, then compare it with cp0_compare and check for raised...
mips: Break out cpu_mips_timer_expire
Reorganize for future patches, no functional change.
Acked-by: Aurelien Jarno <aurelien@aurel32.net>Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Replace 'extern inline' with 'static inline'
Acked-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
View all revisions | View revisions
Also available in: Atom