Re: [Qemu-devel] QEMU savevm RAM page offsets

2013-08-15 Thread Juerg Haefliger
I didn't mean to imply that the savevm format is broken and needed fixing. I was just wondering if the data is there and I simply hadn't found it. Upgrading QEMU is not an option at the moment since these are tightly controlled productions machines. Is it possible to loadvm

Re: [Qemu-devel] [PATCH v2 for 1.6] w32: Add missing version.o to all executables (fix regression)

2013-08-15 Thread Stefan Weil
Am 16.08.2013 00:19, schrieb Michael Roth: > Quoting Stefan Weil (2013-08-08 13:18:07) >> > QEMU executables for w32, w64 had included meta information built from >> > version.rc. These rules were changed several times some months ago. >> > >> > The latest version added version.o to the tools, but

[Qemu-devel] [PATCH] exec: Fix non-power-of-2 sized accesses

2013-08-15 Thread Alex Williamson
Since commit 23326164 we align access sizes to match the alignment of the address, but we don't align the access size itself. This means we let illegal access sizes (ex. 3) slip through if the address is sufficiently aligned (ex. 4). This results in an abort which would be easy for a guest to tri

Re: [Qemu-devel] [PATCH V7 0/8] add internal snapshot support at block device level

2013-08-15 Thread Wenchao Xia
于 2013-8-7 11:00, Wenchao Xia 写道: >This series brings internal snapshot support at block devices level, now we > have two three methods to do block snapshot lively: 1) backing chain, > 2) internal one and 3) drive-back up approach. > > Comparation: > Advantages:

[Qemu-devel] [PATCH] Adds the ability to use the command key in the guest operating system.

2013-08-15 Thread G 3
Signed-off-by: John Arbuckle Deciding when and how to send the command key has not been easy. A simple protocol that this patch implements is send the command key to the guest operating system when the mouse is grabbed. Otherwise send the command key to QEMU. --- ui/cocoa.m | 21 -

Re: [Qemu-devel] [RFC PATCH v3] powerpc: add PVR mask support

2013-08-15 Thread Benjamin Herrenschmidt
On Thu, 2013-08-15 at 19:28 -0500, Anthony Liguori wrote: > On Thu, Aug 15, 2013 at 7:20 PM, Benjamin Herrenschmidt > wrote: > > On Thu, 2013-08-15 at 16:47 +0200, Andreas Färber wrote: > >> comparing values for closest match. So that if you have a v2.4 and QEMU > >> knows v2.1 and v2.3 we take v2

Re: [Qemu-devel] [RFC PATCH v3] powerpc: add PVR mask support

2013-08-15 Thread Anthony Liguori
On Thu, Aug 15, 2013 at 7:20 PM, Benjamin Herrenschmidt wrote: > On Thu, 2013-08-15 at 16:47 +0200, Andreas Färber wrote: >> comparing values for closest match. So that if you have a v2.4 and QEMU >> knows v2.1 and v2.3 we take v2.3 and fill in the v2.4 PVR. > > Another thing to keep in mind is th

Re: [Qemu-devel] [RFC PATCH v3] powerpc: add PVR mask support

2013-08-15 Thread Benjamin Herrenschmidt
On Thu, 2013-08-15 at 16:47 +0200, Andreas Färber wrote: > When we instantiate a -cpu POWER9 then having one POWER9_vX.Y around to > back it doesn't really hurt. Unlike ARM's MIDR there doesn't seem to be > an encoding of IBM vendor or POWER family in the PVR. The macros and > their new implementat

Re: [Qemu-devel] SCSI bus failures with qemu-arm in kernel 3.8+

2013-08-15 Thread Guenter Roeck
On 08/15/2013 03:23 PM, Peter Maydell wrote: On 15 August 2013 23:18, Guenter Roeck wrote: But doesn't that mean that there is _currently_ no problem ? If so, we can introduce the additional code when the problem really shows up. Being Preemptive is good, but if it is not really needed today I

Re: [Qemu-devel] [PATCH v2 3/4] spapr: Improve device tree CPU node for -cpu host with unknown OF name

2013-08-15 Thread Andreas Färber
Am 16.08.2013 00:35, schrieb Andreas Färber: > Whenever DeviceClass::fw_name is not available, derive it from the CPU's > type name, resorting to the parent's type in case of -cpu host, and fill > it in for that class in a PAPR-compliant way with "PowerPC," prefix. Ugh, obviously forgot to edit th

[Qemu-devel] [PATCH v2 3/4] spapr: Improve device tree CPU node for -cpu host with unknown OF name

2013-08-15 Thread Andreas Färber
Whenever DeviceClass::fw_name is not available, derive it from the CPU's type name, resorting to the parent's type in case of -cpu host, and fill it in for that class in a PAPR-compliant way with "PowerPC," prefix. Reported-by: Prerna Saxena Signed-off-by: Andreas Färber --- hw/ppc/spapr.c | 4

[Qemu-devel] [PATCH v2 4/4] spapr: Suppress underscores in device tree CPU node

2013-08-15 Thread Andreas Färber
PAPR requires that PowerPC, shall not contain underscores, so skip any underscores in the type name. Reported-by: Prerna Saxena Signed-off-by: Andreas Färber --- hw/ppc/spapr.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c inde

[Qemu-devel] [PATCH v2 1/4] target-ppc: Fill in OpenFirmware names for some PowerPCCPU families

2013-08-15 Thread Andreas Färber
Set the expected values for POWER7, POWER7+, POWER8 and POWER5+. Note that POWER5+ and POWER7+ are intentionally lacking the '+', so the lack of a POWER7P family constitutes no problem. Signed-off-by: Andreas Färber --- target-ppc/translate_init.c | 3 +++ 1 file changed, 3 insertions(+) diff -

