[Qemu-devel] [PATCH] target-unicore32: move FPU helpers to op_helper.c

2011-04-13 Thread Guan Xuetao
The original patch missed the last empty line in target-unicore32/helper.c So I re-format it. Original patch From: Aurelien Jarno aurel...@aurel32.net This patch moves FPU helpers to op_helper.c, which has direct access to the env pointer. This means one less argument to pass, so a gain in

Re: [Qemu-devel] [PATCH 3/3] target-unicore32: mark a few helpers const + pure

2011-04-13 Thread Guan Xuetao
Applied, thanks. Tested-and-Acked-by: Guan Xuetao g...@mprc.pku.edu.cn Guan -Original Message- From: Aurelien Jarno [mailto:aurel...@aurel32.net] Sent: Wednesday, April 13, 2011 6:31 AM To: qemu-devel@nongnu.org Cc: Aurelien Jarno; Guan Xuetao Subject: [PATCH 3/3] target-unicore32:

[Qemu-devel] [PATCH] Clean up after make pdf

2011-04-13 Thread Brad Hards
--- .gitignore |3 +++ Makefile |5 - 2 files changed, 7 insertions(+), 1 deletions(-) diff --git a/.gitignore b/.gitignore index 1d79680..08013fc 100644 --- a/.gitignore +++ b/.gitignore @@ -44,6 +44,9 @@ QMP/qmp-commands.txt *.ky *.log *.pdf +*.cps +*.fns +*.kys *.pg *.pyc

Re: [Qemu-devel] [PATCH 2/2] Support for Cavium-Octeon specific instruction

2011-04-13 Thread Khansa Butt
We ported MIPS64 r2 user mode emulation. When a binary is given to qemu-mips64, our code first check whether it is Octeon binary or not if yes it enable Octeon specific Instructions for. The following code snippet do this job: diff --git a/linux-user/elfload.c b/linux-user/elfload.c index

[Qemu-devel] [PATCH v4 0/4] Fix -icount with iothread

2011-04-13 Thread Paolo Bonzini
This series finally fixes -icount with iothread and avoids deadlocks due to the vm_clock not making progress when the VM is stopped. The crux of the fix is in patch 1, while patch 2 implements the clock warping that fixes deadlocks in v2. Clock warping uses the nanosecond resolution rt_clock

[Qemu-devel] [PATCH v4 2/4] enable vm_clock to warp in the iothread+icount case

2011-04-13 Thread Paolo Bonzini
The previous patch however is not enough, because if the virtual CPU goes to sleep waiting for a future timer interrupt to wake it up, qemu deadlocks. The timer interrupt never comes because time is driven by icount, but the vCPU doesn't run any insns. You could say that VCPUs should never go to

[Qemu-devel] [PATCH v4 4/4] qemu_next_deadline should not consider host-time timers

2011-04-13 Thread Paolo Bonzini
It is purely for icount-based virtual timers. And now that we got the code right, rename the function to clarify the intended scope. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Tested-by: Edgar E. Iglesias edgar.igles...@gmail.com --- cpus.c |4 ++-- qemu-timer.c | 13

[Qemu-devel] [PATCH v4 1/4] really fix -icount in the iothread case

2011-04-13 Thread Paolo Bonzini
The correct fix for -icount is to consider the biggest difference between iothread and non-iothread modes. In the traditional model, CPUs run _before_ the iothread calls select (or WaitForMultipleObjects for Win32). In the iothread model, CPUs run while the iothread isn't holding the mutex, i.e.

[Qemu-devel] [PATCH v4 3/4] Revert wrong fixes for -icount in the iothread case

2011-04-13 Thread Paolo Bonzini
This reverts commits 225d02cd and c9f7383c. While some parts of the latter could be saved, I preferred a smooth, complete revert. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Tested-by: Edgar E. Iglesias edgar.igles...@gmail.com --- qemu-timer.c | 66

[Qemu-devel] [PATCH] vpc.c: Use get_option_parameter() does the search

2011-04-13 Thread Mitnick Lyu
Use get_option_parameter() to instead of duplicating the loop, and use BDRV_SECTOR_SIZE to instead of 512 Signed-off-by: Mitnick Lyu mitnick@gmail.com --- block/vpc.c |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/block/vpc.c b/block/vpc.c index

[Qemu-devel] [PATCH 0/4] Minor USB fixes

2011-04-13 Thread Brad Hards
1 fixes spellos in the mass-storage driver 2-4 fix issues in Linux usb pass-through code.

[Qemu-devel] [PATCH 1/4] usb: trivial spelling fixes

