Re: [Qemu-devel] [PATCH v2] vfio: Filter out bogus mappings

2014-01-15 Thread Michael S. Tsirkin
On Wed, Jan 15, 2014 at 09:44:14PM -0700, Alex Williamson wrote: > Since 57271d63 we now see spurious mappings with the upper bits set > if 64bit PCI BARs are sized while enabled. The guest writes a mask > of 0x to the lower BAR to size it, then restores it, then > writes the same mask to

Re: [Qemu-devel] edit qemu with eclipse

2014-01-15 Thread Herbei Dacian
thank you Stefan! On Thursday, 16 January 2014, 7:39, Stefan Hajnoczi wrote: On Wed, Jan 15, 2014 at 10:17:52PM +, Herbei Dacian wrote: > Is there any way to edit qemu sources as eclipse projects? > I could also edit in another IDE but I'm familiar only with eclipse. I'm sure it's po

Re: [Qemu-devel] Using virtio-net and vhost_net on an ARM machine using qemu-system-arm & KVM

2014-01-15 Thread Barak Wasserstrom
Ying-Shiuan Pan, Thanks again - few questions. 1. Can you refer to my question about tap offload features? In the guest i can see that eth0 has all offload features disabled and cannot be enabled. I suspect this is related to the tap configuration in the host. 2. I can see that virtio-net notifies

Re: [Qemu-devel] [PATCH] block: do not allow read-only=on and snapshot=on to be used together

2014-01-15 Thread Stefan Hajnoczi
On Tue, Jan 14, 2014 at 02:12:19PM -0500, Jeff Cody wrote: > Having both read-only=on and snapshot=on together does not make sense; > currently, the read-only argument is effectively ignored for the > temporary snapshot. To prevent confusion, disallow the usage of both > 'snapshot=on' and 'read-on

Re: [Qemu-devel] [PATCH v2 1/2] hw/net: add support for Allwinner EMAC Fast Ethernet controller

2014-01-15 Thread Stefan Hajnoczi
On Wed, Jan 15, 2014 at 06:24:24PM +1000, Peter Crosthwaite wrote: > On Tue, Jan 14, 2014 at 3:19 PM, Stefan Hajnoczi wrote: > > On Mon, Jan 13, 2014 at 11:16:37PM +1000, Peter Crosthwaite wrote: > >> On Mon, Jan 13, 2014 at 11:15 PM, Peter Crosthwaite > >> wrote: > >> > On Sat, Jan 11, 2014 at 8

Re: [Qemu-devel] edit qemu with eclipse

2014-01-15 Thread Stefan Hajnoczi
On Wed, Jan 15, 2014 at 10:17:52PM +, Herbei Dacian wrote: > Is there any way to edit qemu sources as eclipse projects? > I could also edit in another IDE but I'm familiar only with eclipse. I'm sure it's possible but most developers use the shell (bash, zsh, etc) and text editor (vim, emacs,

Re: [Qemu-devel] Simulate different network card vendors

2014-01-15 Thread Stefan Hajnoczi
On Wed, Jan 15, 2014 at 01:27:41PM +0530, rajan pathak wrote: > I am new QEMU development and wanted to Simulate Atheros Network controller. > > > I am Running QEMU on x86 machine with underlaying network controller from > Broadcom and > compiled linux kernel based on ARM having Atheros driver s

Re: [Qemu-devel] [PATCH] block: add .bdrv_reopen_prepare() stub for iscsi

2014-01-15 Thread Stefan Hajnoczi
On Tue, Jan 14, 2014 at 01:10:24PM -0500, Jeff Cody wrote: > To suppport reopen(), the .bdrv_reopen_prepare() stub must exist. > iSCSI does not have anything that needs to be done to support reopen, > so we can just implement the _prepare() stub. > > Signed-off-by: Jeff Cody > --- > block/iscsi.

Re: [Qemu-devel] [PATCH] trace: fix simple trace "disable" keyword

2014-01-15 Thread Stefan Hajnoczi
On Wed, Jan 15, 2014 at 11:24:07AM +0800, Stefan Hajnoczi wrote: > The trace-events "disable" keyword turns an event into a nop at > compile-time. This is important for high-frequency events that can > impact performance. > > The "disable" keyword is currently broken in the simple trace backend.

[Qemu-devel] [PATCH 2/2] vfio: fix mapping of MSIX bar

2014-01-15 Thread Alexey Kardashevskiy
VFIO virtualizes MSIX table for the guest but not mapping the part of a BAR which contains an MSIX table. Since vfio_mmap_bar() mmaps chunks before and after the MSIX table, they have to be aligned to the host page size which may be TARGET_PAGE_MASK (4K) or 64K in case of PPC64. This fixes boundar

[Qemu-devel] [PATCH 1/2] kvm: initialize qemu_host_page_size

2014-01-15 Thread Alexey Kardashevskiy
There is a HOST_PAGE_ALIGN macro which makes sense for KVM accelerator but it uses qemu_host_page_size/qemu_host_page_mask which initialized for TCG only. This moves qemu_host_page_size/qemu_host_page_mask initialization from TCG's page_init() and adds a call for it from kvm_init(). Signed-off-by

[Qemu-devel] [PATCH 0/2] vfio: fix mapping of MSIX bar

2014-01-15 Thread Alexey Kardashevskiy
I tried to write my own HOST_PAGE_ALIGN to fix VFIO and found out it is already there but does not work for KVM so here are 2 patches instead of one. Alexey Kardashevskiy (2): kvm: initialize qemu_host_page_size vfio: fix mapping of MSIX bar hw/misc/vfio.c | 6 +++--- include/exec/

Re: [Qemu-devel] Secondary VGA passthrough not working, hitting linux kernel's pci_fixup_video