[Qemu-devel] [PATCH v2 2/4] spapr: Use DeviceClass::fw_name for device tree CPU node

2013-08-15 Thread Andreas Färber
Instead of relying on cpu_model, obtain the device tree node label per CPU. Use DeviceClass::fw_name when available. This implicitly resolves HOST@0 node labels for those CPUs through inheritance. Whenever DeviceClass::fw_name is not available, derive it from the CPU's type name and fill it in for

[Qemu-devel] [PATCH v2 0/4] target-ppc: Tidy sPAPR device tree CPU nodes

2013-08-15 Thread Andreas Färber
Hello Prerna and Alex, This series cleans up the fdt CPU nodes for -M pseries as attempted by Prerna. v2 reuses DeviceClass::fw_name for name storage and cleans up sPAPR code to not rely on machine-global cpu_model or sPAPREnvironment::cpu_model. Underscores are avoided by using fw_name that does

Re: [Qemu-devel] SCSI bus failures with qemu-arm in kernel 3.8+

2013-08-15 Thread Peter Maydell
On 15 August 2013 23:18, Guenter Roeck wrote: > But doesn't that mean that there is _currently_ no problem ? If so, > we can introduce the additional code when the problem really shows up. > Being Preemptive is good, but if it is not really needed today > I would rather have today's problems resol

Re: [Qemu-devel] [PATCH v2 for 1.6] w32: Add missing version.o to all executables (fix regression)

2013-08-15 Thread Michael Roth
Quoting Stefan Weil (2013-08-08 13:18:07) > QEMU executables for w32, w64 had included meta information built from > version.rc. These rules were changed several times some months ago. > > The latest version added version.o to the tools, but not to the system > emulations. > > This patch adds the

Re: [Qemu-devel] SCSI bus failures with qemu-arm in kernel 3.8+

2013-08-15 Thread Guenter Roeck
On 08/15/2013 02:49 PM, Peter Maydell wrote: On 15 August 2013 21:50, Guenter Roeck wrote: On Thu, Aug 15, 2013 at 07:05:22PM +0100, Peter Maydell wrote: It needs to go in the same patch, because a kernel with the fixed irq remapping must also tell QEMU it is fixed; if you split the two then a

Re: [Qemu-devel] SCSI bus failures with qemu-arm in kernel 3.8+

2013-08-15 Thread Peter Maydell
On 15 August 2013 21:50, Guenter Roeck wrote: > On Thu, Aug 15, 2013 at 07:05:22PM +0100, Peter Maydell wrote: >> It needs to go in the same patch, because a kernel with the fixed >> irq remapping must also tell QEMU it is fixed; if you split the >> two then at the point between the two patches th

[Qemu-devel] [PATCHv11 07/31] aio / timers: Make qemu_run_timers and qemu_run_all_timers return progress

2013-08-15 Thread Alex Bligh
Make qemu_run_timers and qemu_run_all_timers return progress so that aio_poll etc. can determine whether a timer has been run. Signed-off-by: Alex Bligh --- include/qemu/timer.h | 21 +++-- qemu-timer.c | 18 -- 2 files changed, 31 insertions(+), 8 del

Re: [Qemu-devel] [PATCH for-next 6/8] tcg-i386: Use new return-argument ld/st helpers

2013-08-15 Thread Richard Henderson
On 08/15/2013 08:54 AM, Aurelien Jarno wrote: >> > # define GETRA() ((uintptr_t)__builtin_return_address(0)) >> > -# define GETPC_LDST() ((uintptr_t)(GETRA() + 7 + \ >> > -*(int32_t *)((void *)GETRA() + 3) - >> > 1)) >> > +/* The return address argument for l

[Qemu-devel] [PATCHv11 15/31] aio / timers: Convert aio_poll to use AioContext timers' deadline

2013-08-15 Thread Alex Bligh
Convert aio_poll to use deadline based on AioContext's timers. aio_poll has been changed to return accurately whether progress has occurred. Prior to this commit, aio_poll always returned true if g_poll was entered, whether or not any progress was made. This required a change to tests/test-aio.c w

[Qemu-devel] [PATCHv11 14/31] aio / timers: Add aio_timer_init & aio_timer_new wrappers

2013-08-15 Thread Alex Bligh
Add aio_timer_init and aio_timer_new wrapper functions. Signed-off-by: Alex Bligh --- include/block/aio.h | 43 +++ 1 file changed, 43 insertions(+) diff --git a/include/block/aio.h b/include/block/aio.h index 84d7366..d19d9d2 100644 --- a/include/block

[Qemu-devel] [PATCHv11 11/31] aio / timers: Add QEMUTimerListGroup to AioContext

2013-08-15 Thread Alex Bligh
Add a QEMUTimerListGroup each AioContext (meaning a QEMUTimerList associated with each clock is added) and delete it when the AioContext is freed. Signed-off-by: Alex Bligh --- async.c |2 ++ include/block/aio.h |4 tests/test-aio.c |3 +++ tests/te

[Qemu-devel] [PATCHv11 25/31] aio / timers: Remove main_loop_timerlist

2013-08-15 Thread Alex Bligh
Now we have timerlistgroups implemented and main_loop_tlg, we no longer need the concept of a default timer list associated with each clock. Remove it and simplify initialisation of clocks and timer lists. Signed-off-by: Alex Bligh --- include/qemu/timer.h |6 + qemu-timer.c |

Re: [Qemu-devel] SCSI bus failures with qemu-arm in kernel 3.8+

