Re: [Qemu-devel] [PATCH v2] target-arm: kvm: Differentiate registers based on write-back levels

2015-07-17 Thread Peter Maydell
On 16 July 2015 at 12:34, Christoffer Dall christoffer.d...@linaro.org wrote: Some registers like the CNTVCT register should only be written to the kernel as part of machine initialization or on vmload operations, but never during runtime, as this can potentially make time go backwards or

[Qemu-devel] [PULL 6/7] ipxe: don't override GITVERSION

2015-07-17 Thread Gerd Hoffmann
We had build problems due to the git version checking in the ipxe build system in the past. Don't remember the details, but the problem seems to be gone now, so lets remove the workaround. Signed-off-by: Gerd Hoffmann kra...@redhat.com [ most likely ipxe commit

[Qemu-devel] [PULL 3/7] ipxe: rm local config in cleanup

2015-07-17 Thread Gerd Hoffmann
ipxe build now generates empty local header files in case they are not present. Let's remove them on cleanup to make sure we store a fresh copy on the next build. Signed-off-by: Gerd Hoffmann kra...@redhat.com Acked-by: Laszlo Ersek ler...@redhat.com --- roms/Makefile | 1 + 1 file changed, 1

[Qemu-devel] [PULL 4/7] ipxe: disable load file protocol

2015-07-17 Thread Gerd Hoffmann
Activate the opt-out added by one not-upstream ipxe patch: [efi] make load file protocol optional Signed-off-by: Gerd Hoffmann kra...@redhat.com Reviewed-by: Laszlo Ersek ler...@redhat.com --- roms/config.ipxe.general.h | 1 + 1 file changed, 1 insertion(+) diff --git

[Qemu-devel] [PULL for-2.4 0/7] update ipxe roms, fix efi support

2015-07-17 Thread Gerd Hoffmann
) are available in the git repository at: git://git.kraxel.org/qemu tags/pull-ipxe-20150717-1 for you to fetch changes up to 4f0c601b71e53a7d225a1913b784242400788991: ipxe: update binaries (2015-07-16 17:39:12 +0200) update ipxe roms, fix

[Qemu-devel] [PULL 5/7] ipxe: add qemu branding

2015-07-17 Thread Gerd Hoffmann
Apply qemu-project.org branding, so the official builds can easily be identified in the banner. Signed-off-by: Gerd Hoffmann kra...@redhat.com Acked-by: Laszlo Ersek ler...@redhat.com --- roms/Makefile | 4 ++-- roms/config.ipxe.branding.h | 2 ++ 2 files changed, 4 insertions(+),

[Qemu-devel] [PULL 7/7] ipxe: update binaries

2015-07-17 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com Reviewed-by: Laszlo Ersek ler...@redhat.com --- pc-bios/efi-e1000.rom| Bin 197120 - 192512 bytes pc-bios/efi-eepro100.rom | Bin 197632 - 192512 bytes pc-bios/efi-ne2k_pci.rom | Bin 195584 - 190976 bytes pc-bios/efi-pcnet.rom| Bin 195584 -

[Qemu-devel] [PULL 2/7] ipxe: update to 87981bb (qemu)

2015-07-17 Thread Gerd Hoffmann
Add two patches we've been struggling to get upstream. They are available from git://git.qemu.org/ipxe.git qemu git shortlog Gerd Hoffmann (1): [efi] make load file protocol optional Laszlo Ersek (1): efi_snp: improve compliance with the EFI_SIMPLE_NETWORK_PROTOCOL spec

[Qemu-devel] [PULL 1/7] ipxe: update from 35c53797 to 24112d9 (upstream/master)

2015-07-17 Thread Gerd Hoffmann
git shortlog Alex Williamson (1): [dhcp] Extract timing parameters out to config/dhcp.h Bernd Wiebelt (1): [tg3] Add support for BCM57766 Christian Hesse (3): [intel] Add PCI device IDs for Intel I218-LM and I218-V [build] Add missing const qualifiers

[Qemu-devel] [RFC PATCH V3 0/3] Multithread TCG async_safe_work part.

2015-07-17 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This is the async_safe_work introduction bit of the Multithread TCG work. Rebased on current upstream (6169b60285fe1ff730d840a49527e721bfb30899). (Currently untested as I need to rebase MTTCG first.) It can be cloned here:

[Qemu-devel] [RFC PATCH V3 1/3] cpus: protect queued_work_* with work_mutex.

2015-07-17 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This protects queued_work_* used by async_run_on_cpu, run_on_cpu and flush_queued_work with a new lock (work_mutex) to prevent multiple (concurrent) access. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Changes V1 - V2: * Unlock the

[Qemu-devel] [RFC PATCH V3 2/3] cpus: add tcg_exec_flag.

2015-07-17 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This flag indicates the state of the VCPU thread: * 0 if the VCPU is allowed to execute code. * 1 if the VCPU is currently executing code. * -1 if the VCPU is not allowed to execute code. This allows to atomically check and run safe work or

[Qemu-devel] [RFC PATCH V3 3/3] cpus: introduce async_run_safe_work_on_cpu.

2015-07-17 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com We already had async_run_on_cpu but we need all VCPUs outside their execution loop to execute some tb_flush/invalidate task: async_run_on_cpu_safe schedule a work on a VCPU but the work start when no more VCPUs are executing code. When a safe work

[Qemu-devel] [PULL 4/4] Revert xhci: set timer to retry xfers

2015-07-17 Thread Gerd Hoffmann
This reverts commit 4e8cfbe1143d8384387595b500212d7a7f11aeae. We should not poll via timer, and with ccid being fixed to properly notify us about pending transfers we don't have to. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/hcd-xhci.c | 2 -- 1 file changed, 2 deletions(-) diff

