Re: [Qemu-devel] qemu user x86 working?

2011-02-15 Thread Andi Kleen
On Sat, Feb 12, 2011 at 10:08:26AM +0200, Blue Swirl wrote: > On Sat, Feb 12, 2011 at 12:27 AM, Andi Kleen wrote: > > > >> I don't have any problems running a statically linked x86_64 > >> helloworld program in an i386 chroot. Dynamically linked programs try > >> to use wrong libraries, but at lea

[Qemu-devel] [PATCH] uninit drive if drive_init failed

2011-02-15 Thread Wen Congyang
steps to reproduce this bug: 1. virsh attach-disk domain --source imagefile --target sdb --sourcetype file --driver qemu --subdriver qcow2 error: Failed to attach disk error: operation failed: adding scsi-disk,bus=scsi0.0,scsi-id=1,drive=drive-scsi0-0-1,id=scsi0-0-1 device failed: Property 'scsi

[Qemu-devel] [PATCH] fix memory leak when we uninit a drive

2011-02-15 Thread Wen Congyang
We alloc memory for dinfo->id, so we should free it in the function drive_uninit(). Signed-off-by: Wen Congyang --- blockdev.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/blockdev.c b/blockdev.c index ecfadc1..1333a4e 100644 --- a/blockdev.c +++ b/blockdev.c @@ -18

[Qemu-devel] A question regarding QEMU.

2011-02-15 Thread Chung Hwan Kim
Hi! My name is Chunghwan. I am a Masters student working the Flux Systems Research Group, the University of Utah, USA. I have a question regarding QEMU. First, let me introduce what I am doing related with QEMU. I and two other students have formed up a team for a project called "Accelerating Dyn

Re: [Qemu-devel] [PATCH 1/3] mainstone: correct and simplify irq handling

2011-02-15 Thread andrzej zaborowski
On 12 February 2011 01:15, Dmitry Eremin-Solenikov wrote: > Simplify IRQ handling to stop setting an input irq pin. As a win, also get > correct IRQ status after save/load cycle. Thanks, I pushed the three patches from you but see a question below. > > Signed-off-by: Dmitry Eremin-Solenikov > -

Re: [Qemu-devel] Re: [RFC] qapi: events in QMP

2011-02-15 Thread Anthony Liguori
On 02/15/2011 07:38 AM, Luiz Capitulino wrote: On Tue, 15 Feb 2011 10:20:01 +0100 Kevin Wolf wrote: Am 14.02.2011 20:34, schrieb Anthony Liguori: On 02/14/2011 12:34 PM, Luiz Capitulino wrote: On Mon, 14 Feb 2011 08:39:11 -0600 Anthony Liguori wrote: On 02/14

[Qemu-devel] [Bug 604872] Re: qemu-system-arm segfaults emulating versatile machine after running debootstrap --second-stage inside vm

2011-02-15 Thread Loïc Minier
Hmm Ubuntu has 2011.02, but I think you had asked me to flip this bug back to Triaged; I'm confused now, is this fixed in Ubuntu? I didn't find http://patchwork.ozlabs.org/patch/77888/ applied in qemu- linaro 0.13.50-2011.02-0-0ubuntu1 which is based of 2011.02. -- You received this bug notifica

[Qemu-devel] Re: [RFC] Some more io-thread optimizations

2011-02-15 Thread Marcelo Tosatti
On Mon, Feb 14, 2011 at 10:50:42AM +0100, Jan Kiszka wrote: > Hi, > > patch below further reduces the io-thread overhead in tcg mode so that > specifically emulating smp boxes gets noticeably faster. Its essence: > poll the file descriptors until select returns 0, keeping the global > mutex locked

Re: [Qemu-devel] KVM call minutes for Feb 15

2011-02-15 Thread Anthony Liguori
On 02/15/2011 10:26 AM, Chris Wright wrote: QAPI and QMP - Anthony adding a new wiki page to describe all of this http://wiki.qemu.org/Features/QAPI - specified in formal schema using JSON - includes documenation in javadoc-like syntax - can generate api (possibly protocol) docs

Re: [Qemu-devel] KVM call minutes for Feb 8

2011-02-15 Thread Anthony Liguori
On 02/15/2011 11:11 AM, Blue Swirl wrote: On Mon, Feb 14, 2011 at 11:47 PM, Anthony Liguori wrote: Any device we expose to the user through -device needs to maintain a compatible interface forever. For our own sanity, I think we should try to expose as little as possible. Restrictin

[Qemu-devel] [ANNOUNCE] QEMU 0.14.0-rc2 is available

2011-02-15 Thread Anthony Liguori
The QEMU team is pleased to announce the availability of the 0.14.0-rc2 release. This is the third release candidate for the 0.14.0 release. A detailed changelog is at the end of this message. Download instructions are available at http://wiki.qemu.org/Download You can help test this release

Re: [Qemu-devel] NBD block device backend - 'improvements'

2011-02-15 Thread Nicholas Thomas
Hi Kevin, Stefan. On Tue, 2011-02-15 at 12:09 +0100, Kevin Wolf wrote: > Am 14.02.2011 21:32, schrieb Stefan Hajnoczi: [...] > > block/nbd.c needs to be made asynchronous in order for this change to > > work. > > And even then it's not free of problem: For example qemu_aio_flush() > will hang.

[Qemu-devel] [Bug 604872] Re: qemu-system-arm segfaults emulating versatile machine after running debootstrap --second-stage inside vm