2013-08-15 Thread Guenter Roeck
On Thu, Aug 15, 2013 at 07:05:22PM +0100, Peter Maydell wrote: > On 15 August 2013 18:54, Guenter Roeck wrote: > > On Thu, Aug 15, 2013 at 05:45:42PM +0100, Peter Maydell wrote: > >> On 13 August 2013 04:40, Guenter Roeck wrote: > >> > Patch tested and working with qemu 1.5.2, using the configura

[Qemu-devel] Development tree is now open for 1.7

2013-08-15 Thread Anthony Liguori
Happy hacking! Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH for-next 4/8] tcg: Add mmu helpers that take a return address argument

2013-08-15 Thread Richard Henderson
On 08/15/2013 08:54 AM, Aurelien Jarno wrote: > Why removing this st*_cmmu versions? There might be a good reason, but > it should be indicated in the patch description. Though the prototypes existed, the bodies were never generated. We already ifdef out the store functions in the template when i

[Qemu-devel] [ANNOUNCE] QEMU 1.6.0 is now available

2013-08-15 Thread Anthony Liguori
Hi, On behalf of the QEMU Team, I'd like to announce the availability of the QEMU 1.6.0 release. This release consists 1,600+ commmits from 129 authors. http://wiki.qemu.org/download/qemu-1.6.0.tar.bz2 The full list of changes are available at: http://wiki.qemu.org/ChangeLog/1.6 Highlights in

[Qemu-devel] [PATCHv11 24/31] aio / timers: Rearrange timer.h & make legacy functions call non-legacy

2013-08-15 Thread Alex Bligh
Rearrange timer.h so it is in order by function type. Make legacy functions call non-legacy functions rather than vice-versa. Convert cpus.c to use new API. Signed-off-by: Alex Bligh --- cpus.c | 112 - hw/acpi/piix4.c |2 +- hw/input/tsc2005.c |4 +- hw/i

[Qemu-devel] [PATCHv11 31/31] aio / timers: Remove legacy interface

2013-08-15 Thread Alex Bligh
Remove the legacy interface from include/qemu/timers.h. Ensure struct QEMUClock is not exposed at all. Signed-off-by: Alex Bligh --- include/qemu/timer.h | 214 +- qemu-timer.c | 35 + 2 files changed, 5 insertions(+), 244 delet

[Qemu-devel] [PATCHv11 19/31] aio / timers: Use all timerlists in icount warp calculations

2013-08-15 Thread Alex Bligh
Notify all timerlists derived from vm_clock in icount warp calculations. When calculating timer delay based on vm_clock deadline, use all timerlists. For compatibility, maintain an apparent bug where when using icount, if no vm_clock timer was set, qemu_clock_deadline would return INT32_MAX and a

[Qemu-devel] [PATCHv11 29/31] aio / timers: Add scripts/switch-timer-api

2013-08-15 Thread Alex Bligh
Add scripts/switch-timer-api to programatically rewrite source files to use the new timer system. Signed-off-by: Alex Bligh --- scripts/switch-timer-api | 178 ++ 1 file changed, 178 insertions(+) diff --git a/scripts/switch-timer-api b/scripts/switc

[Qemu-devel] [PATCHv11 21/31] aio / timers: Remove alarm timers

2013-08-15 Thread Alex Bligh
Remove alarm timers from qemu-timers.c now we use g_poll / ppoll instead. Signed-off-by: Alex Bligh --- include/qemu/timer.h |3 - main-loop.c |4 - qemu-timer.c | 500 +- vl.c |4 +- 4 files changed, 4

[Qemu-devel] [PATCHv11 20/31] aio / timers: Add documentation and new format calls