2014-01-15 Thread Michael S. Tsirkin
On Wed, Jan 15, 2014 at 11:35:29PM +0100, Sander Eikelenboom wrote: > > Wednesday, January 15, 2014, 11:10:35 PM, you wrote: > > > [+cc Jesse, David] > > > On Wed, Jan 15, 2014 at 12:19 PM, Sander Eikelenboom > > wrote: > > >> I understood there is no bridge for a VGA device in yo

[Qemu-devel] [PATCH v2] vfio: Filter out bogus mappings

2014-01-15 Thread Alex Williamson
Since 57271d63 we now see spurious mappings with the upper bits set if 64bit PCI BARs are sized while enabled. The guest writes a mask of 0x to the lower BAR to size it, then restores it, then writes the same mask to the upper BAR resulting in a spurious BAR mapping into the last 4G of the

[Qemu-devel] [PATCH arm-ccnt v1 1/1] ARM-CCNT: Implements the ARM PMCCNTR register

2014-01-15 Thread Alistair Francis
This patch implements the ARM PMCCNTR register including the disable and reset components of the PMCR register. Signed-off-by: Alistair Francis --- This patch assumes that non-invasive debugging is not permitted when determining if the counter is disabled target-arm/cpu.c|2 ++ target-a

Re: [Qemu-devel] [PATCH RFC 2/3] qapi script: add support of event

2014-01-15 Thread Michael Roth
Quoting Markus Armbruster (2013-12-16 03:13:08) > [Licensing problem, cc: Anthony] > > Kevin Wolf writes: > > > Am 13.12.2013 um 14:31 hat Eric Blake geschrieben: > >> On 11/12/2013 06:44 PM, Wenchao Xia wrote: > >> > +++ b/scripts/qapi-event.py > >> > @@ -0,0 +1,355 @@ > >> > +# > >> > +# QAPI

Re: [Qemu-devel] [PATCH v2] hw/misc/blob-loader: add a generic blob loader

2014-01-15 Thread Li Guang
Peter Crosthwaite wrote: On Wed, Jan 15, 2014 at 5:06 PM, Li Guang wrote: ping ... any other comments? or new suggestions? No new suggestions from me, but PMM has a point about load_image_targphys@realize doing exactly whats needed, so something closer to V1 WRT to that may actuall

Re: [Qemu-devel] ?????? ?????? ?????? ?????? ?????? qemu vm big network latency when met heavy io

2014-01-15 Thread Josh Durgin
On 01/15/2014 01:40 AM, ?? wrote: Hi Josh there is some issues 1. use 'none' cache mode in xml, and unset 'rbd cache=true' in ceph.conf, the network latency issue not show. 2. use 'writethrough' cache mode in xml, and unset 'rbd cache=true' in ceph.conf, the network latency issue not show.

Re: [Qemu-devel] [PATCH v16 0/9] Shared library module support

2014-01-15 Thread Fam Zheng
On Wed, 01/15 14:40, Peter Maydell wrote: > On 15 January 2014 14:36, Paolo Bonzini wrote: > > Il 15/01/2014 15:20, Peter Maydell ha scritto: > >>> > > >>> > On RHEL6 I tried "qemu-system-x86_64 -cdrom > >>> > http://boot.ipxe.org/ipxe.iso"; and it worked, but it failed on Fedora. > >>> > I don't

Re: [Qemu-devel] [PATCH v16 6/9] module: implement module loading

2014-01-15 Thread Fam Zheng
On Wed, 01/15 13:30, Paolo Bonzini wrote: > Il 15/01/2014 13:18, Alex Bligh ha scritto: > > I phrased that badly. I meant same output for the same calling convention, > > so > > surely just replacing 'sha256sum' with 'shasum -a 256' is going to work > > fine on > > all systems? > > I don't think

[Qemu-devel] [Bug 1269628] [NEW] Feature Request: Please add TCG OPAL 2 emulation support to the virtio disk emulation

2014-01-15 Thread Christ Schlacta
Public bug reported: In order to allow windows guests (and soon, linux guests) which are TCG OPAL 2 aware to perform disk encryption in a native fashion with hardware acceleration, please add TCG OPAL 2 emulation to the VIRTIO driver. Encryption should occur at the host level using any cryptograp

Re: [Qemu-devel] [PATCH v2 1/2] hw/net: add support for Allwinner EMAC Fast Ethernet controller

2014-01-15 Thread Peter Crosthwaite
On Thu, Jan 16, 2014 at 7:42 AM, Beniamino Galvani wrote: > On Mon, Jan 13, 2014 at 11:15:17PM +1000, Peter Crosthwaite wrote: >> On Sat, Jan 11, 2014 at 8:13 PM, Beniamino Galvani >> wrote: >> > This patch adds support for the Fast Ethernet MAC found on Allwinner >> > SoCs, together with a basi

Re: [Qemu-devel] [PATCH] spapr: reset @kvm_vcpu_dirty before starting CPU

2014-01-15 Thread Alexey Kardashevskiy
On 01/15/2014 03:57 PM, Alexey Kardashevskiy wrote: > Normally QEMU kvm_arch_get_registers() reads registers and sets a dirty > flag which prevents further registers reading from KVM till > kvm_arch_put_registers() executes and resets the flag. > > However if we run QEMU with "-S" ("suspended"), t

Re: [Qemu-devel] Secondary VGA passthrough not working, hitting linux kernel's pci_fixup_video

2014-01-15 Thread Sander Eikelenboom
Wednesday, January 15, 2014, 11:10:35 PM, you wrote: > [+cc Jesse, David] > On Wed, Jan 15, 2014 at 12:19 PM, Sander Eikelenboom > wrote: >> I understood there is no bridge for a VGA device in your >> virtual machine. >> Your emulator for the bridge control regi