Re: [Qemu-devel] vhost-user memory regions.

2015-07-17 Thread Marc-André Lureau
Hi Naredula On Mon, Jul 13, 2015 at 10:35 AM, Naredula Janardhana Reddy naredula.j...@gmail.com wrote: In the QEMU 2.3.0 , The memory regions published to user space application is limited address space, not the complete memory regions of quest vm, due to this , the user level app cannot

[Qemu-devel] [FIX PATCH] pc-dimm: Fail pc-dimm realization for invalid nodes in non-NUMA configuration

2015-07-17 Thread Bharata B Rao
pc_dimm_realize() validates the NUMA node to which memory hotplug is being performed only in case of NUMA configuration. Include a check to fail invalid nodes in case of non-NUMA configuration too. Signed-off-by: Bharata B Rao bhar...@linux.vnet.ibm.com --- hw/mem/pc-dimm.c | 5 +++-- 1 file

[Qemu-devel] [RFC PATCH 1/2] spapr: add dumpdtb support

2015-07-17 Thread Andrew Jones
Signed-off-by: Andrew Jones drjo...@redhat.com --- hw/ppc/spapr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index a6f19473cf278..c1cbf3387ae0c 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -30,6 +30,7 @@ #include hw/fw-path-provider.h #include

Re: [Qemu-devel] [RFC v3 06/13] target-i386: translate: implement qemu_ldlink and qemu_stcond ops

2015-07-17 Thread Alex Bennée
Alvise Rigo a.r...@virtualopensystems.com writes: Implement strex and ldrex instruction relying on TCG's qemu_ldlink and qemu_stcond. For the time being only 32bit configurations are supported. Suggested-by: Jani Kokkonen jani.kokko...@huawei.com Suggested-by: Claudio Fontana

[Qemu-devel] [PULL 3/4] usb-ccid: add missing wakeup calls

2015-07-17 Thread Gerd Hoffmann
Properly notify the host adapter that we have data pending, so it doesn't has to poll us. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/dev-smartcard-reader.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c index

[Qemu-devel] [PULL for-2.4 0/4] usb: fixes for 2.4 (ccid, xhci and usb-host)

2015-07-17 Thread Gerd Hoffmann
://git.kraxel.org/qemu tags/pull-usb-20150717-1 for you to fetch changes up to 92fdfa4bef9c92addcc009dd3e0131172b4fdc78: Revert xhci: set timer to retry xfers (2015-07-17 13:20:53 +0200) usb: fixes for 2.4 (ccid, xhci and usb-host

[Qemu-devel] [PULL 2/4] usb-ccid: fix 61b4887b41b270bc837ead57bc502d904af023bb

2015-07-17 Thread Gerd Hoffmann
QOMification dropped the parent device lookup, fix it. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/dev-smartcard-reader.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c index

[Qemu-devel] [RFC PATCH 2/2] spapr: -kernel: allow linking with specified addr

2015-07-17 Thread Andrew Jones
I've started playing with adding ppc support to kvm-unit-tests, using spapr for the machine model. I wanted to link the unit test at 0x40 to match qemu's load address, making the unit test startup code simpler, but ended up with 0x80 instead, due to how translate_kernel_address works. The

[Qemu-devel] [RFC PATCH 0/2] spapr: changes for kvm-unit-tests

2015-07-17 Thread Andrew Jones
I've started playing with adding ppc support to kvm-unit-tests, using spapr for the machine model. Here are a couple patches to spapr I've made. Thanks, drew Andrew Jones (2): spapr: add dumpdtb support spapr: -kernel: allow linking with specified addr hw/ppc/spapr.c | 5 + 1 file

Re: [Qemu-devel] [PULL for-2.4 0/4] usb: fixes for 2.4 (ccid, xhci and usb-host)

2015-07-17 Thread Peter Maydell
-16 10:40:23 +0100) are available in the git repository at: git://git.kraxel.org/qemu tags/pull-usb-20150717-1 for you to fetch changes up to 92fdfa4bef9c92addcc009dd3e0131172b4fdc78: Revert xhci: set timer to retry xfers (2015-07-17 13:20:53 +0200

Re: [Qemu-devel] [RFC v3 05/13] target-arm: translate: implement qemu_ldlink and qemu_stcond ops

2015-07-17 Thread Alex Bennée
Alvise Rigo a.r...@virtualopensystems.com writes: Implement strex and ldrex instruction relying on TCG's qemu_ldlink and qemu_stcond. For the time being only the 32bit instructions are supported. Suggested-by: Jani Kokkonen jani.kokko...@huawei.com Suggested-by: Claudio Fontana

Re: [Qemu-devel] [PATCH v2 0/3] AioContext: ctx-dispatching is dead, all hail ctx-notify_me