2013-08-15 Thread Alex Bligh
Add documentation for existing qemu timer calls. Add new format calls of the format timer_XXX rather than qemu_XXX_timer for consistency. Signed-off-by: Alex Bligh --- include/qemu/timer.h | 206 -- 1 file changed, 184 insertions(+), 22 deletions(

[Qemu-devel] [PATCHv11 26/31] aio / timers: Convert rtc_clock to be a QEMUClockType

2013-08-15 Thread Alex Bligh
Convert rtc_clock to be a QEMUClockType Move rtc_clock users to use the new API Signed-off-by: Alex Bligh --- hw/arm/omap1.c|4 ++-- hw/arm/pxa2xx.c | 35 +++ hw/arm/strongarm.c| 10 +- hw/timer/m48t59.c |

[Qemu-devel] [PATCHv11 28/31] aio / timers: Add test harness for AioContext timers

2013-08-15 Thread Alex Bligh
Add a test harness for AioContext timers. The g_source equivalent is unsatisfactory as it suffers from false wakeups. Signed-off-by: Alex Bligh --- tests/test-aio.c | 136 ++ 1 file changed, 136 insertions(+) diff --git a/tests/test-aio.c b/t

[Qemu-devel] [PATCHv11 23/31] aio / timers: Add qemu_clock_get_ms and qemu_clock_get_ms

2013-08-15 Thread Alex Bligh
Add utility functions qemu_clock_get_ms and qemu_clock_get_us Signed-off-by: Alex Bligh --- include/qemu/timer.h | 28 1 file changed, 28 insertions(+) diff --git a/include/qemu/timer.h b/include/qemu/timer.h index 3e9506c..63b964f 100644 --- a/include/qemu/timer.

[Qemu-devel] [PATCHv11 27/31] aio / timers: convert block_job_sleep_ns and co_sleep_ns to new API

2013-08-15 Thread Alex Bligh
Convert block_job_sleep_ns and co_sleep_ns to use the new timer API. Signed-off-by: Alex Bligh --- block/backup.c|4 ++-- block/commit.c|2 +- block/mirror.c|4 ++-- block/stream.c|2 +- blockjob.c|4 ++-- includ

[Qemu-devel] [PATCHv11 08/31] aio / timers: Split QEMUClock into QEMUClock and QEMUTimerList

2013-08-15 Thread Alex Bligh
Split QEMUClock into QEMUClock and QEMUTimerList so that we can have more than one QEMUTimerList associated with the same clock. Introduce a main_loop_timerlist concept and make existing qemu_clock_* calls that actually should operate on a QEMUTimerList call the relevant QEMUTimerList implementati

[Qemu-devel] [PATCHv11 18/31] aio / timers: Introduce new API timer_new and friends

2013-08-15 Thread Alex Bligh
Introduce new API for creating timers - timer_new and _ns, _ms, _us derivatives. Signed-off-by: Alex Bligh --- include/qemu/timer.h | 69 ++ 1 file changed, 69 insertions(+) diff --git a/include/qemu/timer.h b/include/qemu/timer.h index 619b7a2.

[Qemu-devel] [PATCHv11 22/31] aio / timers: Remove legacy qemu_clock_deadline & qemu_timerlist_deadline

2013-08-15 Thread Alex Bligh
Remove qemu_clock_deadline and qemu_timerlist_deadline now we are using the ns functions throughout. Signed-off-by: Alex Bligh --- include/qemu/timer.h | 16 qemu-timer.c | 20 2 files changed, 36 deletions(-) diff --git a/include/qemu/timer.h b

[Qemu-devel] [PATCHv11 16/31] aio / timers: Convert mainloop to use timeout

2013-08-15 Thread Alex Bligh
Convert mainloop to use timeout from default timerlist group (i.e. the current 3 static timers) Signed-off-by: Alex Bligh --- main-loop.c | 45 ++--- 1 file changed, 34 insertions(+), 11 deletions(-) diff --git a/main-loop.c b/main-loop.c index a44fff6.

[Qemu-devel] [PATCHv11 17/31] aio / timers: On timer modification, qemu_notify or aio_notify

2013-08-15 Thread Alex Bligh
On qemu_mod_timer_ns, ensure qemu_notify or aio_notify is called to end the appropriate poll(), irrespective of use_icount value. On qemu_clock_enable, ensure qemu_notify or aio_notify is called for all QEMUTimerLists attached to the QEMUClock. Signed-off-by: Alex Bligh --- include/qemu/timer.h

[Qemu-devel] [PATCHv11 05/31] aio / timers: add ppoll support with qemu_poll_ns

2013-08-15 Thread Alex Bligh
Add qemu_poll_ns which works like g_poll but takes a nanosecond timeout. Signed-off-by: Alex Bligh --- configure| 19 +++ include/qemu/timer.h | 12 qemu-timer.c | 24 3 files changed, 55 insertions(+) diff --git a/

[Qemu-devel] [PATCHv11 00/31] aio / timers: Add AioContext timers and use ppoll

2013-08-15 Thread Alex Bligh
[ This patch set is available from git at: https://github.com/abligh/qemu/tree/aio-timers11 As autogenerated patch 30 of the series is too large for the mailing list. ] This patch series adds support for timers attached to an AioContext clock which get called within aio_poll. In doing so it re

[Qemu-devel] [PATCHv11 13/31] aio / timers: aio_ctx_prepare sets timeout from AioContext timers

2013-08-15 Thread Alex Bligh
Calculate the timeout in aio_ctx_prepare taking into account the timers attached to the AioContext. Alter aio_ctx_check similarly. Signed-off-by: Alex Bligh --- async.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/async.c b/async.c index 2b9ba9b..d8656cc

[Qemu-devel] [PATCHv11 03/31] aio / timers: add qemu-timer.c utility functions

2013-08-15 Thread Alex Bligh
Add utility functions to qemu-timer.c for nanosecond timing. Add qemu_clock_deadline_ns to calculate deadlines to nanosecond accuracy. Add utility function qemu_soonest_timeout to calculate soonest deadline. Add qemu_timeout_ns_to_ms to convert a timeout in nanoseconds back to milliseconds for w

[Qemu-devel] [PATCHv11 12/31] aio / timers: Add a notify callback to QEMUTimerList

2013-08-15 Thread Alex Bligh
Add a notify pointer to QEMUTimerList so it knows what to notify on a timer change. Signed-off-by: Alex Bligh --- async.c |7 ++- include/qemu/timer.h | 27 +++ qemu-timer.c | 31 --- 3 files changed, 53 inserti

[Qemu-devel] [PATCHv11 04/31] aio / timers: Consistent treatment of disabled clocks for deadlines

2013-08-15 Thread Alex Bligh
Make treatment of disabled clocks consistent in deadline calculation Signed-off-by: Alex Bligh --- qemu-timer.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-timer.c b/qemu-timer.c index df8f12b..be29adf 100644 --- a/qemu-timer.c +++ b/qemu-timer.c @@ -264,7 +264,7

[Qemu-devel] [PATCHv11 09/31] aio / timers: Untangle include files

2013-08-15 Thread Alex Bligh
include/qemu/timer.h has no need to include main-loop.h and doing so causes an issue for the next patch. Unfortunately various files assume including timers.h will pull in main-loop.h. Untangle this mess. Signed-off-by: Alex Bligh --- dma-helpers.c |1 + hw/dma/xilinx_axidma.c

[Qemu-devel] [PATCHv11 06/31] aio / timers: Add prctl(PR_SET_TIMERSLACK, 1, ...) to reduce timer slack

2013-08-15 Thread Alex Bligh
Where supported, called prctl(PR_SET_TIMERSLACK, 1, ...) to set one nanosecond timer slack to increase precision of timer calls. Signed-off-by: Alex Bligh --- configure| 18 ++ qemu-timer.c |7 +++ 2 files changed, 25 insertions(+) diff --git a/configure b/configur

[Qemu-devel] [PATCHv11 10/31] aio / timers: Add QEMUTimerListGroup and helper functions

2013-08-15 Thread Alex Bligh
Add QEMUTimerListGroup and helper functions, to represent a QEMUTimerList associated with each clock. Add a default QEMUTimerListGroup representing the default timer lists which are not associated with any other object (e.g. an AioContext as added by future patches). Signed-off-by: Alex Bligh ---

[Qemu-devel] [PATCHv11 01/31] aio / timers: Rename qemu_timer_* functions

2013-08-15 Thread Alex Bligh
Rename four functions in preparation for new API. Rename qemu_timer_expired to timer_expired Rename qemu_timer_expire_time_ns to timer_expire_time_ns Rename qemu_timer_pending to timer_pending Rename qemu_timer_expired_ns to timer_expired_ns Signed-off-by: Alex Bligh --- backends/baum.c

[Qemu-devel] [PATCHv11 02/31] aio / timers: Rename qemu_new_clock and expose clock types

2013-08-15 Thread Alex Bligh
Rename qemu_new_clock to qemu_clock_new. Expose clock types. Signed-off-by: Alex Bligh --- include/qemu/timer.h |4 qemu-timer.c | 12 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/qemu/timer.h b/include/qemu/timer.h index a9afdb3..da43cb

[Qemu-devel] [PATCH v3] slirp: Port redirection option behave differently on Linux and Windows

2013-08-15 Thread Taimoor
From: Taimoor Mirza port redirection code uses SO_REUSEADDR socket option before binding to host port. Behavior of SO_REUSEADDR is different on Windows and Linux. Relaunching QEMU with same host and guest port redirection values on Linux throws error but on Windows it does not throw any error. Pr

Re: [Qemu-devel] [Bug 1196727] Re: SLIRP on Windows 7 64-bit host or is it me?

2013-08-15 Thread Stefan Weil
Am 15.08.2013 19:55, schrieb Kenneth Salerno: > I confirmed it wasn't my host, I successfully ran a test on the same > host with a 32-bit QEMU build and SLIRP works fine, for 1.6.0-rc3 as > well. > > It could be my x86_64-w64-mingw32-gcc compiler version, I tested 4.8 and > 4.7, maybe they're too n

Re: [Qemu-devel] [PATCH v2] slirp: Port redirection option behave differently on Linux and Windows

2013-08-15 Thread Alex Bligh
--On 15 August 2013 23:13:28 +0500 Taimoor wrote: diff --git a/slirp/socket.c b/slirp/socket.c index 8e8819c..e4685bb 100644 --- a/slirp/socket.c +++ b/slirp/socket.c @@ -1,4 +1,4 @@ -/* +x/* * Copyright (c) 1995 Danny Gasparovski. * * Please read the file COPYRIGHT for the @@ -627,7 +6

Re: [Qemu-devel] SCSI bus failures with qemu-arm in kernel 3.8+

2013-08-15 Thread Guenter Roeck
On Thu, Aug 15, 2013 at 07:05:22PM +0100, Peter Maydell wrote: > On 15 August 2013 18:54, Guenter Roeck wrote: > > On Thu, Aug 15, 2013 at 05:45:42PM +0100, Peter Maydell wrote: > >> On 13 August 2013 04:40, Guenter Roeck wrote: > >> > Patch tested and working with qemu 1.5.2, using the configura

Re: [Qemu-devel] [RFC] [PATCHv10 19/31] aio / timers: Use all timerlists in icount warp calculations

2013-08-15 Thread Alex Bligh
On 15 Aug 2013, at 13:37, Alex Bligh wrote: >> I see no value in a spurious wakeup if no deadline was set, but it's >> harmless. >> >> As for overflow, I don't really understand how INT32_MAX prevents >> overflow. If the base timer value we're adding to is already huge then >> INT32_MAX could s

[Qemu-devel] [PATCH v2] slirp: Port redirection option behave differently on Linux and Windows

2013-08-15 Thread Taimoor
From: Taimoor Mirza port redirection code uses SO_REUSEADDR socket option before binding to host port. Behavior of SO_REUSEADDR is different on Windows and Linux. Relaunching QEMU with same host and guest port redirection values on Linux throws error but on Windows it does not throw any error. Pr

Re: [Qemu-devel] SCSI bus failures with qemu-arm in kernel 3.8+

2013-08-15 Thread Peter Maydell
On 15 August 2013 18:54, Guenter Roeck wrote: > On Thu, Aug 15, 2013 at 05:45:42PM +0100, Peter Maydell wrote: >> On 13 August 2013 04:40, Guenter Roeck wrote: >> > Patch tested and working with qemu 1.5.2, using the configuration file >> > from the yocto project. Patch applied on top of kernel v

[Qemu-devel] [Bug 1196727] Re: SLIRP on Windows 7 64-bit host or is it me?

2013-08-15 Thread Kenneth Salerno
I confirmed it wasn't my host, I successfully ran a test on the same host with a 32-bit QEMU build and SLIRP works fine, for 1.6.0-rc3 as well. It could be my x86_64-w64-mingw32-gcc compiler version, I tested 4.8 and 4.7, maybe they're too new? Is there a specific gcc version known to work? I can

Re: [Qemu-devel] [PATCH 1/2] tcg/mips: detect available host instructions at runtime

2013-08-15 Thread Maciej W. Rozycki
On Thu, 15 Aug 2013, Aurelien Jarno wrote: > > The MIPS32 instructions missing from Vr5500 are the EJTAG stuff (DERET > > and SDBBP), JR.HB/JALR.HB (hmm, weird -- these are actually not guaranteed > > to work on all MIPS32 chips either, e.g. the 4Kc didn't support these > > encodings and trapp

Re: [Qemu-devel] SCSI bus failures with qemu-arm in kernel 3.8+

2013-08-15 Thread Guenter Roeck
On Thu, Aug 15, 2013 at 05:45:42PM +0100, Peter Maydell wrote: > On 13 August 2013 04:40, Guenter Roeck wrote: > > Patch tested and working with qemu 1.5.2, using the configuration file > > from the yocto project. Patch applied on top of kernel version 3.11-rc5. > > OK, I tested this on PB926+PCI

Re: [Qemu-devel] [PATCH 1/2] tcg/mips: detect available host instructions at runtime

2013-08-15 Thread Aurelien Jarno
On Thu, Aug 15, 2013 at 05:52:55PM +0100, Maciej W. Rozycki wrote: > On Thu, 15 Aug 2013, Aurelien Jarno wrote: > > > +/* Probe for MIPS32 instructions. As no subsetting is allowed > > + by the specification, it is only necessary to probe for one > > + of the instructions. */ > > +

Re: [Qemu-devel] SCSI bus failures with qemu-arm in kernel 3.8+

2013-08-15 Thread Peter Maydell
On 13 August 2013 04:40, Guenter Roeck wrote: > Patch tested and working with qemu 1.5.2, using the configuration file > from the yocto project. Patch applied on top of kernel version 3.11-rc5. OK, I tested this on PB926+PCI backplane hardware, and it is definitely better than current mainline, i

Re: [Qemu-devel] [RFC PATCH] powerpc: add PVR mask support

2013-08-15 Thread Alexander Graf
On 15.08.2013, at 18:22, Andreas Färber wrote: > Am 15.08.2013 17:58, schrieb Alexander Graf: >> >> On 15.08.2013, at 17:48, Andreas Färber wrote: >> >>> Am 15.08.2013 17:30, schrieb Alexander Graf: On 15.08.2013, at 17:11, Andreas Färber wrote: > Am 15.08.2013 15:12, schri

Re: [Qemu-devel] [PATCH 1/2] tcg/mips: detect available host instructions at runtime

2013-08-15 Thread Maciej W. Rozycki
On Thu, 15 Aug 2013, Aurelien Jarno wrote: > +/* Probe for MIPS32 instructions. As no subsetting is allowed > + by the specification, it is only necessary to probe for one > + of the instructions. */ > +#ifndef use_mips32_instructions > +got_sigill = 0; > +asm volatile(".se

Re: [Qemu-devel] [RFC] Convert AioContext to Gsource sub classes

2013-08-15 Thread Michael Roth
Quoting Michael Roth (2013-08-15 10:23:20) > Quoting Wenchao Xia (2013-08-13 03:44:39) > > 于 2013-8-13 1:01, Michael Roth 写道: > > > Quoting Paolo Bonzini (2013-08-12 02:30:28) > > >>> 1) rename AioContext to AioSource. > > >>>This is my major purpose, which declare it is not a "context" > > >>

Re: [Qemu-devel] [RFC PATCH v3] powerpc: add PVR mask support

2013-08-15 Thread Alexander Graf
On 15.08.2013, at 18:08, Andreas Färber wrote: > Am 15.08.2013 17:51, schrieb Alexander Graf: >> >> On 15.08.2013, at 17:43, Andreas Färber wrote: >> >>> Am 15.08.2013 17:29, schrieb Alexander Graf: On 15.08.2013, at 16:47, Andreas Färber wrote: > There is nothing wrong wit

Re: [Qemu-devel] [RFC PATCH] powerpc: add PVR mask support

2013-08-15 Thread Andreas Färber
Am 15.08.2013 17:58, schrieb Alexander Graf: > > On 15.08.2013, at 17:48, Andreas Färber wrote: > >> Am 15.08.2013 17:30, schrieb Alexander Graf: >>> >>> On 15.08.2013, at 17:11, Andreas Färber wrote: >>> Am 15.08.2013 15:12, schrieb Anthony Liguori: > Everyone is talking past each other

Re: [Qemu-devel] [RFC PATCH] powerpc: add PVR mask support

2013-08-15 Thread Alexander Graf
On 15.08.2013, at 17:48, Andreas Färber wrote: > Am 15.08.2013 17:30, schrieb Alexander Graf: >> >> On 15.08.2013, at 17:11, Andreas Färber wrote: >> >>> Am 15.08.2013 15:12, schrieb Anthony Liguori: Everyone is talking past each other and no one is addressing the real problem. There

Re: [Qemu-devel] [RFC PATCH v3] powerpc: add PVR mask support

2013-08-15 Thread Andreas Färber
Am 15.08.2013 17:51, schrieb Alexander Graf: > > On 15.08.2013, at 17:43, Andreas Färber wrote: > >> Am 15.08.2013 17:29, schrieb Alexander Graf: >>> >>> On 15.08.2013, at 16:47, Andreas Färber wrote: >>> There is nothing wrong with finding a mask or wildcard solution to that problem, I

Re: [Qemu-devel] [RFC PATCH] powerpc: add PVR mask support

2013-08-15 Thread Anthony Liguori
Andreas Färber writes: > Am 15.08.2013 15:12, schrieb Anthony Liguori: >> Everyone is talking past each other and no one is addressing the real >> problem. There are two distinct issues here: >> >> 1) We have two ABIs that cannot be changed unless there's a very good >>reason to. Alexey's