Re: [Qemu-devel] Secondary VGA passthrough not working, hitting linux kernel's pci_fixup_video

2014-01-15 Thread Michael S. Tsirkin
On Wed, Jan 15, 2014 at 03:10:35PM -0700, Bjorn Helgaas wrote: > [+cc Jesse, David] > > On Wed, Jan 15, 2014 at 12:19 PM, Sander Eikelenboom > wrote: > > >>> >> I understood there is no bridge for a VGA device in your > >>> >> virtual machine. > >>> >> Your emulator for the brid

[Qemu-devel] edit qemu with eclipse

2014-01-15 Thread Herbei Dacian
Hi, Is there any way to edit qemu sources as eclipse projects? I could also edit in another IDE but I'm familiar only with eclipse. Any suggestions? best regards, dacian

Re: [Qemu-devel] [PATCH] block/curl: Implement the libcurl timer callback interface

2014-01-15 Thread Peter Maydell
On 15 January 2014 22:06, Paolo Bonzini wrote: > Il 15/01/2014 18:23, Peter Maydell ha scritto: >> libcurl versions 7.16.0 and later have a timer callback interface which >> must be implemented in order for libcurl to make forward progress (it >> will sometimes rely on being called back on the tim

Re: [Qemu-devel] Secondary VGA passthrough not working, hitting linux kernel's pci_fixup_video

2014-01-15 Thread Bjorn Helgaas
[+cc Jesse, David] On Wed, Jan 15, 2014 at 12:19 PM, Sander Eikelenboom wrote: >>> >> I understood there is no bridge for a VGA device in your virtual >>> >> machine. >>> >> Your emulator for the bridge control register is odd. >>> >>> > That seems beside the point as there's no

Re: [Qemu-devel] [PATCH] vfio: Filter out bogus mappings

2014-01-15 Thread Michael S. Tsirkin
On Wed, Jan 15, 2014 at 12:44:08PM -0700, Alex Williamson wrote: > Since 57271d63 we now see spurious mappings with the upper bits set > if 64bit PCI BARs are sized while enabled. The guest writes a mask > of 0x to the lower BAR to size it, then restores it, then > writes the same mask to

Re: [Qemu-devel] [PATCH] block/curl: Implement the libcurl timer callback interface

2014-01-15 Thread Paolo Bonzini
Il 15/01/2014 18:23, Peter Maydell ha scritto: > libcurl versions 7.16.0 and later have a timer callback interface which > must be implemented in order for libcurl to make forward progress (it > will sometimes rely on being called back on the timeout if there are > no file descriptors registered).

Re: [Qemu-devel] [PATCH] block/curl: Implement the libcurl timer callback interface

2014-01-15 Thread Peter Maydell
On 15 January 2014 21:37, Richard W.M. Jones wrote: > On Wed, Jan 15, 2014 at 05:23:58PM +, Peter Maydell wrote: >> libcurl versions 7.16.0 and later have a timer callback interface which >> must be implemented in order for libcurl to make forward progress (it >> will sometimes rely on being c

Re: [Qemu-devel] Enabling vhost-net cause insane high memory usage.

2014-01-15 Thread Piotr Karbowski
On 01/15/2014 10:36 PM, Piotr Karbowski wrote: Hello, On 01/15/2014 11:03 AM, Michael S. Tsirkin wrote: Could you explain how you measure that exactly? I check the resident memory (RES) of qemu-system-x86_64 proces. Yes, this should not happen. One interesting thing to try would be switc

Re: [Qemu-devel] [PATCH v2 1/2] hw/net: add support for Allwinner EMAC Fast Ethernet controller

2014-01-15 Thread Beniamino Galvani
On Mon, Jan 13, 2014 at 11:15:17PM +1000, Peter Crosthwaite wrote: > On Sat, Jan 11, 2014 at 8:13 PM, Beniamino Galvani > wrote: > > This patch adds support for the Fast Ethernet MAC found on Allwinner > > SoCs, together with a basic emulation of Realtek RTL8201CP PHY. > > > > Since there is no p

Re: [Qemu-devel] Enabling vhost-net cause insane high memory usage.

2014-01-15 Thread Piotr Karbowski
Hello, On 01/15/2014 11:03 AM, Michael S. Tsirkin wrote: Could you explain how you measure that exactly? I check the resident memory (RES) of qemu-system-x86_64 proces. Yes, this should not happen. One interesting thing to try would be switching device type from virtio-net to e1000. This

Re: [Qemu-devel] [PATCH] block/curl: Implement the libcurl timer callback interface

2014-01-15 Thread Richard W.M. Jones
On Wed, Jan 15, 2014 at 05:23:58PM +, Peter Maydell wrote: > libcurl versions 7.16.0 and later have a timer callback interface which > must be implemented in order for libcurl to make forward progress (it > will sometimes rely on being called back on the timeout if there are > no file descripto

[Qemu-devel] [Bug 1269606] [NEW] curl driver (http) always says "No such file or directory"

2014-01-15 Thread Richard Jones
Public bug reported: I have a remote server, on which an http disk image definitely exists. However the qemu curl block driver cannot open it. It always gives the bogus error: CURL: Error opening file: Connection time-out qemu-system-x86_64: -drive file=http://onuma/scratch/cirros-0.3.1-x86_64-

Re: [Qemu-devel] [PATCH] gdbstub: allow byte swapping for reading/writing registers

2014-01-15 Thread Ulrich Weigand
Alexander Graf wrote on 14.01.2014 23:40:20: > On 14.01.2014, at 23:06, Thomas Falcon wrote: > > > This patch allows registers to be properly read from and written to > > when using the gdbstub to debug a ppc guest running in little > > endian mode. It accomplishes this goal by byte swapping the

Re: [Qemu-devel] [V7 PATCH 15/18] target-ppc: Move To/From VSR Instructions

2014-01-15 Thread Richard Henderson
On 01/15/2014 06:10 AM, Tom Musta wrote: > +MV_VSRW(mfvsrwz, ext32u_i64, trunc_i64_tl, cpu_gpr[rA(ctx->opcode)], \ > +cpu_vsrh(xS(ctx->opcode))) > +MV_VSRW(mtvsrwa, extu_tl_i64, ext32s_i64, cpu_vsrh(xT(ctx->opcode)), \ > +cpu_gpr[rA(ctx->opcode)]) > +MV_VSRW(mtvsrwz, extu_tl_i64, ex

Re: [Qemu-devel] [V7 PATCH 18/18] target-ppc: Scalar Non-Signalling Conversions

2014-01-15 Thread Richard Henderson
On 01/15/2014 06:10 AM, Tom Musta wrote: > This patch adds the non-signalling scalar conversion instructions: > > - VSX Scalar Convert Single Precision to Double Precision > Non-Signalling (xscvspdpn) > - VSX Scalar Convert Double Precision to Single Precision > Non-Signalling (xscvdps

Re: [Qemu-devel] [V7 PATCH 17/18] target-ppc: Scalar Round to Single Precision

2014-01-15 Thread Richard Henderson
On 01/15/2014 06:10 AM, Tom Musta wrote: > This patch adds the VSX Scalar Round to Single Precision (xsrsp) > instruction. > > Signed-off-by: Tom Musta > --- > V6: New. > > V7: Changed signature of helper per Richard Henderson's review. > > target-ppc/fpu_helper.c | 11 +++ > target-

Re: [Qemu-devel] [V7 PATCH 16/18] target-ppc: Floating Merge Word Instructions

2014-01-15 Thread Richard Henderson
On 01/15/2014 06:10 AM, Tom Musta wrote: > This patch adds the Floating Merge Even Word (fmrgew) and Floating > Merge Odd Word (fmrgow) instructions. > > Signed-off-by: Tom Musta > --- > V6: New. > > V7: Optimized fmrgow to better use deposit (per Richard Henderson's > review). > > target-ppc/

Re: [Qemu-devel] [V6 PATCH 15/18] target-ppc: Move To/From VSR Instructions

2014-01-15 Thread Richard Henderson
On 01/14/2014 06:14 AM, Tom Musta wrote: > However, the word versions are a bit more tricky. The VSR operand is always > an i64. However, the GPR operand is either an i32 (on 32-bit implementations) > or a part of an i64. I could not find single TCG operations to handle > these cases. Specifica

Re: [Qemu-devel] [PATCH v2 0/2] vfio: Warn on failure to read device rom

2014-01-15 Thread Alex Williamson
On Wed, 2014-01-15 at 15:38 +0530, Bandan Das wrote: > Minor changes to print a message on the monitor > console in case of a rom read failure. Please see individual > patches for more details. > > Bandan Das (2): > vfio: warn if host device rom can't be read > vfio: Do not reattempt a failed

[Qemu-devel] [PATCH] vfio-pci: Fail initfn on DMA mapping errors

2014-01-15 Thread Alex Williamson
The vfio-pci initfn will currently succeed even if DMA mappings fail. A typical reason for failure is if the user does not have sufficient privilege to lock all the memory for the guest. In this case, the device gets attached, but can only access a portion of guest memory and is extremely unlikely

[Qemu-devel] [PATCH] vfio: Filter out bogus mappings

2014-01-15 Thread Alex Williamson
Since 57271d63 we now see spurious mappings with the upper bits set if 64bit PCI BARs are sized while enabled. The guest writes a mask of 0x to the lower BAR to size it, then restores it, then writes the same mask to the upper BAR resulting in a spurious BAR mapping into the last 4G of the

[Qemu-devel] [PATCH 1/2] seccomp: add mkdir() and fchmod() to the whitelist

2014-01-15 Thread Paul Moore
The PulseAudio library attempts to do a mkdir(2) and fchmod(2) on "/run/user//pulse" which is currently blocked by the syscall filter; this patch adds the two missing syscalls to the whitelist. You can reproduce this problem with the following command: # qemu -monitor stdio -device intel-hda -dev

[Qemu-devel] [PATCH 0/2] QEMU/seccomp fixes for PulseAudio

2014-01-15 Thread Paul Moore
It turns out we need to add some additional syscalls to QEMU to make PulseAudio happy. Two minor patches follow ... --- Paul Moore (2): seccomp: add mkdir() and fchmod() to the whitelist seccomp: add some basic shared memory syscalls to the whitelist qemu-seccomp.c |7 ++-

[Qemu-devel] [PATCH 2/2] seccomp: add some basic shared memory syscalls to the whitelist

2014-01-15 Thread Paul Moore
PulseAudio requires the use of shared memory so add shmget(), shmat(), and shmdt() to the syscall whitelist. Reported-by: xu...@redhat.com Signed-off-by: Paul Moore --- qemu-seccomp.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qemu-seccomp.c b/qemu-seccomp.c index

Re: [Qemu-devel] [Qemu-trivial] [PATCH 0/3] Fix networking for s390x-user

2014-01-15 Thread Michael Tokarev
11.01.2014 13:34, pavel.zbits...@gmail.com wrote: > Pavel Zbitskiy (3): > linux-user: fixed s390x clone() argument order > linux-user: fixed getsockopt() optlen > linux-user: fixed recvfrom() addrlen Thanks, applied all 3 to the trivial-patches queue. /mjt

Re: [Qemu-devel] [Qemu-trivial] [PATCH 2/3] linux-user: fixed getsockopt() optlen

2014-01-15 Thread Michael Tokarev
12.01.2014 23:07, Peter Maydell wrote: > On 11 January 2014 09:34, wrote: >> From: Pavel Zbitskiy >> >> optlen parameter of getsockopt() of type socklen_t* was read into >> variable of type socklen_t, that caused zeroing out of upper 4 bytes >> when running s390x on top of x86_64. This patch cha

Re: [Qemu-devel] [PATCH v16 2/9] rules.mak: allow per object cflags and libs

2014-01-15 Thread Peter Maydell
On 15 January 2014 08:48, Fam Zheng wrote: > Adds extract-libs in LINK to expand any "per object libs", the syntax to > define > such a libs options is like: > > foo.o-libs := $(CURL_LIBS) > > in block/Makefile.objs. > > Similarly, > > foo.o-cflags := $(FOO_CFLAGS) > > is also sup

Re: [Qemu-devel] Secondary VGA passthrough not working, hitting linux kernel's pci_fixup_video

2014-01-15 Thread Sander Eikelenboom
Wednesday, January 15, 2014, 8:03:15 PM, you wrote: > On Wed, Jan 15, 2014 at 02:14:49PM +0100, Sander Eikelenboom wrote: >> >> Wednesday, January 15, 2014, 12:58:20 PM, you wrote: >> >> > On Wed, Jan 15, 2014 at 11:37:29AM +0100, Sander Eikelenboom wrote: >> >> Hi Michael / Anthony, >> >> >>

Re: [Qemu-devel] Secondary VGA passthrough not working, hitting linux kernel's pci_fixup_video

2014-01-15 Thread Michael S. Tsirkin
On Wed, Jan 15, 2014 at 02:14:49PM +0100, Sander Eikelenboom wrote: > > Wednesday, January 15, 2014, 12:58:20 PM, you wrote: > > > On Wed, Jan 15, 2014 at 11:37:29AM +0100, Sander Eikelenboom wrote: > >> Hi Michael / Anthony, > >> > >> I'm trying to do secondary VGA passthrough with on Xen for s

Re: [Qemu-devel] [PATCH 10/10] target-arm: A64: Add SIMD scalar copy instructions

2014-01-15 Thread Peter Maydell
On 15 January 2014 15:10, Claudio Fontana wrote: > Hello Peter, > > a missing return here I think: Thanks. I'd already queued this set onto target-arm.next, so I've just fixed this nit there. -- PMM

Re: [Qemu-devel] [PATCH] gdbstub: allow byte swapping for reading/writing registers

2014-01-15 Thread Alexander Graf
On 15.01.2014, at 18:29, Ulrich Weigand wrote: > Alexander Graf wrote on 14.01.2014 23:40:20: >> On 14.01.2014, at 23:06, Thomas Falcon > wrote: >> >>> This patch allows registers to be properly read from and written to >>> when using the gdbstub to debug a ppc guest running in little >>> end

[Qemu-devel] [PATCH] block/curl: Implement the libcurl timer callback interface

2014-01-15 Thread Peter Maydell
libcurl versions 7.16.0 and later have a timer callback interface which must be implemented in order for libcurl to make forward progress (it will sometimes rely on being called back on the timeout if there are no file descriptors registered). Implement the callback, and use a QEMU AIO timer to ens

Re: [Qemu-devel] [PULL 36/42] qapi: QMP interface for blkdebug and blkverify

2014-01-15 Thread Paolo Bonzini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 15/01/2014 16:19, Eric Blake ha scritto: >> +# +# @errno: #optional error identifier (errno) to be >> returned; defaults to +# EIO > > errno is not a portable. The values of errno on one machine may > not match the values of er

Re: [Qemu-devel] [PATCH] virtio-balloon: don't hardcode config size value

2014-01-15 Thread Luiz Capitulino
On Wed, 15 Jan 2014 20:10:31 +0400 Michael Tokarev wrote: > 09.01.2014 18:58, Luiz Capitulino wrote: > > Use sizeof(strucy virtio_balloon_config) instead. > > Thanks, applied to the trivial patches queue (with the spelling fix). Thanks Michael.

Re: [Qemu-devel] [Qemu-trivial] [PATCH] ide: cmd_exec_dev_diagnostic() always set error register to 0x01

2014-01-15 Thread Michael Tokarev
25.12.2013 18:17, David du Colombier wrote: > This notably fix IDE CD probing on the Plan 9 operating system, > which rely on the error register set by the Execute Device > Diagnostic command to detect drive configurations. While this is a one-liner, I'm not sure it is "trivial enough", just becau

Re: [Qemu-devel] [PATCH v16 0/9] Shared library module support

2014-01-15 Thread Paolo Bonzini
Il 15/01/2014 16:40, Peter Maydell ha scritto: > Further hacking suggests this is probably because we're not > implementing the curl timeout callback, which curl uses to say > "call me back in X milliseconds, even if there's no filedescriptor > action". It looks like the first time or two around cu

Re: [Qemu-devel] [PATCH] virtio-balloon: don't hardcode config size value

2014-01-15 Thread Michael Tokarev
09.01.2014 18:58, Luiz Capitulino wrote: > Use sizeof(strucy virtio_balloon_config) instead. Thanks, applied to the trivial patches queue (with the spelling fix). /mjt

Re: [Qemu-devel] [Seabios] [PATCH v2] seabios: restore piix pm config registers after resume

2014-01-15 Thread Kevin O'Connor
On Wed, Jan 15, 2014 at 02:24:40PM +0200, Marcel Apfelbaum wrote: > On Wed, 2014-01-15 at 14:20 +0200, Marcel Apfelbaum wrote: > > On resume, the OS queries the power management event that > > caused it. In order to complete this task, it executes some > > reads to the piix pm io space. This all ha

Re: [Qemu-devel] [PATCH v16 0/9] Shared library module support

2014-01-15 Thread Peter Maydell
On 15 January 2014 15:29, Peter Maydell wrote: > I threw some debug printouts in, and it looks like libcurl > is just never calling the curl_sock_cb, so we never register > the fd with QEMU's event loop, and so nothing happens once > the first read AIO has commenced. Further hacking suggests this

Re: [Qemu-devel] [PATCH v16 0/9] Shared library module support

2014-01-15 Thread Peter Maydell
On 15 January 2014 14:51, Paolo Bonzini wrote: > Il 15/01/2014 15:40, Peter Maydell ha scritto: (a non module build works, or at least sits there without giving an error message; I didn't feel like sitting there without a progress bar while it downloaded a whole ISO image, so I ^C'

Re: [Qemu-devel] [PULL 36/42] qapi: QMP interface for blkdebug and blkverify

2014-01-15 Thread Eric Blake
On 01/15/2014 03:22 AM, Kevin Wolf wrote: > From: Max Reitz > > Add structures to support blkdebug and blkverify in blockdev-add. > > Signed-off-by: Max Reitz > Signed-off-by: Kevin Wolf > --- > qapi-schema.json | 113 > +-- > 1 file change

Re: [Qemu-devel] [PATCH 10/10] target-arm: A64: Add SIMD scalar copy instructions

2014-01-15 Thread Claudio Fontana
Hello Peter, a missing return here I think: On 10.01.2014 18:12, Peter Maydell wrote: > Add support for the SIMD scalar copy instruction group (C3.6.7), > which consists of the single instruction DUP (element, scalar). > > Signed-off-by: Peter Maydell > --- > target-arm/translate-a64.c | 42 ++

[Qemu-devel] [V7 PATCH 06/18] target-ppc: VSX Stage 4: Add xsaddsp and xssubsp

2014-01-15 Thread Tom Musta
This patch adds the VSX Scalar Add Single-Precision (xsaddsp) and VSX Scalar Subtract Single-Precision (xssubsp) instructions. The existing VSX_ADD_SUB macro is modified to support the rounding of the (intermediate) result to single-precision. Signed-off-by: Tom Musta Reviewed-by: Richard Hender

Re: [Qemu-devel] [Seabios] [PATCH v2] seabios: restore piix pm config registers after resume

2014-01-15 Thread Michael S. Tsirkin
On Wed, Jan 15, 2014 at 02:20:06PM +0200, Marcel Apfelbaum wrote: > On resume, the OS queries the power management event that > caused it. In order to complete this task, it executes some > reads to the piix pm io space. This all happens before the > OS has a chance to restore the PCI config space

[Qemu-devel] [V7 PATCH 07/18] target-ppc: VSX Stage 4: Add xsmulsp

2014-01-15 Thread Tom Musta
This patch adds the VSX Scalar Multiply Single-Precision (xsmulsp) instruction. The existing VSX_MUL macro is modified to support rounding of the intermediate result to single precision. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- V2: Updated conversion to single precision. ta

Re: [Qemu-devel] [PATCH v16 0/9] Shared library module support

2014-01-15 Thread Paolo Bonzini
Il 15/01/2014 15:40, Peter Maydell ha scritto: > Module loading should IMHO work with similar semantics > to the data dir we use for BIOS file loading: one of the places checked > is relative to the executable path. Makes sense. >>> (a non module build works, or at least sits there without giving

[Qemu-devel] [V7 PATCH 08/18] target-ppc: VSX Stage 4: Add xsdivsp

2014-01-15 Thread Tom Musta
This patch adds the VSX Scalar Divide Single Precision (xsdivsp) instruction. The existing VSX_DIV macro is modified to support rounding of the intermediate double precision result to single precision. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- V2: Updated conversion to single

Re: [Qemu-devel] [PATCH v6 0/8] Vhost and vhost-net support for userspace based backends

2014-01-15 Thread Michael S. Tsirkin
On Wed, Jan 15, 2014 at 01:50:47PM +0100, Antonios Motakis wrote: > > > > On Wed, Jan 15, 2014 at 10:07 AM, Michael S. Tsirkin wrote: > > On Tue, Jan 14, 2014 at 07:13:43PM +0100, Antonios Motakis wrote: > > > > > > > > On Tue, Jan 14, 2014 at 12:33 PM, Michael S. Tsirkin

Re: [Qemu-devel] [PATCH v16 0/9] Shared library module support

2014-01-15 Thread Peter Maydell
On 15 January 2014 14:36, Paolo Bonzini wrote: > Il 15/01/2014 15:20, Peter Maydell ha scritto: >>> > >>> > On RHEL6 I tried "qemu-system-x86_64 -cdrom >>> > http://boot.ipxe.org/ipxe.iso"; and it worked, but it failed on Fedora. >>> > I don't know if it's a QEMU or curl bug. >> Doesn't work on Ma

Re: [Qemu-devel] [PATCH v16 0/9] Shared library module support

2014-01-15 Thread Paolo Bonzini
Il 15/01/2014 15:20, Peter Maydell ha scritto: >> > >> > On RHEL6 I tried "qemu-system-x86_64 -cdrom >> > http://boot.ipxe.org/ipxe.iso"; and it worked, but it failed on Fedora. >> > I don't know if it's a QEMU or curl bug. > Doesn't work on MacOSX either: it says > qemu-system-x86_64: -cdrom http:

Re: [Qemu-devel] [RFC 1/3] target-i386: moving registers of vmstate from cpu_exec_init() to x86_cpu_realizefn()

2014-01-15 Thread Igor Mammedov
On Wed, 15 Jan 2014 20:24:01 +0800 Chen Fan wrote: > On Tue, 2014-01-14 at 11:40 +0100, Igor Mammedov wrote: > > On Tue, 14 Jan 2014 17:27:20 +0800 > > Chen Fan wrote: > > > > > the intend of this patch is to register cpu vmstates with apic id instead > > > of cpu > > > index, due to the prope

Re: [Qemu-devel] troubleshooting live migration

2014-01-15 Thread Marcus Sorensen
I tried -no-hpet, was still able to replicate the 'lapic' issue. I find it interesting that I can only trigger it if the vm has been running awhile. On Tue, Jan 14, 2014 at 11:08 PM, Marcus Sorensen wrote: > Ok, more information. The console spews 'lapic increasing min_delta_ns > to #

[Qemu-devel] [V7 PATCH 03/18] target-ppc: VSX Stage 4: Add lxsiwax, lxsiwzx and lxsspx

2014-01-15 Thread Tom Musta
This patch adds the scalar load instructions introduced in ISA V2.07: - Load VSX Scalar as Integer Word Algebraic Indexd (lxsiwax) - Load VSX Scalar as Integer Word and Zero Indexed (lxsiwzx) - Load VSX Scalar Single-Precision Indexed (lxsspx) Signed-off-by: Tom Musta Reviewed-by: Richard

[Qemu-devel] [V7 PATCH 18/18] target-ppc: Scalar Non-Signalling Conversions

2014-01-15 Thread Tom Musta
This patch adds the non-signalling scalar conversion instructions: - VSX Scalar Convert Single Precision to Double Precision Non-Signalling (xscvspdpn) - VSX Scalar Convert Double Precision to Single Precision Non-Signalling (xscvdpspn) Signed-off-by: Tom Musta --- V6: New. V7: Adju

Re: [Qemu-devel] [PATCH v16 0/9] Shared library module support

2014-01-15 Thread Paolo Bonzini
Il 15/01/2014 14:11, Peter Maydell ha scritto: > On 15 January 2014 08:48, Fam Zheng wrote: >> A few changes on Paolo's v15, to fix MacOSX build (in fact fix Linux as well) >> and get rid of $RANDOM: > > Thanks. I applied a local patch to use shasum, and it seems > to build OK with modules enable

Re: [Qemu-devel] [PATCH v16 0/9] Shared library module support

2014-01-15 Thread Peter Maydell
On 15 January 2014 14:11, Paolo Bonzini wrote: > Il 15/01/2014 14:11, Peter Maydell ha scritto: >> On 15 January 2014 08:48, Fam Zheng wrote: >>> A few changes on Paolo's v15, to fix MacOSX build (in fact fix Linux as >>> well) >>> and get rid of $RANDOM: >> >> Thanks. I applied a local patch to

Re: [Qemu-devel] [PATCH build-fix v1 1/1] error: Don't use error_report() for assertion msgs.

2014-01-15 Thread Luiz Capitulino
On Tue, 14 Jan 2014 18:29:50 -0800 Peter Crosthwaite wrote: > Use fprintf(stderr instead. This removes dependency of libqemuutil.a > on the monitor. > > We can further justify this change, in that this code path should only > trigger under a fatal error condition. fprintf-stderr is probably the

[Qemu-devel] [V7 PATCH 12/18] target-ppc: VSX Stage 4: Add Scalar SP Fused Multiply-Adds

2014-01-15 Thread Tom Musta
This patch adds the Single Precision VSX Scalar Fused Multiply-Add instructions: xsmaddasp, xsmaddmsp, xssubasp, xssubmsp, xsnmaddasp, xsnmaddmsp, xsnmsubasp, xsnmsubmsp. The existing VSX_MADD() macro is modified to support rounding of the intermediate double precision result to single precision.

[Qemu-devel] [V7 PATCH 14/18] target-ppc: VSX Stage 4: Add xxleqv, xxlnand and xxlorc

2014-01-15 Thread Tom Musta
This patchs adds the VSX Logical instructions that are new with ISA V2.07: - VSX Logical Equivalence (xxleqv) - VSX Logical NAND (xxlnand) - VSX Logical ORC (xxlorc) Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- V5: Changes to address tcg-debug compilation errors. target-p

[Qemu-devel] [V7 PATCH 11/18] target-ppc: VSX Stage 4: add xsrsqrtesp

2014-01-15 Thread Tom Musta
This patch adds the VSX Scalar Reciprocal Square Root Estimate Single Precision (xsrsqrtesp) instruction. The existing VSX_RSQRTE() macro is modified to support rounding of the intermediate double-precision result to single precision. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson ---

[Qemu-devel] [V7 PATCH 13/18] target-ppc: VSX Stage 4: Add xscvsxdsp and xscvuxdsp

2014-01-15 Thread Tom Musta
This patch adds the VSX Scalar Convert Unsigned Integer Doubleword to Floating Point Format and Round to Single Precision (xscvuxdsp) and VSX Scalar Convert Signed Integer Douglbeword to Floating Point Format and Round to Single Precision (xscvsxdsp) instructions. The existing integer to floating

[Qemu-devel] [V7 PATCH 10/18] target-ppc: VSX Stage 4: Add xssqrtsp

2014-01-15 Thread Tom Musta
This patch adds the VSX Scalar Square Root Single Precision (xssqrtsp) instruction. The existing VSX_SQRT() macro is modified to support rounding of the intermediate double-precision result to single-precision. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- V2: Updated conversion t

[Qemu-devel] [V7 PATCH 09/18] target-ppc: VSX Stage 4: Add xsresp

2014-01-15 Thread Tom Musta
This patch adds the VSX Scalar Reciprocal Estimate Single Precision (xsresp) instruction. The existing VSX_RE macro is modified to support rounding of the intermediate double precision result to single precision. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- V2: Updated conversion

[Qemu-devel] [V7 PATCH 17/18] target-ppc: Scalar Round to Single Precision

2014-01-15 Thread Tom Musta
This patch adds the VSX Scalar Round to Single Precision (xsrsp) instruction. Signed-off-by: Tom Musta --- V6: New. V7: Changed signature of helper per Richard Henderson's review. target-ppc/fpu_helper.c | 11 +++ target-ppc/helper.h |1 + target-ppc/translate.c | 17 +

[Qemu-devel] [V7 PATCH 16/18] target-ppc: Floating Merge Word Instructions

2014-01-15 Thread Tom Musta
This patch adds the Floating Merge Even Word (fmrgew) and Floating Merge Odd Word (fmrgow) instructions. Signed-off-by: Tom Musta --- V6: New. V7: Optimized fmrgow to better use deposit (per Richard Henderson's review). target-ppc/translate.c | 28 1 files change

[Qemu-devel] [V7 PATCH 05/18] target-ppc: VSX Stage 4: Add stxsiwx and stxsspx

2014-01-15 Thread Tom Musta
This patch adds two store scalar instructions: - Store VSX Scalar as Integer Word Indexed (stxsiwx) - Store VSX Scalar Single-Precision Indexed (stxsspx) Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- V5: Updated to address tcg-debug compliation errors. target-ppc/translate.c

[Qemu-devel] [V7 PATCH 04/18] target-ppc: VSX Stage 4: Refactor stxsdx

2014-01-15 Thread Tom Musta
This patch refactors the stxsdx instruction. Reusable code is extracted into a macro which will be used in subsequent patches in this series. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- target-ppc/translate.c | 27 +++ 1 files changed, 15 insertions(+)

[Qemu-devel] [V7 PATCH 15/18] target-ppc: Move To/From VSR Instructions

2014-01-15 Thread Tom Musta
This patch adds the Move To VSR instructions (mfvsrd, mfvsrwz) and Move From VSR instructions (mtvsrd, mtvsrwa, mtvsrwz). These instructions are unusual in that they are considered a floating point instruction if the indexed VSR is in the first half of the array (0-31) but they are considered vect

[Qemu-devel] [V7 PATCH 01/18] target-ppc: VSX Stage 4: Add VSX 2.07 Flag

2014-01-15 Thread Tom Musta
This patch adds a flag to identify those VSX instructions that are new to Power ISA V2.07. The flag is added to the Power 8 processor initialization so that the P8 models understand how to decode and emulate instructions in this category. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson

[Qemu-devel] [V7 PATCH 02/18] target-ppc: VSX Stage 4: Refactor lxsdx

2014-01-15 Thread Tom Musta
This patch refactors the lxsdx generator. Resuable code is isolated into a macro. The macro will be used in subsequent patches in this series to implement other scalar load instructions. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- target-ppc/translate.c | 31 +

[Qemu-devel] [V7 PATCH 00/18] target-ppc: VSX Stage 4

2014-01-15 Thread Tom Musta
This is the fourth and final series of patches that add emulation support to QEMU for the PowerPC Vector Scalar Extension (VSX). This series adds the instructions that were newly introduced with Power ISA V2.07. This includes 3 scalar load instructions, 2 scalar store instructions, 7 standard sin

Re: [Qemu-devel] Fix make check breakage (was [PULL 00/14] QMP queue)

2014-01-15 Thread Markus Armbruster
Peter Crosthwaite writes: > On Wed, Jan 15, 2014 at 7:55 PM, Markus Armbruster wrote: >> Luiz Capitulino writes: >> >>> On Tue, 14 Jan 2014 17:44:51 +0100 >>> Kevin Wolf wrote: >>> Am 14.01.2014 um 04:38 hat Edgar E. Iglesias geschrieben: > On Tue, Jan 14, 2014 at 09:27:10AM +1000, P

Re: [Qemu-devel] Secondary VGA passthrough not working, hitting linux kernel's pci_fixup_video

2014-01-15 Thread Sander Eikelenboom
Wednesday, January 15, 2014, 12:58:20 PM, you wrote: > On Wed, Jan 15, 2014 at 11:37:29AM +0100, Sander Eikelenboom wrote: >> Hi Michael / Anthony, >> >> I'm trying to do secondary VGA passthrough with on Xen for some time. The >> problem was that the driver >> would get the rom of the emulated

Re: [Qemu-devel] [PATCH v16 0/9] Shared library module support

2014-01-15 Thread Peter Maydell
On 15 January 2014 08:48, Fam Zheng wrote: > A few changes on Paolo's v15, to fix MacOSX build (in fact fix Linux as well) > and get rid of $RANDOM: Thanks. I applied a local patch to use shasum, and it seems to build OK with modules enabled. Is there a simple test I can do that will exercise a c

Re: [Qemu-devel] [PATCH v6 0/8] Vhost and vhost-net support for userspace based backends

2014-01-15 Thread Antonios Motakis
On Wed, Jan 15, 2014 at 10:07 AM, Michael S. Tsirkin wrote: > On Tue, Jan 14, 2014 at 07:13:43PM +0100, Antonios Motakis wrote: > > > > > > > > On Tue, Jan 14, 2014 at 12:33 PM, Michael S. Tsirkin > wrote: > > > > On Mon, Jan 13, 2014 at 03:25:11PM +0100, Antonios Motakis wrote: > > > In

Re: [Qemu-devel] [PATCH v2 1/2] hw/net: add support for Allwinner EMAC Fast Ethernet controller

2014-01-15 Thread Peter Crosthwaite
On Tue, Jan 14, 2014 at 3:19 PM, Stefan Hajnoczi wrote: > On Mon, Jan 13, 2014 at 11:16:37PM +1000, Peter Crosthwaite wrote: >> On Mon, Jan 13, 2014 at 11:15 PM, Peter Crosthwaite >> wrote: >> > On Sat, Jan 11, 2014 at 8:13 PM, Beniamino Galvani >> > wrote: >> >> +} else { ... >> >> +static

  1   2   3   >