2011-02-15 Thread Peter Maydell
The fix is already in qemu-linaro 2011.02. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/604872 Title: qemu-system-arm segfaults emulating versatile machine after running debootstrap --second-sta

[Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD

2011-02-15 Thread Marcelo Tosatti
On Tue, Feb 15, 2011 at 09:33:00PM +0100, Jan Kiszka wrote: > On 2011-02-15 21:04, Marcelo Tosatti wrote: > > On Tue, Feb 15, 2011 at 07:58:53PM +0100, Jan Kiszka wrote: > >> On 2011-02-15 18:54, Marcelo Tosatti wrote: > >>> > >>> Note: to be applied to uq/master. > >>> > >>> In icount mode, halt e

[Qemu-devel] [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD (v2)

2011-02-15 Thread Marcelo Tosatti
Note: to be applied to uq/master. In icount mode, halt emulation should take into account the nearest event when sleeping. Signed-off-by: Marcelo Tosatti Reported-and-tested-by: "Edgar E. Iglesias" diff --git a/cpus.c b/cpus.c index 468544c..21c3eba 100644 --- a/cpus.c +++ b/cpus.c @@ -770,7

[Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD

2011-02-15 Thread Jan Kiszka
On 2011-02-15 21:04, Marcelo Tosatti wrote: > On Tue, Feb 15, 2011 at 07:58:53PM +0100, Jan Kiszka wrote: >> On 2011-02-15 18:54, Marcelo Tosatti wrote: >>> >>> Note: to be applied to uq/master. >>> >>> In icount mode, halt emulation should take into account the nearest event >>> when sleeping. >>

Re: [Qemu-devel] Is this an invalid combination?

2011-02-15 Thread Bruce Rogers
>>> On 2/15/2011 at 01:30 PM, Gleb Natapov wrote: > On Tue, Feb 15, 2011 at 10:28:08PM +0200, Gleb Natapov wrote: >> On Tue, Feb 15, 2011 at 02:21:41PM -0600, Anthony Liguori wrote: >> > On 02/15/2011 02:07 PM, Bruce Rogers wrote: >> > >Hi, >> > > >> > >We just noticed an issue flagged by a libv

[Qemu-devel] [Bug 604872] Re: qemu-system-arm segfaults emulating versatile machine after running debootstrap --second-stage inside vm

2011-02-15 Thread Steve Langasek
Peter, is this targeted for the next monthly Linaro QEMU release? (No need to worry about this for qemu-kvm any longer; the qemu-linaro package now handles qemu-system-arm exclusively.) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

Re: [Qemu-devel] Is this an invalid combination?

2011-02-15 Thread Gleb Natapov
On Tue, Feb 15, 2011 at 10:28:08PM +0200, Gleb Natapov wrote: > On Tue, Feb 15, 2011 at 02:21:41PM -0600, Anthony Liguori wrote: > > On 02/15/2011 02:07 PM, Bruce Rogers wrote: > > >Hi, > > > > > >We just noticed an issue flagged by a libvirt based test. This same > > >command line didn't used to

Re: [Qemu-devel] Is this an invalid combination?

2011-02-15 Thread Bruce Rogers
>>> On 2/15/2011 at 01:21 PM, Anthony Liguori wrote: > On 02/15/2011 02:07 PM, Bruce Rogers wrote: >> Hi, >> >> We just noticed an issue flagged by a libvirt based test. This same command > line didn't used to fail, and I wanted to be sure that this is behaving as > intended. >> >> When the f

Re: [Qemu-devel] Is this an invalid combination?

2011-02-15 Thread Gleb Natapov
On Tue, Feb 15, 2011 at 02:21:41PM -0600, Anthony Liguori wrote: > On 02/15/2011 02:07 PM, Bruce Rogers wrote: > >Hi, > > > >We just noticed an issue flagged by a libvirt based test. This same command > >line didn't used to fail, and I wanted to be sure that this is behaving as > >intended. > >

Re: [Qemu-devel] Is this an invalid combination?

2011-02-15 Thread Anthony Liguori
On 02/15/2011 02:07 PM, Bruce Rogers wrote: Hi, We just noticed an issue flagged by a libvirt based test. This same command line didn't used to fail, and I wanted to be sure that this is behaving as intended. When the following command line is used on the current qemu version: x86_64-softmm

Re: [Qemu-devel] [FYI] memory leak in 0.14.0rc1 ?

2011-02-15 Thread Stefan Hajnoczi
2011/2/15 Torsten Förtsch : > On Tuesday, February 15, 2011 15:43:32 Stefan Hajnoczi wrote: >> > I have installed winxp and run the machine as "/usr/bin/qemu-kvm -name >> > xp.home -m 768 ...". >> >> Are you able to try QEMU 0.14.0-rc2 from source? >> >> $ git clone git://git.qemu.org/qemu.git >> $

[Qemu-devel] [PATCH 2/2] linux-user: in linux-user/strace.c, tswap() is useless

2011-02-15 Thread Laurent Vivier
Syscall parameters are already swapped by the caller. This patch removes useless tswap() from strace.c $ QEMU_STRACE=1 chroot /m68k mknod myramdisk b 1 1 with tswap() ... 29944 mknod("myramdisk",02663020) = 0 ... without tswap() ... 30042 mknod("myramdisk",S_IFBLK|0666,makedev(1,1)) = 0 ...

[Qemu-devel] [PATCH 1/2] linux-user: add rmdir() strace

2011-02-15 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- linux-user/strace.c| 12 linux-user/strace.list |3 +++ 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index 183..05277c0 100644 --- a/linux-user/strace.c +++ b/linux-user/strac

[Qemu-devel] Is this an invalid combination?

2011-02-15 Thread Bruce Rogers
Hi, We just noticed an issue flagged by a libvirt based test. This same command line didn't used to fail, and I wanted to be sure that this is behaving as intended. When the following command line is used on the current qemu version: x86_64-softmmu/qemu-system-x86_64 -kernel /boot/vmlinuz -d

[Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD

2011-02-15 Thread Marcelo Tosatti
On Tue, Feb 15, 2011 at 07:58:53PM +0100, Jan Kiszka wrote: > On 2011-02-15 18:54, Marcelo Tosatti wrote: > > > > Note: to be applied to uq/master. > > > > In icount mode, halt emulation should take into account the nearest event > > when sleeping. > > > > Signed-off-by: Marcelo Tosatti > > Re

[Qemu-devel] Re: Comparing New Image Formats: FVD vs. QED

2011-02-15 Thread Chunqiang Tang
> Chunqiang Tang/Watson/IBM wrote on 01/28/2011 05:13:27 PM: > As you requested, I set up a wiki page for FVD at http://wiki.qemu.org/Features/FVD > . It includes a summary of FVD, a detailed specification of FVD, and a > comparison of the design and performance of FVD and QED. > See the figure

[Qemu-devel] Re: [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD

2011-02-15 Thread Jan Kiszka
On 2011-02-15 18:54, Marcelo Tosatti wrote: > > Note: to be applied to uq/master. > > In icount mode, halt emulation should take into account the nearest event > when sleeping. > > Signed-off-by: Marcelo Tosatti > Reported-and-tested-by: "Edgar E. Iglesias" > > diff --git a/cpus.c b/cpus.c >

[Qemu-devel] [PATCH] fix halt emulation with icount and CONFIG_IOTHREAD

2011-02-15 Thread Marcelo Tosatti
Note: to be applied to uq/master. In icount mode, halt emulation should take into account the nearest event when sleeping. Signed-off-by: Marcelo Tosatti Reported-and-tested-by: "Edgar E. Iglesias" diff --git a/cpus.c b/cpus.c index 468544c..21c3eba 100644 --- a/cpus.c +++ b/cpus.c @@ -770,7

[Qemu-devel] [PATCH] linux-user: Support the epoll syscalls

2011-02-15 Thread Peter Maydell
Support the epoll family of syscalls: epoll_create(), epoll_create1(), epoll_ctl(), epoll_wait() and epoll_pwait(). Note that epoll_create1() and epoll_pwait() are later additions, so we have to test separately in configure for their presence. Signed-off-by: Peter Maydell --- configure

Re: [Qemu-devel] [PATCH 06/10] vmmouse: convert to qdev

2011-02-15 Thread Blue Swirl
On Tue, Feb 15, 2011 at 7:22 PM, Blue Swirl wrote: > On Tue, Feb 15, 2011 at 12:07 PM, Markus Armbruster wrote: >> Anthony Liguori writes: >> >>> On 02/12/2011 11:03 AM, Markus Armbruster wrote: Blue Swirl  writes: > Convert to qdev, also add a proper reset function. >> [...]

Re: [Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups

2011-02-15 Thread Peter Maydell
On 15 February 2011 15:02, Vincent Palatin wrote: > This assumes that all the ARM SMP platforms are booting their > secondary CPU the same way as the emulated Realview. > For example, I'm currently writing a Tegra2 (dual A9) SoC emulation > and the second CPU is halted when the platform starts and

Re: [Qemu-devel] [PATCH 05/10] vmport: convert to qdev

2011-02-15 Thread Blue Swirl
On Tue, Feb 15, 2011 at 12:22 PM, Markus Armbruster wrote: > Blue Swirl writes: > >> On Sat, Feb 12, 2011 at 6:57 PM, Markus Armbruster wrote: >>> Blue Swirl writes: >>> Signed-off-by: Blue Swirl ---  hw/pc.h      |    1 -  hw/pc_piix.c |    2 --  hw/vmport.c  |   24 +

Re: [Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups

2011-02-15 Thread Adam Lackorzynski
Hi, On Tue Feb 15, 2011 at 10:02:05 -0500, Vincent Palatin wrote: > >> Moving in the right direction, but it would be cleaner if the secondary > >> CPU reset was handled inside arm_boot.c, I think (there is a TODO > >> in that file to that effect). Then we could get rid of the cpu reset > >> hook

Re: [Qemu-devel] [PATCH 06/10] vmmouse: convert to qdev

2011-02-15 Thread Blue Swirl
On Tue, Feb 15, 2011 at 12:07 PM, Markus Armbruster wrote: > Anthony Liguori writes: > >> On 02/12/2011 11:03 AM, Markus Armbruster wrote: >>> Blue Swirl  writes: >>> >>> Convert to qdev, also add a proper reset function. > [...] >>> Pointer properties are for dirty hacks only.  Is there rea

Re: [Qemu-devel] [FYI] memory leak in 0.14.0rc1 ?

2011-02-15 Thread Torsten Förtsch
On Tuesday, February 15, 2011 15:43:32 Stefan Hajnoczi wrote: > > I have installed winxp and run the machine as "/usr/bin/qemu-kvm -name > > xp.home -m 768 ...". > > Are you able to try QEMU 0.14.0-rc2 from source? > > $ git clone git://git.qemu.org/qemu.git > $ git checkout v0.14.0-rc2 > $ ./con

Re: [Qemu-devel] KVM call minutes for Feb 8

2011-02-15 Thread Blue Swirl
On Mon, Feb 14, 2011 at 11:47 PM, Anthony Liguori wrote: > On 02/14/2011 03:25 PM, Blue Swirl wrote: >> >> I'd still like to have the inline wrapper over the factory interface, >> probably with similar signature to isa_serial_new. Then there would be >> two functions, one going through qdev and th

Re: [Qemu-devel] [PATCH REBASE/RESEND 1/4] qdev: Add a description field for qdev properties for documentation

2011-02-15 Thread Anthony Liguori
On 02/04/2011 12:18 AM, Amit Shah wrote: Add a 'description' along with each qdev property to document the input each qdev property takes. Signed-off-by: Amit Shah Acked-by: Markus Armbruster --- block_int.h | 14 hw/a9mpcore.c |2 +- hw/acpi_piix4.c

[Qemu-devel] Re: [PATCH 00/10] Fix Neon shift instructions

2011-02-15 Thread Christophe Lyon
On 15.02.2011 14:44, Peter Maydell wrote: > This patch series fixes bugs in the Neon shift instructions > VRSHR, VRSRA, VQRSHRN, VQRSHRUN, VRSHRN, VQSHRN, VSHRN, VQSHRUN, > VRSHL, and VQRSHL. It is based on the v3 patchset Christophe > sent recently, with some fixes for minor nits in those patches,

[Qemu-devel] [PATCHv2 3/3] e1000: verify we have buffers, upfront

2011-02-15 Thread Michael S. Tsirkin
The spec says: Any descriptor with a non-zero status byte has been processed by the hardware, and is ready to be handled by the software. Thus, once we change a descriptor status to non-zero we should never move the head backwards and try to reuse this descriptor from hardware. This actually happ

[Qemu-devel] [PATCHv2 0/3] e1000: multi-buffer packet support

2011-02-15 Thread Michael S. Tsirkin
e1000 supports multi-buffer packets larger than rxbuf_size. This fixes the following (on linux): - in guest: ifconfig eth1 mtu 16110 - in host: ifconfig tap0 mtu 16110 ping -s 16082 Red Hat bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=602205 Changes from v1: fix buff

[Qemu-devel] [PATCHv2 2/3] e1000: clear EOP for multi-buffer descriptors

2011-02-15 Thread Michael S. Tsirkin
The e1000 spec says: if software statically allocates buffers, and uses memory read to check for completed descriptors, it simply has to zero the status byte in the descriptor to make it ready for reuse by hardware. This is not a hardware requirement (moving the hardware tail pointer is), but is ne

[Qemu-devel] [PATCHv2 1/3] e1000: multi-buffer packet support

2011-02-15 Thread Michael S. Tsirkin
e1000 supports multi-buffer packets larger than rxbuf_size. This fixes the following (on linux): - in guest: ifconfig eth1 mtu 16110 - in host: ifconfig tap0 mtu 16110 ping -s 16082 Signed-off-by: Michael S. Tsirkin Reviewed-by: Stefan Hajnoczi --- hw/e1000.c | 39 +++

[Qemu-devel] KVM call minutes for Feb 15

2011-02-15 Thread Chris Wright
QAPI and QMP - Anthony adding a new wiki page to describe all of this - specified in formal schema using JSON - includes documenation in javadoc-like syntax - can generate api (possibly protocol) docs - documenting each command and expected errors - creates marshalling functions and C interfa

[Qemu-devel] Re: What's QAPI?

2011-02-15 Thread Anthony Liguori
On 02/15/2011 08:07 AM, Markus Armbruster wrote: Anthony Liguori writes: Hi, In my QAPI branch[1], I've now got almost every existing QMP command converted with (hopefully) all of the hard problems solved. There is only one remaining thing to attack before posting for inclusion and that'

Re: [Qemu-devel] [PATCH REBASE/RESEND 0/4] Auto-document qdev devices

2011-02-15 Thread Anthony Liguori
On 02/04/2011 12:18 AM, Amit Shah wrote: Hello, This is yet another rebase of the patchset I'd sent earlier. The usual notes apply: this is just the start, just getting the framework in place and a few examples so that people can then pick up and start documenting their devices and options. We

Re: [Qemu-devel] [PATCH REBASE/RESEND 2/4] virtio-serial: Add description fields for qdev properties

2011-02-15 Thread Anthony Liguori
On 02/04/2011 12:18 AM, Amit Shah wrote: Document the parameters for the virtserialport and virtioconsole devices. Example: $ ./x86_64-softmmu/qemu-system-x86_64 -device virtserialport,? virtserialport.nr=uint32, The 'number' for the port for \ predictable port numbers. Use this to spawn ports

Re: [Qemu-devel] KVM call agenda for Feb 15

2011-02-15 Thread Stefan Hajnoczi
On Mon, Feb 14, 2011 at 10:18 PM, Anthony Liguori wrote: > On 02/14/2011 11:56 AM, Chris Wright wrote: >> >> Please send in any agenda items you are interested in covering. >> > > -rc2 is tagged and waiting for announcement.  Please take a look at -rc2 and > make sure there is nothing critical mis

[Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: 'struct kvm_sregs' has no member named 'pvr'

2011-02-15 Thread Dushyant Bansal
On Tuesday 15 February 2011 08:03 PM, Alexander Graf wrote: On 15.02.2011, at 15:21, Dushyant Bansal wrote: Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please Yes, kernel header

Re: [Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups

2011-02-15 Thread Vincent Palatin
Hi Adam, >> Moving in the right direction, but it would be cleaner if the secondary >> CPU reset was handled inside arm_boot.c, I think (there is a TODO >> in that file to that effect). Then we could get rid of the cpu reset >> hook from realview.c. > > Like the following? This assumes that all t

Re: [Qemu-devel] Re: [RFC] qapi: events in QMP

2011-02-15 Thread Markus Armbruster
Luiz Capitulino writes: > On Mon, 14 Feb 2011 13:34:11 -0600 > Anthony Liguori wrote: > >> On 02/14/2011 12:34 PM, Luiz Capitulino wrote: >> > On Mon, 14 Feb 2011 08:39:11 -0600 >> > Anthony Liguori wrote: >> > >> > >> >> On 02/14/2011 06:45 AM, Luiz Capitulino wrote: >> >> >> >>> So

Re: [Qemu-devel] [PATCH v3 0/6] target-arm: Fix Neon shift instructions.

2011-02-15 Thread Christophe Lyon
On 15.02.2011 15:21, Peter Maydell wrote: > On 15 February 2011 14:03, Christophe Lyon wrote: >> It also seems that the neon_shl_s* helpers don't handle correctly large >> negative shift amounts. > > They look OK to me (large -ve shift is a huge right shift, > which for signed values should prop

Re: [Qemu-devel] [FYI] memory leak in 0.14.0rc1 ?

2011-02-15 Thread Stefan Hajnoczi
2011/2/15 Torsten Förtsch : > I am trying out the opensuse kvm rpm from the Virtualization repository: > >  http://download.opensuse.org/repositories/Virtualization/openSUSE_11.3/x86_64/kvm-0.14.0.rc1-67.1.x86_64.rpm > > I have installed winxp and run the machine as "/usr/bin/qemu-kvm -name xp.home

[Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: ‘struct kvm_sregs’ has no member named ‘pvr’

2011-02-15 Thread Alexander Graf
On 15.02.2011, at 15:21, Dushyant Bansal wrote: > Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please >>> Yes, kernel headers version is 2.6.32. For the time being, I copied so

Re: [Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups

2011-02-15 Thread Adam Lackorzynski
On Tue Feb 15, 2011 at 13:37:44 +, Peter Maydell wrote: > On 15 February 2011 13:12, Adam Lackorzynski > wrote: > > > > On Tue Feb 15, 2011 at 13:01:08 +, Peter Maydell wrote: > >> On 15 February 2011 10:48, Adam Lackorzynski > >> wrote: > >> > Make smpboot available not only for Linux

[Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: ‘struct kvm_sregs’ has no member named ‘pvr’

2011-02-15 Thread Dushyant Bansal
Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please Yes, kernel headers version is 2.6.32. For the time being, I copied some of the header files from kvm/arch/powerpc/include/asm/ to kernel hea

Re: [Qemu-devel] [PATCH v3 0/6] target-arm: Fix Neon shift instructions.

2011-02-15 Thread Peter Maydell
On 15 February 2011 14:03, Christophe Lyon wrote: > It also seems that the neon_shl_s* helpers don't handle correctly large > negative shift amounts. They look OK to me (large -ve shift is a huge right shift, which for signed values should propagate the sign bit to all bit positions, so we shift

[Qemu-devel] Re: What's QAPI?

2011-02-15 Thread Anthony Liguori
On 02/15/2011 08:07 AM, Markus Armbruster wrote: Anthony Liguori writes: Hi, In my QAPI branch[1], I've now got almost every existing QMP command converted with (hopefully) all of the hard problems solved. There is only one remaining thing to attack before posting for inclusion and that'

Re: [Qemu-devel] KVM call agenda for Feb 15

2011-02-15 Thread Avi Kivity
On 02/15/2011 03:58 PM, Anthony Liguori wrote: On 02/15/2011 04:44 AM, Avi Kivity wrote: On 02/15/2011 12:18 AM, Anthony Liguori wrote: On 02/14/2011 11:56 AM, Chris Wright wrote: Please send in any agenda items you are interested in covering. -rc2 is tagged and waiting for announcement. Pl

Re: [Qemu-devel] [PATCH 4/6] target-arm: fix saturated values for Neon right shifts.

2011-02-15 Thread Christophe Lyon
>> @@ -924,7 +924,11 @@ uint32_t HELPER(neon_qrshl_s32)(CPUState *env, uint32_t >> valop, uint32_t shiftop) >> dest = val << shift; >> if ((dest >> shift) != val) { >> SET_QC(); >> -dest = (uint32_t)(1 << (sizeof(val) * 8 - 1)) - (val > 0 ? 1 : >> 0); >> +

Re: [Qemu-devel] KVM call agenda for Feb 15

2011-02-15 Thread Anthony Liguori
On 02/15/2011 04:44 AM, Avi Kivity wrote: On 02/15/2011 12:18 AM, Anthony Liguori wrote: On 02/14/2011 11:56 AM, Chris Wright wrote: Please send in any agenda items you are interested in covering. -rc2 is tagged and waiting for announcement. Please take a look at -rc2 and make sure there is

What's QAPI? (was: [Qemu-devel] [RFC] qapi: events in QMP)

2011-02-15 Thread Markus Armbruster
Anthony Liguori writes: > Hi, > > In my QAPI branch[1], I've now got almost every existing QMP command > converted with (hopefully) all of the hard problems solved. There is > only one remaining thing to attack before posting for inclusion and > that's events. Here's my current thinking about w

Re: [Qemu-devel] [PATCH v3 0/6] target-arm: Fix Neon shift instructions.

2011-02-15 Thread Christophe Lyon
On 14.02.2011 19:18, Peter Maydell wrote: > On 11 February 2011 15:10, wrote: >> From: Christophe Lyon >> >> This patch series provides fixes such that ARM Neon instructions >> VRSHR, VRSRA, VQRSHRN, VQRSHRUN, VRSHRN, VQSHRN, VSHRN, VQSHRUN now >> pass all my tests. >> >> I have reworked all the

[Qemu-devel] [PATCH 09/10] target-arm: Fix unsigned VQRSHL by large shift counts

2011-02-15 Thread Peter Maydell
Correctly handle VQRSHL of unsigned values by a shift count of the width of the data type or larger, which must be special-cased in the qrshl_u* helper functions. Signed-off-by: Peter Maydell --- target-arm/neon_helper.c | 37 ++--- 1 files changed, 34 insertion

Re: [Qemu-devel] KVM call agenda for Feb 15

2011-02-15 Thread Anthony Liguori
On 02/15/2011 06:11 AM, Markus Armbruster wrote: Anthony Liguori writes: On 02/14/2011 11:56 AM, Chris Wright wrote: Please send in any agenda items you are interested in covering. - QAPI and QMP events - qdev future Do we need a qdev tree and a maintainer for

[Qemu-devel] [PATCH 02/10] target-arm: Fix signed VRSHL by large shift counts

2011-02-15 Thread Peter Maydell
Correctly handle VRSHL of signed values by a shift count of the width of the data type or larger, which must be special-cased in the rshl_s* helper functions. Signed-off-by: Peter Maydell --- target-arm/neon_helper.c | 17 +++-- 1 files changed, 3 insertions(+), 14 deletions(-) di

Re: [Qemu-devel] [PATCH 2/6] target-arm: fix Neon right shifts with shift amount == input width.

2011-02-15 Thread Christophe Lyon
>> -dest = src1 >> (tmp - 1); \ >> +dest = src1 >> (-tmp - 1); \ >> dest++; \ >> dest >>= 1; \ > > Again, these three lines have the same effect as dest = 0, > so we can fold into the previous if(). > >> } else if (tmp < 0) { \ >> @@ -594,7 +594,7 @@ uint64_t

[Qemu-devel] [PATCH 01/10] target-arm: Fix rounding constant addition for Neon shifts

2011-02-15 Thread Peter Maydell
From: Christophe Lyon Handle cases where adding the rounding constant could overflow in Neon shift instructions: VRSHR, VRSRA, VQRSHRN, VQRSHRUN, VRSHRN. Signed-off-by: Christophe Lyon [peter.mayd...@linaro.org: fix handling of large shifts in rshl_s32, calculate signed saturated value as other

[Qemu-devel] [PATCH 04/10] target-arm: fix unsigned 64 bit right shifts.

2011-02-15 Thread Peter Maydell
From: Christophe Lyon Fix range of shift amounts which always give 0 as result. Signed-off-by: Christophe Lyon Reviewed-by: Peter Maydell --- target-arm/neon_helper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-arm/neon_helper.c b/target-arm/neon_helper.c

[Qemu-devel] [PATCH 06/10] target-arm: fix Neon VQSHRN and VSHRN.

2011-02-15 Thread Peter Maydell
From: Christophe Lyon Call the normal shift helpers instead of the rounding ones. Signed-off-by: Christophe Lyon Reviewed-by: Peter Maydell --- target-arm/translate.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c in

[Qemu-devel] [PATCH 07/10] target-arm: fix decoding of Neon 64 bit shifts.

2011-02-15 Thread Peter Maydell
From: Christophe Lyon Fix decoding of 64 bits variants of VSHRN, VRSHRN, VQSHRN, VQSHRUN, VQRSHRN, VQRSHRUN, taking into account whether inputs are unsigned or not. Signed-off-by: Christophe Lyon Reviewed-by: Peter Maydell --- target-arm/translate.c | 45 ++--

[Qemu-devel] [PATCH 08/10] target-arm: Fix signed VQRSHL by large shift counts

2011-02-15 Thread Peter Maydell
Handle the case of signed VQRSHL by a shift count of the width of the data type or larger, which must be special cased in the qrshl_s* helper functions. Signed-off-by: Peter Maydell --- target-arm/neon_helper.c | 34 +++--- 1 files changed, 31 insertions(+), 3 delet

[Qemu-devel] [PATCH 10/10] target-arm: Fix shift by immediate and narrow where src, dest overlap

2011-02-15 Thread Peter Maydell
For Neon shifts by immediate and narrow, correctly handle the case where the source registers and the destination registers overlap (the second pass should use the original register contents, not the results of the first pass). Signed-off-by: Peter Maydell --- target-arm/translate.c | 38 +

[Qemu-devel] [PATCH 03/10] target-arm: Fix unsigned VRSHL.s8 and .s16 right shifts by type width

2011-02-15 Thread Peter Maydell
From: Christophe Lyon Fix handling of unsigned VRSHL.s8 and .s16 right shifts by the type width. Signed-off-by: Christophe Lyon Reviewed-by: Peter Maydell --- target-arm/neon_helper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-arm/neon_helper.c b/target-a

[Qemu-devel] [PATCH 05/10] target-arm: Fix saturated values for Neon right shifts

2011-02-15 Thread Peter Maydell
Fix value returned by signed 8 and 16 bit qrshl helpers when the result has saturated. Signed-off-by: Peter Maydell --- target-arm/neon_helper.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/target-arm/neon_helper.c b/target-arm/neon_helper.c index a8885fa..7859f0b

[Qemu-devel] [PATCH 00/10] Fix Neon shift instructions

2011-02-15 Thread Peter Maydell
This patch series fixes bugs in the Neon shift instructions VRSHR, VRSRA, VQRSHRN, VQRSHRUN, VRSHRN, VQSHRN, VSHRN, VQSHRUN, VRSHL, and VQRSHL. It is based on the v3 patchset Christophe sent recently, with some fixes for minor nits in those patches, plus some patches from me which fix problems with

Re: [Qemu-devel] KVM call agenda for Feb 15

2011-02-15 Thread Gleb Natapov
On Mon, Feb 14, 2011 at 01:54:41PM -0600, Anthony Liguori wrote: > On 02/14/2011 11:56 AM, Chris Wright wrote: > >Please send in any agenda items you are interested in covering. > > - QAPI and QMP events > - qdev future > Making new Seabios stable release for qemu-0.14? --

Re: [Qemu-devel] Re: [RFC] qapi: events in QMP

2011-02-15 Thread Luiz Capitulino
On Tue, 15 Feb 2011 10:20:01 +0100 Kevin Wolf wrote: > Am 14.02.2011 20:34, schrieb Anthony Liguori: > > On 02/14/2011 12:34 PM, Luiz Capitulino wrote: > >> On Mon, 14 Feb 2011 08:39:11 -0600 > >> Anthony Liguori wrote: > >> > >> > >>> On 02/14/2011 06:45 AM, Luiz Capitulino wrote: > >>>

Re: [Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups

2011-02-15 Thread Peter Maydell
On 15 February 2011 13:12, Adam Lackorzynski wrote: > > On Tue Feb 15, 2011 at 13:01:08 +, Peter Maydell wrote: >> On 15 February 2011 10:48, Adam Lackorzynski >> wrote: >> > Make smpboot available not only for Linux but for all setups. >> >> I'm not convinced about this. I think if you're p

Re: [Qemu-devel] Re: [RFC] qapi: events in QMP

2011-02-15 Thread Luiz Capitulino
On Mon, 14 Feb 2011 14:15:27 -0600 Anthony Liguori wrote: > On 02/14/2011 01:58 PM, Luiz Capitulino wrote: > > No, of course not, our plan has always been to do this via an schema, > > the only reason we don't do this today is lack of time/help. > > > > > > Understood--I'm here to help now :

[Qemu-devel] [PATCH 2/2] pxa2xx_keypad: Handle 0xe0xx keycodes

2011-02-15 Thread Vasily Khoruzhick
Add handling of 0xe0xx keycodes to pxa2xx_driver. Extended keycodes in keymap should be marked with most significant bit set (i.e. 0x80). Without this patch it's not possible to handle i.e. cursor keys. Signed-off-by: Vasily Khoruzhick --- hw/pxa2xx_keypad.c | 10 ++ 1 files changed, 1

[Qemu-devel] [PATCH 1/2] pxa2xx_keypad: enhance emulation of KPAS, KPASMKP regs

2011-02-15 Thread Vasily Khoruzhick
Add emulation of KPAS register and proper emulation of KPASMKP regs, so now driver supports multipresses and properly works with Linux driver. Signed-off-by: Vasily Khoruzhick --- hw/pxa2xx_keypad.c | 114 1 files changed, 62 insertions(+), 5

Re: [Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups

2011-02-15 Thread Adam Lackorzynski
On Tue Feb 15, 2011 at 13:01:08 +, Peter Maydell wrote: > On 15 February 2011 10:48, Adam Lackorzynski > wrote: > > Make smpboot available not only for Linux but for all setups. > > I'm not convinced about this. I think if you're providing a raw > image for an SMP system (rather than a Linu

Re: [Qemu-devel] [PATCH v2] tracetool: Add optional argument to specify dtrace probe names

2011-02-15 Thread Stefan Hajnoczi
On Tue, Feb 15, 2011 at 12:34 PM, wrote: > From: Jes Sorensen > > Optional feature allowing a user to generate the probe list to match > the name of the binary, in case they wish to install qemu under a > different name than qemu-{system,user}, > > Signed-off-by: Jes Sorensen > --- >  scripts/t

Re: [Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups

2011-02-15 Thread Peter Maydell
On 15 February 2011 10:48, Adam Lackorzynski wrote: > Make smpboot available not only for Linux but for all setups. I'm not convinced about this. I think if you're providing a raw image for an SMP system (rather than a Linux kernel) then it's your job to provide an image which handles the bootup

[Qemu-devel] [PATCH v2] tracetool: Add optional argument to specify dtrace probe names

2011-02-15 Thread Jes . Sorensen
From: Jes Sorensen Optional feature allowing a user to generate the probe list to match the name of the binary, in case they wish to install qemu under a different name than qemu-{system,user}, Signed-off-by: Jes Sorensen --- scripts/tracetool | 21 ++--- 1 files changed, 14

Re: [Qemu-devel] KVM call agenda for Feb 15

2011-02-15 Thread Markus Armbruster
Anthony Liguori writes: > On 02/14/2011 11:56 AM, Chris Wright wrote: >> Please send in any agenda items you are interested in covering. >> > > - QAPI and QMP events > - qdev future Do we need a qdev tree and a maintainer for it? > > I don't really have a coherent plan for the second on

[Qemu-devel] Re: [PATCH] tracetool: Add optional argument to specify dtrace probe names

2011-02-15 Thread Stefan Hajnoczi
On Tue, Feb 15, 2011 at 11:10:22AM +0100, jes.soren...@redhat.com wrote: > From: Jes Sorensen > > Optional feature allowing a user to generate the probe list to match > the name of the binary, in case they wish to install qemu under a > different name than qemu-{system,user}, > > Signed-off-by:

[Qemu-devel] [FYI] memory leak in 0.14.0rc1 ?

2011-02-15 Thread Torsten Förtsch
Hi, perhaps this is the wrong list. If so then please accept my apology. I am trying out the opensuse kvm rpm from the Virtualization repository: http://download.opensuse.org/repositories/Virtualization/openSUSE_11.3/x86_64/kvm-0.14.0.rc1-67.1.x86_64.rpm I have installed winxp and run the ma

Re: [Qemu-devel] NBD block device backend - 'improvements'

2011-02-15 Thread Kevin Wolf
Am 14.02.2011 21:32, schrieb Stefan Hajnoczi: > On Mon, Feb 14, 2011 at 7:40 PM, Nicholas Thomas wrote: >> I've written a patch that changes the behaviour - instead of exiting at >> startup, we wait for the NBD connection to be established, and we hang >> on reads and writes until the connection i

[Qemu-devel] [PATCH 3/3] target-arm: Implement cp15 VA->PA translation

2011-02-15 Thread Adam Lackorzynski
Implement VA->PA translations by cp15-c7 that went through unchanged previously. Signed-off-by: Adam Lackorzynski --- target-arm/cpu.h|1 + target-arm/helper.c | 51 +-- 2 files changed, 50 insertions(+), 2 deletions(-) diff --git a/tar

[Qemu-devel] [PATCH 2/3] target-arm: Fix soft interrupt in GIC distributor

2011-02-15 Thread Adam Lackorzynski
Fix selection of target list filter mode. Signed-off-by: Adam Lackorzynski --- hw/arm_gic.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/arm_gic.c b/hw/arm_gic.c index e6b1953..0e934ec 100644 --- a/hw/arm_gic.c +++ b/hw/arm_gic.c @@ -549,10 +549,10 @@ static voi

[Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups

2011-02-15 Thread Adam Lackorzynski
Make smpboot available not only for Linux but for all setups. Signed-off-by: Adam Lackorzynski --- hw/arm_boot.c | 17 + 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/hw/arm_boot.c b/hw/arm_boot.c index 620550b..a68b396 100644 --- a/hw/arm_boot.c +++ b/hw/arm_b

Re: [Qemu-devel] KVM call agenda for Feb 15

2011-02-15 Thread Avi Kivity
On 02/15/2011 12:18 AM, Anthony Liguori wrote: On 02/14/2011 11:56 AM, Chris Wright wrote: Please send in any agenda items you are interested in covering. -rc2 is tagged and waiting for announcement. Please take a look at -rc2 and make sure there is nothing critical missing. Will tag 0.14.0

Re: [Qemu-devel] KVM call agenda for Feb 15

2011-02-15 Thread Amit Shah
On (Mon) 14 Feb 2011 [16:18:10], Anthony Liguori wrote: > On 02/14/2011 11:56 AM, Chris Wright wrote: > >Please send in any agenda items you are interested in covering. > > -rc2 is tagged and waiting for announcement. Please take a look at > -rc2 and make sure there is nothing critical missing.

Re: [Qemu-devel] [PATCH] gdbstub/ppc: handle read and write of fpscr

2011-02-15 Thread Tristan Gingold
On Feb 15, 2011, at 11:22 AM, Peter Maydell wrote: > On 15 February 2011 08:59, Tristan Gingold wrote: >> @@ -770,7 +770,8 @@ static int cpu_gdb_write_register(CPUState *env, uint8_t >> *mem_buf, int n) >> /* fpscr */ >> if (gdb_has_xml) >> return 0; >> -

Re: [Qemu-devel] [PATCH 05/10] vmport: convert to qdev

2011-02-15 Thread Markus Armbruster
Blue Swirl writes: > On Sat, Feb 12, 2011 at 6:57 PM, Markus Armbruster wrote: >> Blue Swirl writes: >> >>> Signed-off-by: Blue Swirl >>> --- >>>  hw/pc.h      |    1 - >>>  hw/pc_piix.c |    2 -- >>>  hw/vmport.c  |   24 +--- >>>  3 files changed, 21 insertions(+), 6 delet

Re: [Qemu-devel] [PATCH] gdbstub/ppc: handle read and write of fpscr

2011-02-15 Thread Peter Maydell
On 15 February 2011 08:59, Tristan Gingold wrote: > @@ -770,7 +770,8 @@ static int cpu_gdb_write_register(CPUState *env, uint8_t > *mem_buf, int n) >             /* fpscr */ >             if (gdb_has_xml) >                 return 0; > -            return 4; > +            env->fpscr = ldtul_p(mem

[Qemu-devel] [PATCH] tracetool: Add optional argument to specify dtrace probe names

2011-02-15 Thread Jes . Sorensen
From: Jes Sorensen Optional feature allowing a user to generate the probe list to match the name of the binary, in case they wish to install qemu under a different name than qemu-{system,user}, Signed-off-by: Jes Sorensen --- scripts/tracetool | 14 ++ 1 files changed, 10 inserti

  1   2   >