[Qemu-devel] [PATCH 1/2] tcg/mips: detect available host instructions at runtime

2013-08-15 Thread Aurelien Jarno
Now that TCG supports enabling and disabling ops at runtime, it's possible to detect the available host instructions at runtime, and enable the corresponding ops accordingly. Unfortunately it's not easy to probe for available instructions on MIPS, the information is partially available in /proc/cp

[Qemu-devel] [PATCH 2/2] tcg/mips: only enable ext8s/ext16s ops on MIPS32R2

2013-08-15 Thread Aurelien Jarno
On MIPS ext8s and ext16s ops are implemented with a dedicated instruction only on MIPS32R2, otherwise the same kind of implementation than at TCG level (shift left followed by shift right) is used. Change that by only implementing the ext8s and ext16s ops on MIPS32R2 so that optimizations can be d

Re: [Qemu-devel] [PATCH for-next 6/8] tcg-i386: Use new return-argument ld/st helpers

2013-08-15 Thread Aurelien Jarno
On Mon, Aug 05, 2013 at 08:07:23AM -1000, Richard Henderson wrote: > Discontinue the jump-around-jump-to-jump scheme, trading it for a single > immediate move instruction. The two extra jumps always consume 7 bytes, > whereas the immediate move is either 5 or 7 bytes depending on where the > code_