2015-07-17 Thread Paolo Bonzini
On 17/07/2015 15:28, Marc Zyngier wrote: Marc, does it ring any bell? Well, this is an example of a guest accessing non-memory using an instruction that we cannot safely emulate - not an IO accessor (load multiple, for example). In this case, we kill the guest (we could as well inject

[Qemu-devel] [PATCH 1/4] Revert vhost-user: add multi queue support

2015-07-17 Thread Michael S. Tsirkin
This reverts commit 830d70db692e374b5f4407f96a1ceefdcc97. The interface as merged isn't fully backwards-compatible with existing clients. Revert it. Let's redo this after 2.4, based on protocol extensions in follow-up patches. Signed-off-by: Michael S. Tsirkin m...@redhat.com ---

[Qemu-devel] [PATCH 0/4] vhost-user: protocol updates

2015-07-17 Thread Michael S. Tsirkin
This patchset sets the stage for extending the vhost user protocol, with full backwards compatibility. The approach is to negotiate feature bits queried and acknowledged during device setup. For now, there's no new functionality: two new messages are added that will allow negotiating new

[Qemu-devel] [PATCH 3/4] vhost-user: add protocol feature negotiation

2015-07-17 Thread Michael S. Tsirkin
Support a separate bitmask for vhost-user protocol features, and messages to get/set protocol features. Invoke them at init. No features are defined yet. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- include/hw/virtio/vhost.h | 1 + hw/net/vhost_net.c| 2 ++

[Qemu-devel] [PATCH 2/4] vhost-user: refactor ioctl translation

2015-07-17 Thread Michael S. Tsirkin
translate at the outset, have rest of code use vhost-user features exclusively. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/virtio/vhost-user.c | 87 ++ 1 file changed, 46 insertions(+), 41 deletions(-) diff --git

[Qemu-devel] [PATCH 4/4] vhost-user: unit test for new messages

2015-07-17 Thread Michael S. Tsirkin
Data is empty for now, but do make sure master sets the new feature bit flag. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- tests/vhost-user-test.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/tests/vhost-user-test.c b/tests/vhost-user-test.c index

[Qemu-devel] [PATCH] Merge memory_region_init_reservation() into memory_region_init_io()

2015-07-17 Thread Pavel Fedin
Just speficying ops = NULL in some cases can be more convenient than having two functions. See vGICv3 v5 patch set for at least one such case. GICv2 code can be refactored in a way similar to what is done in the mentioned patchset, killing some code duplication. Signed-off-by: Pavel Fedin

Re: [Qemu-devel] [PATCH for-2.4 1/4] Revert vhost-user: add multi queue support

2015-07-17 Thread Eric Blake
On 07/17/2015 08:09 AM, Michael S. Tsirkin wrote: This reverts commit 830d70db692e374b5f4407f96a1ceefdcc97. The interface as merged isn't fully backwards-compatible with existing clients. Revert it. Let's redo this after 2.4, based on protocol extensions in follow-up patches.

Re: [Qemu-devel] [PATCH v2 0/3] AioContext: ctx-dispatching is dead, all hail ctx-notify_me

2015-07-17 Thread Marc Zyngier
On Fri, 17 Jul 2015 15:04:27 +0100 Paolo Bonzini pbonz...@redhat.com wrote: On 17/07/2015 15:28, Marc Zyngier wrote: Marc, does it ring any bell? Well, this is an example of a guest accessing non-memory using an instruction that we cannot safely emulate - not an IO accessor (load

[Qemu-devel] [PATCH v2 2/2] blockdev: always compile in -drive aio= parsing

2015-07-17 Thread Stefan Hajnoczi
CONFIG_LINUX_AIO is an implementation detail of raw-posix.c. Don't mention CONFIG_LINUX_AIO in blockdev.c. Let raw-posix.c decide what to do with BDRV_O_NATIVE_AIO if CONFIG_LINUX_AIO is not defined. Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- blockdev.c | 2 -- 1 file changed, 2

[Qemu-devel] [PATCH v2 0/2] block: warn about aio=native if libaio is unavailable

2015-07-17 Thread Stefan Hajnoczi
v2: * Banish CONFIG_LINUX_AIO from blockdev.c, that is raw-posix.c's business [Kevin] * Print the warning in the same way as the aio=native,cache.direct=off deprecation warning [Kevin] Open question: what about the Windows case? We now pass the FILE_FLAG_OVERLAPPED flag which we didn't

[Qemu-devel] [PATCH v2 1/2] raw-posix: warn about BDRV_O_NATIVE_AIO if libaio is unavailable

2015-07-17 Thread Stefan Hajnoczi
raw-posix.c silently ignores BDRV_O_NATIVE_AIO if libaio is unavailable. It is confusing when aio=native performance is identical to aio=threads because the binary was accidentally built without libaio. Print a deprecation warning if -drive aio=native is used with a binary that does not support

Re: [Qemu-devel] [PATCH v2 0/3] AioContext: ctx-dispatching is dead, all hail ctx-notify_me

2015-07-17 Thread Laszlo Ersek
On 07/17/15 15:28, Marc Zyngier wrote: On Fri, 17 Jul 2015 10:30:38 +0100 Paolo Bonzini pbonz...@redhat.com wrote: On 17/07/2015 06:44, Paolo Bonzini wrote: On 16/07/2015 21:05, Richard W.M. Jones wrote: Sorry to spoil things, but I'm still seeing this bug, although it is now a lot

[Qemu-devel] STM32F407-Discovery led blinking video

2015-07-17 Thread Liviu Ionescu
as planned, the GNU ARM Eclipse QEMU branch is now fully functional for simple LED blinking applications. the board image is displayed in a SDL window and the LEDs are coloured rectangles shown over the image. a short demo video is available from:

Re: [Qemu-devel] [PATCH v2] raw-posix.c: Make physical devices usable in QEMU under Mac OS X host

2015-07-17 Thread Stefan Hajnoczi
On Thu, Jul 16, 2015 at 04:46:07PM -0400, Programmingkid wrote: @@ -2014,7 +2015,9 @@ kern_return_t GetBSDPath( io_iterator_t mediaIterator, char *bsdPath, CFIndex ma if ( bsdPathAsCFString ) { size_t devPathLength; strcpy( bsdPath, _PATH_DEV ); -

Re: [Qemu-devel] [RFC PATCH qemu v3 4/4] vfio: spapr: Add SPAPR IOMMU v2 support (DMA memory preregistering)

2015-07-17 Thread David Gibson
On Fri, Jul 17, 2015 at 05:13:37PM +1000, Alexey Kardashevskiy wrote: On 07/16/2015 03:11 PM, David Gibson wrote: On Tue, Jul 14, 2015 at 10:21:54PM +1000, Alexey Kardashevskiy wrote: This makes use of the new memory registering feature. The idea is to provide the userspace ability to notify

Re: [Qemu-devel] [PATCH v2 00/13] tcg/sparc v8plus code generation

2015-07-17 Thread Aurelien Jarno
On 2015-07-17 12:23, Aurelien Jarno wrote: On 2015-07-16 22:29, Richard Henderson wrote: On 07/15/2015 09:54 PM, Aurelien Jarno wrote: While I understand why we need the new trunc_shr_i32 opcode for MIPS64 (the 32-bit values must be kept sign-extended), I currently fail to see why it is

Re: [Qemu-devel] [RFC v3 08/13] exec.c: introduce a simple rendezvous support

2015-07-17 Thread Alex Bennée
Alvise Rigo a.r...@virtualopensystems.com writes: When a vCPU is about to set a memory page as exclusive, it needs to wait that all the running vCPUs finish to execute the current TB and to be aware of the exact moment when that happens. For this, add a simple rendezvous mechanism that will

Re: [Qemu-devel] [PATCH v2 0/3] AioContext: ctx-dispatching is dead, all hail ctx-notify_me

2015-07-17 Thread Marc Zyngier
On Fri, 17 Jul 2015 14:39:55 +0100 Laszlo Ersek ler...@redhat.com wrote: On 07/17/15 15:28, Marc Zyngier wrote: On Fri, 17 Jul 2015 10:30:38 +0100 Paolo Bonzini pbonz...@redhat.com wrote: On 17/07/2015 06:44, Paolo Bonzini wrote: On 16/07/2015 21:05, Richard W.M. Jones wrote:

[Qemu-devel] [PULL for-2.4 1/1] virtio-rng: trigger timer only when guest requests for entropy

2015-07-17 Thread Amit Shah
From: Pankaj Gupta pagu...@redhat.com This patch triggers timer only when guest requests for entropy. As soon as first request from guest for entropy comes we set the timer. Timer bumps up the quota value when it gets triggered. Signed-off-by: Pankaj Gupta pagu...@redhat.com Reviewed-by: Amit

[Qemu-devel] [PULL for-2.4 0/1] virtio-rng: reduce wakeups

2015-07-17 Thread Amit Shah
The following changes since commit 5b5e8cdd7da7a2214dd062afff5b866234aab228: Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-20150717-1' into staging (2015-07-17 12:39:12 +0100) are available in the git repository at: https://git.kernel.org/pub/scm/virt/qemu/amit/virtio-rng.git

Re: [Qemu-devel] [PATCH v4 1/1] vhost user: add support of live migration

2015-07-17 Thread Paolo Bonzini
On 17/07/2015 15:35, Marc-André Lureau wrote: LOG_FD is implemented in the kernel drivers/vhost/vhost.c. It seems to be an eventfd-like mechanism to save on dirty bitmap scans. However, it's not well documented how to implement it in a correct way. and it's not used by qemu, so hard to

Re: [Qemu-devel] [PATCH v2 0/3] AioContext: ctx-dispatching is dead, all hail ctx-notify_me

2015-07-17 Thread Richard W.M. Jones
On Fri, Jul 17, 2015 at 02:48:40PM +0100, Marc Zyngier wrote: Still: there is nothing in the registers that remotely points to that area. X0 is the closest, but it'd take a big negative offset to get there. Is that a Linux kernel? or something else? You're sure it's not this one?

Re: [Qemu-devel] [RFC v3 08/13] exec.c: introduce a simple rendezvous support

2015-07-17 Thread alvise rigo
On Fri, Jul 17, 2015 at 3:45 PM, Alex Bennée alex.ben...@linaro.org wrote: Alvise Rigo a.r...@virtualopensystems.com writes: When a vCPU is about to set a memory page as exclusive, it needs to wait that all the running vCPUs finish to execute the current TB and to be aware of the exact

Re: [Qemu-devel] [PATCH 2/2 v3] virtio-rng: Serve pending request if any after timer bumps up quota.

2015-07-17 Thread Amit Shah
On (Thu) 16 Jul 2015 [02:34:34], Pankaj Gupta wrote: Anyway we can look at that later, patch 1 is already a big improvement so I think we should just stick with that, and think about other things in a different series. Sure. I think we can apply patch 1 for 2.4, since it reduces the

Re: [Qemu-devel] [PATCH v2 0/3] AioContext: ctx-dispatching is dead, all hail ctx-notify_me

2015-07-17 Thread Laszlo Ersek
On 07/17/15 15:48, Marc Zyngier wrote: On Fri, 17 Jul 2015 14:39:55 +0100 Laszlo Ersek ler...@redhat.com wrote: On 07/17/15 15:28, Marc Zyngier wrote: On Fri, 17 Jul 2015 10:30:38 +0100 Paolo Bonzini pbonz...@redhat.com wrote: On 17/07/2015 06:44, Paolo Bonzini wrote: On 16/07/2015

Re: [Qemu-devel] [PATCH] blockdev: warn about aio=native if libaio is unavailable

2015-07-17 Thread Stefan Hajnoczi
On Fri, Jul 17, 2015 at 12:56:15PM +0200, Kevin Wolf wrote: Am 17.07.2015 um 11:59 hat Stefan Hajnoczi geschrieben: QEMU silently ignores aio=native if libaio is unavailable. It is confusing when aio=native performance is identical to aio=threads because the binary was accidentally built

Re: [Qemu-devel] [PATCH v2 0/3] AioContext: ctx-dispatching is dead, all hail ctx-notify_me

2015-07-17 Thread Marc Zyngier
On Fri, 17 Jul 2015 14:53:06 +0100 Richard W.M. Jones rjo...@redhat.com wrote: On Fri, Jul 17, 2015 at 02:48:40PM +0100, Marc Zyngier wrote: Still: there is nothing in the registers that remotely points to that area. X0 is the closest, but it'd take a big negative offset to get there.

Re: [Qemu-devel] [PATCH v4 1/1] vhost user: add support of live migration

2015-07-17 Thread Paolo Bonzini
On 17/07/2015 12:34, Marc-André Lureau wrote: On Fri, Jul 17, 2015 at 4:25 AM, Paolo Bonzini pbonz...@redhat.com wrote: But LOG_BASE makes little sense across processes, and LOG_FD is unused in QEMU, isn't it? So this patch is not enough to add support of live migration. You are right,

Re: [Qemu-devel] [PATCH v2 0/3] AioContext: ctx-dispatching is dead, all hail ctx-notify_me

2015-07-17 Thread Richard W.M. Jones
On Fri, Jul 17, 2015 at 11:30:38AM +0200, Paolo Bonzini wrote: error: kvm run failed Function not implemented PC=bf671210 SP=c1f0 X00=0a003e70 X01= X02=bf680548 X03=0030 X04=bbb5fc18 X05=004b7770

[Qemu-devel] [PATCH v5 1/5] Implement GIC-500 base class

2015-07-17 Thread Pavel Fedin
From: Shlomo Pongratz shlomo.pongr...@huawei.com This class is to be used by both software and KVM implementations of GICv3 Signed-off-by: Shlomo Pongratz shlomo.pongr...@huawei.com Signed-off-by: Pavel Fedin p.fe...@samsung.com --- hw/intc/Makefile.objs | 1 +

Re: [Qemu-devel] [RFC v3 06/13] target-i386: translate: implement qemu_ldlink and qemu_stcond ops

2015-07-17 Thread alvise rigo
On Fri, Jul 17, 2015 at 2:56 PM, Alex Bennée alex.ben...@linaro.org wrote: Alvise Rigo a.r...@virtualopensystems.com writes: Implement strex and ldrex instruction relying on TCG's qemu_ldlink and qemu_stcond. For the time being only 32bit configurations are supported. Suggested-by: Jani

[Qemu-devel] [PATCH v5 3/5] Introduce irqchip type specification for KVM

2015-07-17 Thread Pavel Fedin
This patch introduces kernel_irqchip_type member in Machine class, which it passed to kvm_arch_irqchip_create. It allows machine models to specify correct GIC type during KVM capability verification. The variable is defined as int in order to be architecture-agnostic for potential future uses by

[Qemu-devel] [PATCH v5 2/5] Extract some reusable vGIC code

2015-07-17 Thread Pavel Fedin
These functions are useful also for vGICv3 implementation. Make them accessible from within other modules. Actually kvm_dist_get() and kvm_dist_put() could also be made reusable, but they would require two extra parameters (s-dev_fd and s-num_cpu) as well as lots of typecasts of 's' to

Re: [Qemu-devel] [RFC v3 07/13] ram_addr.h: Make exclusive bitmap accessors atomic

2015-07-17 Thread Alex Bennée
Alvise Rigo a.r...@virtualopensystems.com writes: Suggested-by: Jani Kokkonen jani.kokko...@huawei.com Suggested-by: Claudio Fontana claudio.font...@huawei.com Signed-off-by: Alvise Rigo a.r...@virtualopensystems.com --- include/exec/ram_addr.h | 6 +++--- 1 file changed, 3 insertions(+),

Re: [Qemu-devel] [PATCH v2 0/3] AioContext: ctx-dispatching is dead, all hail ctx-notify_me

2015-07-17 Thread Marc Zyngier
On Fri, 17 Jul 2015 10:30:38 +0100 Paolo Bonzini pbonz...@redhat.com wrote: On 17/07/2015 06:44, Paolo Bonzini wrote: On 16/07/2015 21:05, Richard W.M. Jones wrote: Sorry to spoil things, but I'm still seeing this bug, although it is now a lot less frequent with your patch. I

Re: [Qemu-devel] [PATCH v4 1/1] vhost user: add support of live migration

2015-07-17 Thread Marc-André Lureau
Hi On Fri, Jul 17, 2015 at 2:57 PM, Paolo Bonzini pbonz...@redhat.com wrote: LOG_FD is implemented in the kernel drivers/vhost/vhost.c. It seems to be an eventfd-like mechanism to save on dirty bitmap scans. However, it's not well documented how to implement it in a correct way. and it's

Re: [Qemu-devel] [virtio guest] vring_need_event() from virtqueue_kick_prepare()

2015-07-17 Thread Stefan Hajnoczi
On Fri, Jul 17, 2015 at 09:30:03AM +0300, Catalin Vasile wrote: Do you mean vhost_net - old kernel, qemu - latest, guest - latest? I mean whatever combination didn't work for your custom vhost module. If vhost_net is broken too there is probably a vhost/QEMU bug that should be fixed. Stefan

Re: [Qemu-devel] [RFC v3 05/13] target-arm: translate: implement qemu_ldlink and qemu_stcond ops

2015-07-17 Thread alvise rigo
On Fri, Jul 17, 2015 at 2:51 PM, Alex Bennée alex.ben...@linaro.org wrote: Alvise Rigo a.r...@virtualopensystems.com writes: Implement strex and ldrex instruction relying on TCG's qemu_ldlink and qemu_stcond. For the time being only the 32bit instructions are supported. Suggested-by: Jani

Re: [Qemu-devel] [PATCH v2 0/3] AioContext: ctx-dispatching is dead, all hail ctx-notify_me

2015-07-17 Thread Paolo Bonzini
On 17/07/2015 14:58, Richard W.M. Jones wrote: On Fri, Jul 17, 2015 at 11:30:38AM +0200, Paolo Bonzini wrote: error: kvm run failed Function not implemented PC=bf671210 SP=c1f0 X00=0a003e70 X01= X02=bf680548 X03=0030

[Qemu-devel] [PATCH v5 5/5] Add gicversion option to virt machine

2015-07-17 Thread Pavel Fedin
Set kernel_irqchip_type according to value of the option and pass it around where necessary. Instantiate devices and fdt nodes according to the choice. mac_cpus for virt machine increased to 64. GICv2 compatibility check happens inside arm_gic_common_realize(). Signed-off-by: Pavel Fedin

[Qemu-devel] [PATCH v5 0/5] [PATCH v4 0/5] vGICv3 support

2015-07-17 Thread Pavel Fedin
This series introduces support for GICv3 by KVM. Software emulation is currently not supported. Differences from v4: - Do not reintroduce several constants shared with GICv2, reuse them instead. - Added gicv3_init_irqs_and_mmio() in base class, to be used by both software emulation and KVM

[Qemu-devel] [PATCH v5 4/5] Initial implementation of vGICv3

2015-07-17 Thread Pavel Fedin
Get/put routines are missing, live migration is not possible. Signed-off-by: Pavel Fedin p.fe...@samsung.com --- hw/intc/Makefile.objs | 3 + hw/intc/arm_gicv3_kvm.c | 159 2 files changed, 162 insertions(+) create mode 100644

Re: [Qemu-devel] [PATCH v1 4/6] xen: use errno instead of rc for xc_domain_add_to_physmap

2015-07-17 Thread Stefano Stabellini
On Thu, 2 Jul 2015, Konrad Rzeszutek Wilk wrote: In Xen 4.6 commit cd2f100f0f61b3f333d52d1737dd73f02daee592 libxc: Fix do_memory_op to return negative value on errors made the libxc API less odd-ball: On errors, return value is -1 and error code is in errno. On success the return value is

Re: [Qemu-devel] [PATCH v1 5/6] xen/pt/msi: Add the register value when printing logging and error messages

2015-07-17 Thread Stefano Stabellini
On Thu, 2 Jul 2015, Konrad Rzeszutek Wilk wrote: We would like to know what the MSI register value is to help in troubleshooting in the field. As such modify the logging logic to include such details in xen_pt_msgctrl_reg_write. Signed-off-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com

Re: [Qemu-devel] [RFC v3 12/13] softmmu_llsc_template.h: move to multithreading

2015-07-17 Thread Alex Bennée
Alvise Rigo a.r...@virtualopensystems.com writes: Update the TCG LL/SC instructions to work in multi-threading. The basic idea remains untouched, but the whole mechanism is improved to make use of the callback support to query TLB flush requests and the rendezvous callback to synchronize

Re: [Qemu-devel] [PATCH 2/2] tcg/i386: Reserve register for guest_base if a segment isn't available

2015-07-17 Thread Paolo Bonzini
On 17/07/2015 03:33, Peter Maydell wrote: On 16 July 2015 at 22:25, Richard Henderson r...@twiddle.net wrote: This saves 2 insns and 10 bytes from the implementation of each memory operation. Do we have an idea of which platforms/configs don't let us have a segment register for

Re: [Qemu-devel] [PATCH v1 6/6] xen/pt: Use XEN_PT_LOG properly to guard against compiler warnings.

2015-07-17 Thread Stefano Stabellini
On Thu, 2 Jul 2015, Konrad Rzeszutek Wilk wrote: If XEN_PT_LOGGING_ENABLED is enabled the XEN_PT_LOG macros start using the first argument. Which means if within the function there is only one user of the argument ('d') and XEN_PT_LOGGING_ENABLED is not set, we get compiler warnings. This is

Re: [Qemu-devel] [RFC v3 12/13] softmmu_llsc_template.h: move to multithreading

2015-07-17 Thread alvise rigo
On Fri, Jul 17, 2015 at 5:27 PM, Alex Bennée alex.ben...@linaro.org wrote: Alvise Rigo a.r...@virtualopensystems.com writes: Update the TCG LL/SC instructions to work in multi-threading. The basic idea remains untouched, but the whole mechanism is improved to make use of the callback

Re: [Qemu-devel] [PATCH 2/2] tcg/i386: Reserve register for guest_base if a segment isn't available

2015-07-17 Thread Richard Henderson
On 07/17/2015 02:33 AM, Peter Maydell wrote: On 16 July 2015 at 22:25, Richard Henderson r...@twiddle.net wrote: This saves 2 insns and 10 bytes from the implementation of each memory operation. Do we have an idea of which platforms/configs don't let us have a segment register for guest_base?

Re: [Qemu-devel] [PATCH RFC 2/9] tcg: don't abuse TCG type in tcg_gen_trunc_shr_i64_i32

2015-07-17 Thread Richard Henderson
On 07/15/2015 12:03 PM, Aurelien Jarno wrote: The tcg_gen_trunc_shr_i64_i32 function takes a 64-bit argument and returns a 32-bit value. Directly call tcg_gen_op3 with the correct types instead of calling tcg_gen_op3i_i32 and abusing the TCG types. Cc: Paolo Bonzinipbonz...@redhat.com Cc:

Re: [Qemu-devel] [PATCH RFC 3/9] tcg: implement real ext_i32_i64 and extu_i32_i64 ops

2015-07-17 Thread Richard Henderson
On 07/15/2015 12:03 PM, Aurelien Jarno wrote: Implement optional but real ext_i32_i64 and extu_i32_i64 ops. When implemented, these ensure that a 32-bit value is always converted to a 64-bit value and not propagated through the register allocator or the optimizer. Cc: Paolo

Re: [Qemu-devel] [PATCH RFC 1/9] tcg: rename trunc_shr_i32 into trunc_shr_i64_i32

2015-07-17 Thread Richard Henderson
On 07/15/2015 12:03 PM, Aurelien Jarno wrote: The op is sometimes named trunc_shr_i32 and sometimes trunc_shr_i64_i32, and the name in the README doesn't match the name offered to the frontends. Always use the long name to make it clear it is a size changing op. Cc: Paolo

Re: [Qemu-devel] [PATCH RFC 7/9] tcg: replace ext/u_i32_i64 by a mov when not implemented

2015-07-17 Thread Richard Henderson
On 07/15/2015 12:03 PM, Aurelien Jarno wrote: When ext_i32_i64 and extu_i32_i64 ops are not implemented, this means that the register is already properly zero/sign extended, so we can simply replace it by a mov. In practice it means at least one of the two ops should always be implemented on

Re: [Qemu-devel] [virtio guest] vring_need_event() from virtqueue_kick_prepare()

2015-07-17 Thread Catalin Vasile
Do you mean vhost_net - old kernel, qemu - latest, guest - latest? On Thu, Jul 16, 2015 at 7:33 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, Jul 16, 2015 at 1:54 PM, Catalin Vasile catalinvasil...@gmail.com wrote: Both. The compiled kernel was common for both. Does vhost_net work

Re: [Qemu-devel] [PULL for-2.4 0/4] input: fixes for 2.4

2015-07-17 Thread Gerd Hoffmann
Hi, I'm afraid this doesn't build for Windows: In file included from /home/petmay01/linaro/qemu-for-merges/hw/input/virtio-input.c:13: /home/petmay01/linaro/qemu-for-merges/include/standard-headers/linux/input.h:890:1: error: SW_MAX redefined In file included from

[Qemu-devel] [PULL 1/3] virtio-input: fix segfault in virtio_input_hid_properties

2015-07-17 Thread Gerd Hoffmann
From: Lin Ma l...@suse.com commit 5cce173 introduced virtio-input segfault, This patch fixes it. Signed-off-by: Lin Ma l...@suse.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/input/virtio-input-hid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/input/virtio-input-hid.c

Re: [Qemu-devel] [PATCH] hostmem: Fix qemu_opt_get_bool() crash in host_memory_backend_init()

2015-07-17 Thread Marcel Apfelbaum
On 07/16/2015 11:39 PM, Eduardo Habkost wrote: This fixes the following crash, introduced by commit 49d2e648e8087d154d8bf8b91f27c8e05e79d5a6: $ gdb --args qemu-system-x86_64 -machine pc,mem-merge=off -object memory-backend-ram,id=ram-node0,size=1024 [...] Program received signal

Re: [Qemu-devel] memory hotplug fails with mem-merge option

2015-07-17 Thread Marcel Apfelbaum
On 07/16/2015 03:24 PM, Igor Mammedov wrote: On Thu, 16 Jul 2015 16:00:07 +0530 Bharata B Rao bhar...@linux.vnet.ibm.com wrote: On Thu, Jul 16, 2015 at 10:25:09AM +0530, Bharata B Rao wrote: Hi, When I use -machine pc,mem-merge=off|on -m 1G,slots=4,maxmem=2G, adding memory-backend-ram object

Re: [Qemu-devel] net: Next steps to deprecate -net

2015-07-17 Thread Thomas Huth
On 07/17/2015 09:25 AM, Peter Maydell wrote: On 17 July 2015 at 07:53, Thomas Huth th...@redhat.com wrote: Ok, assuming that my Network traffic dumping for -netdev devices patch series is going to solve the dumping-for-netdev problem, how do we tackle the remaining problems that we have to

Re: [Qemu-devel] memory hotplug fails with mem-merge option

2015-07-17 Thread Bharata B Rao
On Fri, Jul 17, 2015 at 10:26:16AM +0300, Marcel Apfelbaum wrote: On 07/16/2015 03:24 PM, Igor Mammedov wrote: On Thu, 16 Jul 2015 16:00:07 +0530 Bharata B Rao bhar...@linux.vnet.ibm.com wrote: On Thu, Jul 16, 2015 at 10:25:09AM +0530, Bharata B Rao wrote: Hi, When I use -machine

Re: [Qemu-devel] [PATCH v2 3/3] AioContext: fix broken ctx-dispatching optimization

2015-07-17 Thread Stefan Hajnoczi
On Fri, Jul 17, 2015 at 06:17:47AM +0200, Paolo Bonzini wrote: On 16/07/2015 11:56, Paolo Bonzini wrote: @@ -286,13 +283,15 @@ bool aio_poll(AioContext *ctx, bool blocking) npfd = 0; ctx-walking_handlers--; +if (blocking) { +atomic_sub(ctx-notify_me, 2);

Re: [Qemu-devel] [PATCH RFC 4/9] tcg/optimize: add optimizations for ext_i32_i64 and extu_i32_i64 ops

2015-07-17 Thread Richard Henderson
On 07/15/2015 12:03 PM, Aurelien Jarno wrote: They behave the same as ext32s_i64 and ext32u_i64 from the constant folding and zero propagation point of view, except that they can't be replaced by a mov, so we don't compute the affected value. Cc: Paolo Bonzinipbonz...@redhat.com Cc: Richard

[Qemu-devel] [PATCH V3] virtio-net: unbreak any layout

2015-07-17 Thread Jason Wang
Commit 032a74a1c0fcdd5fd1c69e56126b4c857ee36611 (virtio-net: byteswap virtio-net header) breaks any layout by requiring out_sg[0].iov_len = n-guest_hdr_len. Fixing this by copying header to temporary buffer if swap is needed, and then use this buffer as part of out_sg. Fixes

Re: [Qemu-devel] net: Next steps to deprecate -net (was: [RFC PATCH] Enable vlans and dump for -netdev, too)

2015-07-17 Thread Stefan Hajnoczi
On Fri, Jul 17, 2015 at 08:53:08AM +0200, Thomas Huth wrote: On 05/26/2015 04:29 PM, Markus Armbruster wrote: Stefan Hajnoczi stefa...@redhat.com writes: [...] We thought the QEMU vlan concept would be dropped completely in the future, so it was never added to -netdev. No patches to do

Re: [Qemu-devel] [PATCH RFC 8/9] tcg/optimize: do not simplify size changing moves

2015-07-17 Thread Richard Henderson
On 07/15/2015 12:03 PM, Aurelien Jarno wrote: Now that we have real size changing ops, we don't need to marked high bits of the destination as garbage. The goal of the optimizer is to predict the value of the temps (and not of the registers) and do simplifications when possible. The problem

Re: [Qemu-devel] [RFC PATCH qemu v3 4/4] vfio: spapr: Add SPAPR IOMMU v2 support (DMA memory preregistering)

2015-07-17 Thread Alexey Kardashevskiy
On 07/16/2015 03:11 PM, David Gibson wrote: On Tue, Jul 14, 2015 at 10:21:54PM +1000, Alexey Kardashevskiy wrote: This makes use of the new memory registering feature. The idea is to provide the userspace ability to notify the host kernel about pages which are going to be used for DMA. Having

[Qemu-devel] [PATCH V3 1/2] tests: introduce basic pci test for virtio-net

2015-07-17 Thread Jason Wang
Signed-off-by: Jason Wang jasow...@redhat.com --- Changes from V2: - Remove duplicated code of gtest_start() Changes from V1: - replace the magic value 12 with a macro --- tests/Makefile | 2 +- tests/virtio-net-test.c | 185 ++-- 2 files

Re: [Qemu-devel] net: Next steps to deprecate -net (was: [RFC PATCH] Enable vlans and dump for -netdev, too)

2015-07-17 Thread Peter Maydell
On 17 July 2015 at 07:53, Thomas Huth th...@redhat.com wrote: Ok, assuming that my Network traffic dumping for -netdev devices patch series is going to solve the dumping-for-netdev problem, how do we tackle the remaining problems that we have to solve before we can deprecate -net? Does anybody

[Qemu-devel] [Bug 1465935] Re: kvm_irqchip_commit_routes: Assertion `ret == 0' failed

2015-07-17 Thread Stefan Bader
Unfortunately I seem to be unable to get this bug triggered with the reproducer. It could be a detail of the guest setup I am missing. Since I do not have access to RHEL I used CentOS 6.3 in a 8core guest with 2 virtio disks. Host was 14.04. Left the script running for quite a bit but no crash

Re: [Qemu-devel] [PATCH RFC 9/9] tcg: update README about size changing ops

2015-07-17 Thread Richard Henderson
On 07/15/2015 12:03 PM, Aurelien Jarno wrote: +These ops are all optional in that case they are implemented as mov. +This is to allow some optimizations if the target maintains registers +zero or sign extended. For example a MIPS64 CPU requires that all +32-bit values are stored sign-extended in

[Qemu-devel] net: Next steps to deprecate -net (was: [RFC PATCH] Enable vlans and dump for -netdev, too)

2015-07-17 Thread Thomas Huth
On 05/26/2015 04:29 PM, Markus Armbruster wrote: Stefan Hajnoczi stefa...@redhat.com writes: [...] We thought the QEMU vlan concept would be dropped completely in the future, so it was never added to -netdev. No patches to do that have been posted over the years, so I think it was more of a

[Qemu-devel] [PULL v2 for-2.4 0/3] input: fixes for 2.4

2015-07-17 Thread Gerd Hoffmann
+0100) are available in the git repository at: git://git.kraxel.org/qemu tags/pull-input-20150717-1 for you to fetch changes up to 562f93754b95fd6dc65ad9a2aa15a90b2da7e8a4: hid: clarify hid_keyboard_process_keycode (2015-07-17 08:44:41 +0200

[Qemu-devel] [PULL 3/3] hid: clarify hid_keyboard_process_keycode

2015-07-17 Thread Gerd Hoffmann
From: Paolo Bonzini pbonz...@redhat.com Coverity thinks the fallthroughs are smelly. They are correct, but everything else in this function is like wut?. Refer explicitly to bits 8 and 9 of hs-kbd.modifiers instead of shifting right first and using (1 7). Document what the scancode is when

[Qemu-devel] [PULL 2/3] virtio-input: move sys/ioctl.h include

2015-07-17 Thread Gerd Hoffmann
Drop from include/standard-headers/linux/input.h Add to hw/input/virtio-input-host.c instead. That allows to build virtio-input (except pass-through) on windows. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/input/virtio-input-host.c | 1 +

  1   2   >