2011-04-13 Thread Brad Hards
Signed-off-by: Brad Hards br...@frogmouth.net --- hw/usb-msd.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/usb-msd.c b/hw/usb-msd.c index 76f5b02..947fd3f 100644 --- a/hw/usb-msd.c +++ b/hw/usb-msd.c @@ -33,7 +33,7 @@ do { printf(usb-msd: fmt , ## __VA_ARGS__);

[Qemu-devel] [PATCH 2/4] usb: initialise data element in Linux USB_DISCONNECT ioctl.

2011-04-13 Thread Brad Hards
This isn't used, but leaving it empty causes valgrind noise. Signed-off-by: Brad Hards br...@frogmouth.net --- usb-linux.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index 255009f..d958853 100644 --- a/usb-linux.c +++ b/usb-linux.c @@

[Qemu-devel] [PATCH 3/4] usb: fix spelling errors in usb-linux.c

2011-04-13 Thread Brad Hards
Signed-off-by: Brad Hards br...@frogmouth.net --- usb-linux.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index d958853..1f33c2c 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -107,7 +107,7 @@ enum { /* * Control transfer state. * Note

[Qemu-devel] [PATCH 4/4] usb: use DPRINTF instead of printf for some simple cases

2011-04-13 Thread Brad Hards
Signed-off-by: Brad Hards br...@frogmouth.net --- usb-linux.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index 1f33c2c..b02a0f9 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -233,8 +233,8 @@ static void async_complete(void

Re: [Qemu-devel] [PATCH v5 0/5] atapi: Implement 'media' subcommand for GESN

2011-04-13 Thread Kevin Wolf
Am 12.04.2011 18:06, schrieb Amit Shah: The GET_EVENT_STATUS_NOTIFICATION ATAPI command is listed as a mandatory command in the spec but we don't really implement it any of its sub-commands. The commit message for the last commit explains why implementing just the media subcommand is

Re: [Qemu-devel] [PATCH] vpc.c: Use get_option_parameter() does the search

2011-04-13 Thread Kevin Wolf
Am 13.04.2011 11:30, schrieb Mitnick Lyu: Use get_option_parameter() to instead of duplicating the loop, and use BDRV_SECTOR_SIZE to instead of 512 Signed-off-by: Mitnick Lyu mitnick@gmail.com Thanks, applied to the block branch. Kevin

Re: [Qemu-devel] [PATCH V12 05/17] xen: Add xenfv machine

2011-04-13 Thread Stefano Stabellini
On Tue, 12 Apr 2011, Jan Kiszka wrote: Well, either you have a use for the VCPU state (how do you do migration in Xen without it?), or you should probably teach QEMU in a careful clean way to run its device model without VCPUs - and without any TCG-related memory consumption. For the latter,

Re: [Qemu-devel] [PATCH V12 05/17] xen: Add xenfv machine

2011-04-13 Thread Jan Kiszka
On 2011-04-13 12:56, Stefano Stabellini wrote: On Tue, 12 Apr 2011, Jan Kiszka wrote: Well, either you have a use for the VCPU state (how do you do migration in Xen without it?), or you should probably teach QEMU in a careful clean way to run its device model without VCPUs - and without any

[Qemu-devel] [PATCH] libcacard: fix opposite usage of isspace

2011-04-13 Thread Alon Levy
Signed-off-by: Alon Levy al...@redhat.com --- libcacard/vcard_emul_nss.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libcacard/vcard_emul_nss.c b/libcacard/vcard_emul_nss.c index 71f2ba3..baada52 100644 --- a/libcacard/vcard_emul_nss.c +++

Re: [Qemu-devel] [PATCH V12 05/17] xen: Add xenfv machine

2011-04-13 Thread Stefano Stabellini
On Wed, 13 Apr 2011, Jan Kiszka wrote: On 2011-04-13 12:56, Stefano Stabellini wrote: On Tue, 12 Apr 2011, Jan Kiszka wrote: Well, either you have a use for the VCPU state (how do you do migration in Xen without it?), or you should probably teach QEMU in a careful clean way to run its

[Qemu-devel] [Bug 757702] Re: Undefined instruction exception starts at offset 0x8 instead of 0x4

2011-04-13 Thread Peter Maydell
Were you able to replicate the problem with the steps that I had mentioned ? The key thing is is if you don't set breakpoint at 0x4 or 0x8 just follow the execution flow using si command of GDB. You will definitely hit the problem. Ah, I had to find a different gdb to reproduce this with

[Qemu-devel] [PULL 00/10] Block patches

2011-04-13 Thread Kevin Wolf
The following changes since commit 9df38c47d01eb1fd7eb9d60ac70a4170e638b4a2: target-arm: Detect tininess before rounding for FP operations (2011-04-12 23:33:33 +0200) are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony Amit Shah (7): atapi: Drives can

[Qemu-devel] [PATCH 01/10] docs: Describe zero data clusters in QED specification

2011-04-13 Thread Kevin Wolf
From: Stefan Hajnoczi stefa...@linux.vnet.ibm.com Zero data clusters are a space-efficient way of storing zeroed regions of the image. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com Signed-off-by: Kevin Wolf kw...@redhat.com --- docs/specs/qed_spec.txt |8 1 files

[Qemu-devel] [PATCH 04/10] atapi: Report correct errors on guest eject request

2011-04-13 Thread Kevin Wolf
From: Amit Shah amit.s...@redhat.com Table 629 of the MMC-5 spec mentions two different error conditions when a CDROM eject is requested: a) while a disc is inserted and b) while a disc is not inserted. Ensure we return the appropriate error for the present condition of the drive and disc

[Qemu-devel] [PATCH 02/10] qed: Add support for zero clusters

2011-04-13 Thread Kevin Wolf
From: Anthony Liguori aligu...@us.ibm.com Zero clusters are similar to unallocated clusters except instead of reading their value from a backing file when one is available, the cluster is always read as zero. This implements read support only. At this stage, QED will never write a zero cluster.

[Qemu-devel] [PATCH 03/10] atapi: Drives can be locked without media present

2011-04-13 Thread Kevin Wolf
From: Amit Shah amit.s...@redhat.com Drivers are free to lock drives without any media present. Such a condition should not result in an error condition. See Table 341 in MMC-5 spec for details. Signed-off-by: Amit Shah amit.s...@redhat.com Signed-off-by: Kevin Wolf kw...@redhat.com ---

[Qemu-devel] [PATCH 08/10] atapi: GESN: Standardise event response handling for future additions

2011-04-13 Thread Kevin Wolf
From: Amit Shah amit.s...@redhat.com Handle GET_EVENT_STATUS_NOTIFICATION's No Event Available response in a generic way so that future additions to the code to handle other response types is easier. Signed-off-by: Amit Shah amit.s...@redhat.com Acked-by: Jes Sorensen jes.soren...@redhat.com

[Qemu-devel] [PATCH 10/10] vpc.c: Use get_option_parameter() does the search

2011-04-13 Thread Kevin Wolf
From: Mitnick Lyu mitnick@gmail.com Use get_option_parameter() to instead of duplicating the loop, and use BDRV_SECTOR_SIZE to instead of 512 Signed-off-by: Mitnick Lyu mitnick@gmail.com Signed-off-by: Kevin Wolf kw...@redhat.com --- block/vpc.c |8 ++-- 1 files changed, 2

[Qemu-devel] [PATCH 05/10] atapi: Allow GET_EVENT_STATUS_NOTIFICATION after media change

2011-04-13 Thread Kevin Wolf
From: Amit Shah amit.s...@redhat.com After a media change, the only commands allowed from the guest were REQUEST_SENSE and INQUIRY. The guest may also issue GET_EVENT_STATUS_NOTIFICATION commands to get media changed notification. Signed-off-by: Amit Shah amit.s...@redhat.com Acked-by: Jes

[Qemu-devel] [PATCH 07/10] atapi: GESN: Use structs for commonly-used field types

2011-04-13 Thread Kevin Wolf
From: Amit Shah amit.s...@redhat.com Instead of using magic numbers, use structs that are more descriptive of the fields being used. Signed-off-by: Amit Shah amit.s...@redhat.com Acked-by: Jes Sorensen jes.soren...@redhat.com Acked-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Kevin Wolf

[Qemu-devel] [PATCH 09/10] atapi: GESN: implement 'media' subcommand

2011-04-13 Thread Kevin Wolf
From: Amit Shah amit.s...@redhat.com Implement the 'media' sub-command of the GET_EVENT_STATUS_NOTIFICATION command. This helps us report tray open, tray closed, no media, media present states to the guest. Newer Linux kernels (2.6.38+) rely on this command to revalidate discs after media

[Qemu-devel] [PATCH 06/10] atapi: Move GET_EVENT_STATUS_NOTIFICATION command handling to its own function

2011-04-13 Thread Kevin Wolf
From: Amit Shah amit.s...@redhat.com This makes the code more readable. Also, there's a block like: if () { ... } else { ... } Split that into if () { ... return; } ... Signed-off-by: Amit Shah amit.s...@redhat.com Acked-by: Jes Sorensen jes.soren...@redhat.com Acked-by: Paolo

Re: [Qemu-devel] [PATCH 4/4] usb: use DPRINTF instead of printf for some simple cases

2011-04-13 Thread Stefan Hajnoczi
On Wed, Apr 13, 2011 at 10:45 AM, Brad Hards br...@frogmouth.net wrote: Signed-off-by: Brad Hards br...@frogmouth.net ---  usb-linux.c |   16  1 files changed, 8 insertions(+), 8 deletions(-) Some of these printfs look like they might be useful given that the current USB

Re: [Qemu-devel] [PATCH 0/4] Minor USB fixes

2011-04-13 Thread Stefan Hajnoczi
On Wed, Apr 13, 2011 at 10:45 AM, Brad Hards br...@frogmouth.net wrote: 1 fixes spellos in the mass-storage driver 2-4 fix issues in Linux usb pass-through code. I left a comment on patch 4 and will wait for activity on that email thread. Otherwise these could go via the trivial-patches tree

[Qemu-devel] Question about maximum disk size of a dynamic hard disk

2011-04-13 Thread Lyu Mitnick
Hello Kevin, Stefan and all There is a sentence The maximum size of a dynamic hard disk is 2040 GB. The actual size is restricted by the underlying disk hardware protocol. For example, ATA hard disks have a 127-GB limit in VHD specification. This limitation infected the algorithm of

Re: [Qemu-devel] [PATCH 4/4] usb: use DPRINTF instead of printf for some simple cases

2011-04-13 Thread Hans de Goede
Hi, On 04/13/2011 11:45 AM, Brad Hards wrote: Signed-off-by: Brad Hardsbr...@frogmouth.net --- usb-linux.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index 1f33c2c..b02a0f9 100644 --- a/usb-linux.c +++ b/usb-linux.c @@

Re: [Qemu-devel] [PATCH] libcacard: fix opposite usage of isspace

2011-04-13 Thread Hans de Goede
This is the result of an of the list discussion with me, and I can confirm this fixes the issues I was seeing: Tested-by: Hans de Goede hdego...@redhat.com On 04/13/2011 01:42 PM, Alon Levy wrote: Signed-off-by: Alon Levyal...@redhat.com --- libcacard/vcard_emul_nss.c |4 ++-- 1 files

Re: [Qemu-devel] Question about maximum disk size of a dynamic hard disk

2011-04-13 Thread Kevin Wolf
Am 13.04.2011 14:47, schrieb Lyu Mitnick: Hello Kevin, Stefan and all There is a sentence The maximum size of a dynamic hard disk is 2040 GB. The actual size is restricted by the underlying disk hardware protocol. For example, ATA hard disks have a 127-GB limit in VHD specification. This

Re: [Qemu-devel] [PATCH] lm32: fix build breakage due to uninitialized variable 'r'

2011-04-13 Thread Stefan Hajnoczi
On Wed, Apr 13, 2011 at 1:43 PM, Anthony Liguori aligu...@us.ibm.com wrote: diff --git a/roms/seabios b/roms/seabios index cc97564..06d0bdd 16 --- a/roms/seabios +++ b/roms/seabios @@ -1 +1 @@ -Subproject commit cc975646af69f279396d4d5e1379ac6af80ee637 +Subproject commit

Re: [Qemu-devel] [PATCH V12 05/17] xen: Add xenfv machine

2011-04-13 Thread Jan Kiszka
On 2011-04-13 13:49, Stefano Stabellini wrote: On Wed, 13 Apr 2011, Jan Kiszka wrote: On 2011-04-13 12:56, Stefano Stabellini wrote: On Tue, 12 Apr 2011, Jan Kiszka wrote: Well, either you have a use for the VCPU state (how do you do migration in Xen without it?), or you should probably teach

Re: [Qemu-devel] [PATCH 2/2 V7] qemu, qmp: add inject-nmi qmp command

2011-04-13 Thread Luiz Capitulino
On Tue, 12 Apr 2011 21:31:18 +0300 Blue Swirl blauwir...@gmail.com wrote: On Tue, Apr 12, 2011 at 10:52 AM, Avi Kivity a...@redhat.com wrote: On 04/11/2011 08:15 PM, Blue Swirl wrote: On Mon, Apr 11, 2011 at 10:01 AM, Markus Armbrusterarm...@redhat.com  wrote:  Avi

Re: [Qemu-devel] [PATCH] lm32: fix build breakage due to uninitialized variable 'r'

2011-04-13 Thread Anthony Liguori
On 04/13/2011 08:04 AM, Stefan Hajnoczi wrote: On Wed, Apr 13, 2011 at 1:43 PM, Anthony Liguorialigu...@us.ibm.com wrote: diff --git a/roms/seabios b/roms/seabios index cc97564..06d0bdd 16 --- a/roms/seabios +++ b/roms/seabios @@ -1 +1 @@ -Subproject commit

[Qemu-devel] [PATCH] qemu-img: allow rebase to a NULL backing file when unsafe

2011-04-13 Thread Stefan Hajnoczi
From: Anthony Liguori aligu...@us.ibm.com QEMU can drop a backing file so that an image file no longer depends on the backing file, but this feature has not been exposed in qemu-img. This is useful in an image streaming usecase or when an image file has been fully allocated and no reads can hit

Re: [Qemu-devel] [PATCH 08/19] target-alpha: use new float64_unordered() function

2011-04-13 Thread Peter Maydell
On 12 April 2011 22:59, Aurelien Jarno aurel...@aurel32.net wrote: Use float64_unordered() in helper_cmptun() instead of doing the the comparison manually. This also fixes the wrong behaviours with sNaNs. Signed-off-by: Aurelien Jarno aurel...@aurel32.net ---  target-alpha/op_helper.c |    

Re: [Qemu-devel] [PATCH 16/19] target-alpha: fix wrong usage of float64_eq_quiet()

2011-04-13 Thread Peter Maydell
On 12 April 2011 22:59, Aurelien Jarno aurel...@aurel32.net wrote: On alpha, all NaN should trap during a comparison, not only sNaN. Fix this by using float64_eq() instead of float64_eq_quiet(). The Compiler Writer's Guide disagrees with you:

Re: [Qemu-devel] [PATCH V12 05/17] xen: Add xenfv machine

2011-04-13 Thread Stefano Stabellini
On Wed, 13 Apr 2011, Jan Kiszka wrote: On 2011-04-13 13:49, Stefano Stabellini wrote: On Wed, 13 Apr 2011, Jan Kiszka wrote: On 2011-04-13 12:56, Stefano Stabellini wrote: On Tue, 12 Apr 2011, Jan Kiszka wrote: Well, either you have a use for the VCPU state (how do you do migration in

Re: [Qemu-devel] [PATCH] Slirp reverse UDP firewall

2011-04-13 Thread Daisuke Nojiri
Thanks, Jan. I split my patch into three and started a new thread. I also put all options in -net user. Yes, TCP firewall is coming. You'll see some of the added functions will be shared. Dai On Tue, Apr 12, 2011 at 9:38 AM, Jan Kiszka jan.kis...@siemens.com wrote: On 2011-04-12 18:19, Daisuke

Re: [Qemu-devel] [PATCH 08/19] target-alpha: use new float64_unordered() function

2011-04-13 Thread Peter Maydell
On 13 April 2011 16:38, Richard Henderson r...@twiddle.net wrote: [ Odd, the original thread doesn't seem to have arrived here. ] On 04/13/2011 07:52 AM, Peter Maydell wrote: So I think you want the _quiet version here. (And helper_cmpteq needs to use float64_eq_quiet rather than float64_eq.)

Re: [Qemu-devel] [PATCH 00/19] softfloat and FPU fixes/improvements

2011-04-13 Thread Peter Maydell
On 12 April 2011 22:59, Aurelien Jarno aurel...@aurel32.net wrote: This patch series started with the goal of improving the build of target-i386 with softfloat (instead of softfloat-native), but it slowly became a collection of fixes and improvements with regard to softfloat and targets FPU.

Re: [Qemu-devel] [Bug 757702] Re: Undefined instruction exception starts at offset 0x8 instead of 0x4

2011-04-13 Thread Anup Patel
I think you are right. This seems to be more of a GDB issue. Any ways thanks for your support. --Anup On Wed, Apr 13, 2011 at 5:24 PM, Peter Maydell peter.mayd...@linaro.orgwrote: Were you able to replicate the problem with the steps that I had mentioned ? The key thing is is if you don't

[Qemu-devel] [Bug 757702] Re: ARM: singlestepping insn which UNDEFs should stop at UNDEF vector insn, not after it

2011-04-13 Thread Peter Maydell
I think you are right. This seems to be more of a GDB issue. The debug stub is still part of QEMU, so let's not close this bug just yet :-) ** Summary changed: - Undefined instruction exception starts at offset 0x8 instead of 0x4 + ARM: singlestepping insn which UNDEFs should stop at UNDEF

[Qemu-devel] [PATCH 1/4] [arm] trivial whitespace/indentation fixes

2011-04-13 Thread Lluís
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- target-arm/helper.c| 246 ++-- target-arm/iwmmxt_helper.c | 28 +++-- target-arm/translate.c | 26 ++--- 3 files changed, 150 insertions(+), 150 deletions(-) diff --git

[Qemu-devel] [PATCH 3/4] [m68k] trivial whitespace/indentation fixes

2011-04-13 Thread Lluís
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- target-m68k/translate.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 038c0af..15a650e 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@

[Qemu-devel] [PATCH 4/4] [m68k] move helpers.h to helper.h

2011-04-13 Thread Lluís
This provides a consistent naming scheme across all targets. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- target-m68k/helper.c|2 +- target-m68k/helper.h| 54 +++ target-m68k/helpers.h | 54

[Qemu-devel] [PATCH 2/4] [arm] move helpers.h to helper.h

2011-04-13 Thread Lluís
This provides a consistent naming scheme across all targets. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- target-arm/helper.c|2 target-arm/helper.h| 475 target-arm/helpers.h | 475

Re: [Qemu-devel] [PATCH 1/4] [arm] trivial whitespace/indentation fixes

2011-04-13 Thread Peter Maydell
On 13 April 2011 17:38, Lluís xscr...@gmx.net wrote: Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu ---  target-arm/helper.c        |  246 ++--  target-arm/iwmmxt_helper.c |   28 +++--  target-arm/translate.c     |   26 ++---  3 files changed, 150

Re: [Qemu-devel] [PATCH 08/19] target-alpha: use new float64_unordered() function

2011-04-13 Thread Richard Henderson
On 04/13/2011 08:42 AM, Peter Maydell wrote: On 13 April 2011 16:38, Richard Henderson r...@twiddle.net wrote: [ Odd, the original thread doesn't seem to have arrived here. ] On 04/13/2011 07:52 AM, Peter Maydell wrote: So I think you want the _quiet version here. (And helper_cmpteq needs to

Re: [Qemu-devel] [PATCH 08/19] target-alpha: use new float64_unordered() function

2011-04-13 Thread Richard Henderson
[ Odd, the original thread doesn't seem to have arrived here. ] On 04/13/2011 07:52 AM, Peter Maydell wrote: So I think you want the _quiet version here. (And helper_cmpteq needs to use float64_eq_quiet rather than float64_eq.) Yes, the _quiet version is what's needed for all comparisons. For

[Qemu-devel] [Bug 760060] [NEW] Open Solaris 2009 Assertion `size' failed

2011-04-13 Thread Nigel Horne
Public bug reported: The latest git version of qemu (commit 9df38c47d01eb1fd7eb9d60ac70a4170e638b4a2) fails to boot the OpenSolaris image from http://dlc.sun.com/osol/opensolaris/2009/06/osol-0906-ai- sparc.iso. qemu-img create opensolaris 3G qemu-system-sparc -hda opensolaris -cdrom

Re: [Qemu-devel] [PATCH 15/19] target-arm: fix wrong usage of floatx80_eq_quiet()

2011-04-13 Thread Aurelien Jarno
On Tue, Apr 12, 2011 at 11:41:49PM +0100, Peter Maydell wrote: On 12 April 2011 22:59, Aurelien Jarno aurel...@aurel32.net wrote: I haven't look at the documentation, but for the neighbouring code it looks clear that floatx80_eq() should be used instead of floatx80_eq_quiet(). Actually I

Re: [Qemu-devel] [PATCH 17/19] target-ppc: fix SPE comparison functions

2011-04-13 Thread Aurelien Jarno
On Tue, Apr 12, 2011 at 07:40:33PM -0700, Nathan Froyd wrote: On Tue, Apr 12, 2011 at 11:59:29PM +0200, Aurelien Jarno wrote: Given that float32_*() functions are IEEE754 compliant, the efscmp*() functions are correctly implemented, while efstst*() are not. This patch reverse the

Re: [Qemu-devel] [PATCH 2/2] Support for Cavium-Octeon specific instruction

2011-04-13 Thread Aurelien Jarno
On Wed, Apr 13, 2011 at 12:26:01PM +0500, Khansa Butt wrote: We ported MIPS64 r2 user mode emulation. When a binary is given to qemu-mips64, our code first check whether it is Octeon binary or not if yes it enable Octeon specific Instructions for. The following code snippet do this job:

Re: [Qemu-devel] [PATCH 08/19] target-alpha: use new float64_unordered() function

2011-04-13 Thread Aurelien Jarno
On Wed, Apr 13, 2011 at 08:53:27AM -0700, Richard Henderson wrote: On 04/13/2011 08:42 AM, Peter Maydell wrote: On 13 April 2011 16:38, Richard Henderson r...@twiddle.net wrote: [ Odd, the original thread doesn't seem to have arrived here. ] On 04/13/2011 07:52 AM, Peter Maydell wrote:

Re: [Qemu-devel] [PATCH 1/4] [arm] trivial whitespace/indentation fixes

2011-04-13 Thread Aurelien Jarno
On Wed, Apr 13, 2011 at 06:16:55PM +0100, Peter Maydell wrote: On 13 April 2011 17:38, Lluís xscr...@gmx.net wrote: Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu ---  target-arm/helper.c        |  246 ++--  target-arm/iwmmxt_helper.c |   28

Re: [Qemu-devel] [PATCH 2/2 V7] qemu, qmp: add inject-nmi qmp command

2011-04-13 Thread Blue Swirl
On Wed, Apr 13, 2011 at 4:08 PM, Luiz Capitulino lcapitul...@redhat.com wrote: On Tue, 12 Apr 2011 21:31:18 +0300 Blue Swirl blauwir...@gmail.com wrote: On Tue, Apr 12, 2011 at 10:52 AM, Avi Kivity a...@redhat.com wrote: On 04/11/2011 08:15 PM, Blue Swirl wrote: On Mon, Apr 11, 2011 at

Re: [Qemu-devel] [PATCH 1/4] [arm] trivial whitespace/indentation fixes

2011-04-13 Thread Lluís
Aurelien Jarno writes: On Wed, Apr 13, 2011 at 06:16:55PM +0100, Peter Maydell wrote: On 13 April 2011 17:38, Lluís xscr...@gmx.net wrote: Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu ---  target-arm/helper.c        |  246 ++--  

Re: [Qemu-devel] [PATCH 1/4] [arm] trivial whitespace/indentation fixes

2011-04-13 Thread Lluís
Aurelien Jarno writes: On Wed, Apr 13, 2011 at 06:16:55PM +0100, Peter Maydell wrote: On 13 April 2011 17:38, Lluís xscr...@gmx.net wrote: Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu ---  target-arm/helper.c        |  246 ++--  

Re: [Qemu-devel] [PATCH v2 0/3] io-thread optimizations

2011-04-13 Thread Aurelien Jarno
On Mon, Apr 11, 2011 at 10:27:41PM +0200, Jan Kiszka wrote: These patches were posted before. They bring down the overhead of the io-thread mode for TCG here, specifically when emulating SMP. The major change in this version, besides rebasing, is the exclusion of KVM from the main loop

[Qemu-devel] [PATCH] Remove unneeded function parameter from gen_pc_load

2011-04-13 Thread Stefan Weil
gen_pc_load was introduced in commit d2856f1ad4c259e5766847c49acbb4e390731bd4. The only reason for parameter searched_pc was a debug statement in target-i386/translate.c. Remove searched_pc from the debug statement and from the parameter list of gen_pc_load. Signed-off-by: Stefan Weil

[Qemu-devel] [PATCH] Fix some typos in comments and documentation

2011-04-13 Thread Stefan Weil
helpfull - helpful usefull - useful cotrol - control and a grammar fix. Signed-off-by: Stefan Weil w...@mail.berlios.de --- qemu-options.hx |4 ++-- savevm.c|2 +- target-arm/helper.c |2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [Qemu-devel] [PATCH] Slirp reverse UDP firewall

2011-04-13 Thread Blue Swirl
On Tue, Apr 12, 2011 at 7:19 PM, Daisuke Nojiri dnoj...@google.com wrote: This patch adds: -drop-udp, -allow-udp ADDR:PORT, -drop-log FILE   e.g.) $ qemu -net user -drop-log qemu.drop -drop-udp -allow-udp 10.0.2.3:53 -drop-udp enables usermode firewall for out-going UDP packats from a guest.

Re: [Qemu-devel] Question about total_sectors in block/vpc.c

2011-04-13 Thread Lyu Mitnick
Hello Stefan, I have a question about get_option_parameter(). I am wondering whether get_option_parameter is suitable to use instead of doing the search by myself in the case like following: /* Read out options */ while (options options-name) { if (!strcmp(options-name,

Re: [Qemu-devel] [PATCH] Remove unneeded function parameter from gen_pc_load

2011-04-13 Thread Peter Maydell
On 13 April 2011 21:38, Stefan Weil w...@mail.berlios.de wrote: gen_pc_load was introduced in commit d2856f1ad4c259e5766847c49acbb4e390731bd4. The only reason for parameter searched_pc was a debug statement in target-i386/translate.c. Remove searched_pc from the debug statement and from the

Re: [Qemu-devel] [PATCH] target-arm: Don't overflow when calculating value for signed VABAL

2011-04-13 Thread Aurelien Jarno
On Tue, Apr 12, 2011 at 11:31:20PM +0100, Peter Maydell wrote: On 12 April 2011 22:32, Aurelien Jarno aurel...@aurel32.net wrote: On Mon, Apr 11, 2011 at 04:32:08PM +0100, Peter Maydell wrote: @@ -1524,12 +1528,12 @@ uint64_t HELPER(neon_abdl_u16)(uint32_t a, uint32_t b)  {      

Re: [Qemu-devel] [PATCH 4/4] usb: use DPRINTF instead of printf for some simple cases

2011-04-13 Thread Brad Hards
On Wed, 13 Apr 2011 10:52:37 pm Hans de Goede wrote: @@ -359,7 +359,7 @@ static int usb_host_claim_interfaces(USBHostDevice *dev, int configuration) ret = ioctl(dev-fd, USBDEVFS_CLAIMINTERFACE,interface); if (ret 0) { if (errno == EBUSY) { -

[Qemu-devel] [PATCH v2 00/19] softfloat and FPU fixes/improvements

2011-04-13 Thread Aurelien Jarno
This patch series started with the goal of improving the build of target-i386 with softfloat (instead of softfloat-native), but it slowly became a collection of fixes and improvements with regard to softfloat and targets FPU. Aurelien Jarno (19): softfloat: use GCC builtins to count the leading

[Qemu-devel] [PATCH v2 05/19] target-i386: add floatx_{add, mul, sub} and use them

2011-04-13 Thread Aurelien Jarno
Add floatx_{add,mul,sub} defines, and use them instead of using direct C operations. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- target-i386/exec.h |6 ++ target-i386/op_helper.c | 18 -- 2 files

[Qemu-devel] [PATCH v2 04/19] target-i386: use float unions from cpu-all.h

2011-04-13 Thread Aurelien Jarno
Use float unions from cpu-all.h instead of redefining new (wrong for arm) ones in target-i386. This also allows building cpu-exec.o with softfloat. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- target-i386/exec.h | 27

[Qemu-devel] [PATCH v2 02/19] cpu-all.h: define CPU_LDoubleU

2011-04-13 Thread Aurelien Jarno
Add a CPU_LDoubleU type, matching the floatx80 definition and the long double type on x86 hosts. Based on a patch from Laurent Vivier laur...@vivier.eu. Cc: Laurent Vivier laur...@vivier.eu Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net ---

[Qemu-devel] [PATCH v2 10/19] target-i386: fix CMPUNORDPS/D and CMPORDPS/D instructions

2011-04-13 Thread Aurelien Jarno
SSE instructions CMPUNORDPS/D and CMPORDPS/D do not trigger an invalid exception if operands are qNANs. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- target-i386/ops_sse.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)

[Qemu-devel] [PATCH v2 07/19] softfloat-native: add float*_unordered_quiet() functions

2011-04-13 Thread Aurelien Jarno
Add float*_unordered_quiet() functions to march the softfloat versions. As FPU status is not tracked with softfloat-native, they don't differ from the signaling version. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net ---

[Qemu-devel] [PATCH v2 13/19] softfloat: move float*_eq and float*_eq_quiet

2011-04-13 Thread Aurelien Jarno
I am not a big fan of code moving, but having the signaling version in the middle of quiet versions and vice versa doesn't make the code easy to read. This patch is a simple code move, basically swapping locations of float*_eq and float*_eq_quiet. Reviewed-by: Peter Maydell

[Qemu-devel] [PATCH v2 16/19] target-mips: simplify FP comparisons

2011-04-13 Thread Aurelien Jarno
As the softfloat comparison functions already test for NaN, there is no need to always call the float*_unordered*() functions. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- target-mips/op_helper.c | 72

[Qemu-devel] [PATCH v2 19/19] target-mips: clear softfpu exception state for comparison instructions

2011-04-13 Thread Aurelien Jarno
MIPS FPU instructions should start with a clean softfpu status. This is done for the most instructions, but not for comparison ones. Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- target-mips/op_helper.c | 41 + 1 files changed, 25 insertions(+),

[Qemu-devel] [PATCH v2 01/19] softfloat: use GCC builtins to count the leading zeros

2011-04-13 Thread Aurelien Jarno
Softfloat has its own implementation to count the leading zeros. However a lot of architectures have either a dedicated instruction or an optimized to do that. When using GCC = 3.4, this patch uses GCC builtins instead of the handcoded implementation. Note that I amware that QEMU_GNUC_PREREQ is

[Qemu-devel] [PATCH v2 03/19] target-i386: use CPU_LDoubleU instead of a private union

2011-04-13 Thread Aurelien Jarno
Use CPU_LDoubleU in cpu_dump_state() instead of redefining a union for doing the conversion. Based on a patch from Laurent Vivier laur...@vivier.eu. Cc: Laurent Vivier laur...@vivier.eu Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net ---

[Qemu-devel] [PATCH v2 18/19] target-mips: fix c.ps.* instructions

2011-04-13 Thread Aurelien Jarno
Contrary to cabs.ps.* instructions, c.ps.* should not compare the absolute value of the operand, but directly the operands. Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- target-mips/op_helper.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git

[Qemu-devel] [PATCH v2 08/19] target-alpha: use new float64_unordered_quiet() function

2011-04-13 Thread Aurelien Jarno
Use float64_unordered_quiet() in helper_cmptun() instead of doing the the comparison manually. According to the Alpha Compiler Writer's Guide, we should use the _quiet version here, as CMPTUN and CMPTEQ should generate InvalidOp for SNaNs but not for QNaNs. Thanks to Peter Maydell

[Qemu-devel] [PATCH v2 14/19] softfloat: improve description of comparison functions

2011-04-13 Thread Aurelien Jarno
Make clear for all comparison functions which ones trigger an exception for all NaNs, and which one only for sNaNs. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- fpu/softfloat.c | 85

[Qemu-devel] [PATCH v2 17/19] target-mips: don't hardcode softfloat exception bits

2011-04-13 Thread Aurelien Jarno
Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- target-mips/op_helper.c | 35 --- 1 files changed, 20 insertions(+), 15 deletions(-) diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c index

[Qemu-devel] [PATCH v2 09/19] target-mips: use new float*_unordered*() functions

2011-04-13 Thread Aurelien Jarno
Use the new float*_unordered*() functions from softfloat instead of redefining a private version. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- target-mips/op_helper.c | 168 --- 1 files

[Qemu-devel] [PATCH v2 11/19] softfloat: rename float*_eq() into float*_eq_quiet()

2011-04-13 Thread Aurelien Jarno
float*_eq functions have a different semantics than other comparison functions. Fix that by first renaming float*_quiet() into float*_eq_quiet(). Note that it is purely mechanical, and the behaviour should be unchanged. That said it clearly highlight problems due to this different semantics, they

[Qemu-devel] [PATCH v2 06/19] softfloat: add float*_unordered_{, quiet}() functions

2011-04-13 Thread Aurelien Jarno
Add float*_unordered() functions to softfloat, matching the softfloat-native ones. Also add float*_unordered_quiet() functions to match the others comparison functions. This allow target-i386/ops_sse.h to be compiled with softfloat. Reviewed-by: Peter Maydell peter.mayd...@linaro.org

[Qemu-devel] [PATCH v2 12/19] softfloat: rename float*_eq_signaling() into float*_eq()

2011-04-13 Thread Aurelien Jarno
float*_eq_signaling functions have a different semantics than other comparison functions. Fix that by renaming float*_quiet_signaling() into float*_eq(). Note that it is purely mechanical, and the behaviour should be unchanged. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by:

[Qemu-devel] [PATCH v2 15/19] target-ppc: fix SPE comparison functions

2011-04-13 Thread Aurelien Jarno
efstst*() functions are fast SPE funtions which do not take into account special values (infinites, NaN, etc.), while efscmp*() functions are IEEE754 compliant. Given that float32_*() functions are IEEE754 compliant, the efscmp*() functions are correctly implemented, while efstst*() are not. This

Re: [Qemu-devel] [PATCH] Fix conversions from pointer to tcg_target_long

2011-04-13 Thread TeLeMan
On Sat, Apr 2, 2011 at 19:36, Stefan Weil w...@mail.berlios.de wrote: tcg_gen_exit_tb takes a parameter of type tcg_target_long, so the type casts of pointer to long should be replaced by type casts of pointer to tcg_target_long (suggested by Blue Swirl). These changes are needed for build

Re: [Qemu-devel] [PATCH] v4 revamp acpitable parsing and allow to specify complete (headerful) table

2011-04-13 Thread Isaku Yamahata
Ping. Gleb, The issue of specifying both data and file is addressed. Do you have any other comments? Otherwise can you provide your acked-by? On Tue, Apr 05, 2011 at 10:53:16PM +0400, Michael Tokarev wrote: This patch almost rewrites acpi_table_add() function (but still leaves it using old

Re: [Qemu-devel] [PATCH] Fix conversions from pointer to tcg_target_long

2011-04-13 Thread Stefan Weil
Am 14.04.2011 03:42, schrieb TeLeMan: On Sat, Apr 2, 2011 at 19:36, Stefan Weil w...@mail.berlios.de wrote: tcg_gen_exit_tb takes a parameter of type tcg_target_long, so the type casts of pointer to long should be replaced by type casts of pointer to tcg_target_long (suggested by Blue Swirl).