Re: [Qemu-devel] [PATCH for-next 4/8] tcg: Add mmu helpers that take a return address argument

2013-08-15 Thread Aurelien Jarno
On Mon, Aug 05, 2013 at 08:07:21AM -1000, Richard Henderson wrote: > Allow the code that tcg generates to be less obtuse, passing in > the return address directly instead of computing it in the helper. > > Maintain the old entrance point unchanged as an alternate entry point. > > Signed-off-by: R

Re: [Qemu-devel] [PATCH for-next 3/8] tcg-i386: Tidy qemu_ld/st slow path

2013-08-15 Thread Aurelien Jarno
On Mon, Aug 05, 2013 at 08:07:20AM -1000, Richard Henderson wrote: > Use existing stack space for arguments; don't push/pop. > Use less ifdefs and more C ifs. > > Signed-off-by: Richard Henderson > --- > tcg/i386/tcg-target.c | 159 > +- > 1 file

Re: [Qemu-devel] [PATCH for-next 5/8] tcg: Tidy softmmu_template.h

2013-08-15 Thread Aurelien Jarno
On Mon, Aug 05, 2013 at 08:07:22AM -1000, Richard Henderson wrote: > Avoid a loop in the tlb_fill path; the fill will either succeed or > generate an exception. > > Inline the slow_ld/st function; it was a complete copy of the main > helper except for the actual cross-page unaligned code, and the

Re: [Qemu-devel] [PATCH for-next 2/8] tcg-i386: Try pc-relative lea for constant formation

2013-08-15 Thread Aurelien Jarno
On Mon, Aug 05, 2013 at 08:07:19AM -1000, Richard Henderson wrote: > Use a 7 byte lea before the ultimate 10 byte movq. > > Signed-off-by: Richard Henderson > --- > tcg/i386/tcg-target.c | 19 --- > 1 file changed, 16 insertions(+), 3 deletions(-) > > diff --git a/tcg/i386/tcg-t

Re: [Qemu-devel] [PATCH for-next 1/8] tcg-i386: Add and use tcg_out64

2013-08-15 Thread Aurelien Jarno
On Mon, Aug 05, 2013 at 08:07:18AM -1000, Richard Henderson wrote: > No point in splitting the write into 32-bit pieces. > > Signed-off-by: Richard Henderson > --- > tcg/i386/tcg-target.c | 3 +-- > tcg/tcg.c | 6 ++ > 2 files changed, 7 insertions(+), 2 deletions(-) > > diff --

Re: [Qemu-devel] [RFC PATCH v3] powerpc: add PVR mask support

2013-08-15 Thread Alexander Graf
On 15.08.2013, at 17:43, Andreas Färber wrote: > Am 15.08.2013 17:29, schrieb Alexander Graf: >> >> On 15.08.2013, at 16:47, Andreas Färber wrote: >> >>> There is nothing wrong with finding a mask or wildcard solution to that >>> problem, I already indicated so on the original POWER+ patch. The

Re: [Qemu-devel] [RFC PATCH] powerpc: add PVR mask support

2013-08-15 Thread Andreas Färber
Am 15.08.2013 17:30, schrieb Alexander Graf: > > On 15.08.2013, at 17:11, Andreas Färber wrote: > >> Am 15.08.2013 15:12, schrieb Anthony Liguori: >>> Everyone is talking past each other and no one is addressing the real >>> problem. There are two distinct issues here: >>> >>> 1) We have two ABI

Re: [Qemu-devel] [RFC PATCH v3] powerpc: add PVR mask support

2013-08-15 Thread Andreas Färber
Am 15.08.2013 17:29, schrieb Alexander Graf: > > On 15.08.2013, at 16:47, Andreas Färber wrote: > >> There is nothing wrong with finding a mask or wildcard solution to that >> problem, I already indicated so on the original POWER+ patch. The point >> of the whole discussion is how to get there in

Re: [Qemu-devel] [RFC PATCH v3] powerpc: add PVR mask support

2013-08-15 Thread Alexander Graf
On 15.08.2013, at 16:47, Andreas Färber wrote: > Am 15.08.2013 15:55, schrieb Alexey Kardashevskiy: >> On 08/15/2013 09:48 PM, Andreas Färber wrote: >>> Am 15.08.2013 13:03, schrieb Alexander Graf: On 15.08.2013, at 12:52, Andreas Färber wrote: > Am 15.08.2013 10:45, schrieb

Re: [Qemu-devel] [RFC PATCH] powerpc: add PVR mask support

2013-08-15 Thread Alexander Graf
On 15.08.2013, at 17:11, Andreas Färber wrote: > Am 15.08.2013 15:12, schrieb Anthony Liguori: >> Everyone is talking past each other and no one is addressing the real >> problem. There are two distinct issues here: >> >> 1) We have two ABIs that cannot be changed unless there's a very good >>

[Qemu-devel] [PATCH 2/2] enable TLS in build and activate test-tls in make check

2013-08-15 Thread Mike Day
From: Paolo Bonzini Reviewed-by: Mike Day --- configure | 63 ++ include/qemu/tls.h | 127 + include/qom/cpu.h | 2 +- tests/Makefile | 2 +- tests/test-tls.c | 87 ++

[Qemu-devel] [RFC PATCH 0/2] v2.1 RCU Implementation for QEMU

2013-08-15 Thread Mike Day
This series applies on top today's git.qemu.org/master and is online at: https://github.com/ncultra/qemu/tree/rcu-for-1.7 Paolo Bonzini (2): fixed tests/Makefile to correctly link rcutorture enable TLS in build and activate test-tls in make check configure | 63

[Qemu-devel] [PATCH 1/2] fixed tests/Makefile to correctly link rcutorture

2013-08-15 Thread Mike Day
From: Paolo Bonzini Reviewed-by: Mike Day --- tests/Makefile | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index b4a52b4..4d68d28 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -44,9 +44,14 @@ check-unit-y += tests/test-cuti

Re: [Qemu-devel] [RFC] Convert AioContext to Gsource sub classes

2013-08-15 Thread Michael Roth
Quoting Wenchao Xia (2013-08-13 03:44:39) > 于 2013-8-13 1:01, Michael Roth 写道: > > Quoting Paolo Bonzini (2013-08-12 02:30:28) > >>> 1) rename AioContext to AioSource. > >>>This is my major purpose, which declare it is not a "context" concept, > >>> and GMainContext is the entity represent the

Re: [Qemu-devel] [RFC PATCH v3] powerpc: add PVR mask support

2013-08-15 Thread Alexander Graf
On 15.08.2013, at 16:43, Alexey Kardashevskiy wrote: > On 08/15/2013 06:45 PM, Alexander Graf wrote: >> >> On 15.08.2013, at 10:06, Alexey Kardashevskiy wrote: >> >>> On 08/15/2013 05:55 PM, Alexander Graf wrote: On 15.08.2013, at 09:45, Alexey Kardashevskiy wrote: > IBM PO

Re: [Qemu-devel] [RFC PATCH] powerpc: add PVR mask support

2013-08-15 Thread Andreas Färber
Am 15.08.2013 15:12, schrieb Anthony Liguori: > Everyone is talking past each other and no one is addressing the real > problem. There are two distinct issues here: > > 1) We have two ABIs that cannot be changed unless there's a very good >reason to. Alexey's original patch breaks both. The

Re: [Qemu-devel] [Qemu-ppc] VSX Instruction Set Implementation

2013-08-15 Thread Alexander Graf
Hi Jacques, On 15.08.2013, at 16:42, Jacques Mony wrote: > Hello, > > After going through the archives, I read an interesting thread regarding > unimplemented instruction set from PowerISA 2.06. The specific instruction > that seems to be called by AIX is stxvd2x, from VSX Instruction Set (ne

Re: [Qemu-devel] [RFC PATCH v3] powerpc: add PVR mask support

2013-08-15 Thread Andreas Färber
Am 15.08.2013 15:55, schrieb Alexey Kardashevskiy: > On 08/15/2013 09:48 PM, Andreas Färber wrote: >> Am 15.08.2013 13:03, schrieb Alexander Graf: >>> >>> On 15.08.2013, at 12:52, Andreas Färber wrote: >>> Am 15.08.2013 10:45, schrieb Alexander Graf: > > Yes, I think it makes sense to

Re: [Qemu-devel] [RFC PATCH v3] powerpc: add PVR mask support

2013-08-15 Thread Alexey Kardashevskiy
On 08/15/2013 06:45 PM, Alexander Graf wrote: > > On 15.08.2013, at 10:06, Alexey Kardashevskiy wrote: > >> On 08/15/2013 05:55 PM, Alexander Graf wrote: >>> >>> On 15.08.2013, at 09:45, Alexey Kardashevskiy wrote: >>> IBM POWERPC processors encode PVR as a CPU family in higher 16 bits and >

Re: [Qemu-devel] minimal linux distribution for qemu

2013-08-15 Thread Peter Maydell
On 15 August 2013 15:18, Herbei Dacian wrote: > but you said that "qemu-system-arm" is not maintained and it doesn't work. No, I said that the arguments you were giving it were requesting a model of an obsolete board, and you should ask it to emulate a different board. -- PMM

[Qemu-devel] [PATCH v2 10/10] target-ppc: add support for extended mtfsf/mtfsfi forms

2013-08-15 Thread Khem Raj
Hi I am seeing a regression with 1.5.0 release where the following program #include #include int main(int argc, char * argv[]) { double f = 1234.67; printf("floor(%f) = %f\n", f, floor(f)); return 0; } when compiled without any -O options which means it

Re: [Qemu-devel] [PATCH] target-ppc: fix bit extraction for FPBF and FPL

2013-08-15 Thread Khem Raj
On Aug 15, 2013, at 4:32 AM, Aurelien Jarno wrote: > Bit extraction for the FP BF and L field of the MTFSFI and MTFSF > instructions is wrong and doesn't match the reference manual (which > explain the bit number in big endian format). It has been broken in > commit 7d08d85645def18eac2a9d672c186

  1   2   >