[Qemu-devel] [Query] : Interrupt handling in qemu

2014-12-28 Thread Gaurav Sharma
Hi, I am trying to understand how are interrupts handled in QEMU for ARM. Currently, I am looking at how timer interrupts are handled and interfaced to GIC, and how i sGOC than connected to the cpu. During arm_cpu_initfn, we create timer objects : cpu->gt_timer[PHYS/VIRT] = timer_new 1. How i

Re: [Qemu-devel] [PATCH] kvm_irqchip_assign_irqfd: just set irqfd in case of kvm_irqfds_enabled()

2014-12-28 Thread Chen, Tiejun
On 2014/12/27 22:52, Paolo Bonzini wrote: On 26/12/2014 18:59, Peter Maydell wrote: Mm, but once you're into such microoptimisations as this you really need to have a good justification for the effort, in the form of profiling measurements that indicate that this is a hot path. In this case t

[Qemu-devel] [PATCH 3/3] qdev'ify dp8393x

2014-12-28 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- hw/mips/mips_jazz.c | 2 +- hw/net/dp8393x.c | 182 +++ include/hw/net/dp8393x.h | 1 - 3 files changed, 121 insertions(+), 64 deletions(-) diff --git a/hw/mips/mips_jazz.c b/hw/mips/mips_jazz.c index

[Qemu-devel] [PATCH 0/3] dp8393x update

2014-12-28 Thread Laurent Vivier
This is a series of patches I wrote to use dp8393x (SONIC) with Quadra 800 emulation. I think it is interesting to share them with the mainline. Qdev'ifying allows to remove the annoying warning: "requested NIC (anonymous, model dp83932) was not created (not supported by this machine?)" [PATCH 1

[Qemu-devel] [PATCH 2/3] dp8393x: add PROM to store MAC address

2014-12-28 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- hw/mips/mips_jazz.c | 4 ++-- hw/net/dp8393x.c | 18 +- include/hw/net/dp8393x.h | 3 ++- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/hw/mips/mips_jazz.c b/hw/mips/mips_jazz.c index ecfaacb..4d556ab 100644 --- a/

[Qemu-devel] [PATCH 1/3] dp8393x: add registers offset

2014-12-28 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- hw/mips/mips_jazz.c | 3 ++- hw/net/dp8393x.c | 8 ++-- include/hw/mips/mips.h | 6 -- include/hw/net/dp8393x.h | 6 ++ 4 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 include/hw/net/dp8393x.h diff --git a/hw/mips

[Qemu-devel] [Bug 1406016] Re: qemu-system-arm hangs at start on OS X

2014-12-28 Thread Eric Allen
Ah, good question! I found an image and instructions at http://fedoraproject.org/wiki/Architectures/ARM/HowToQemu#Using_QEMU_without_libvirt that was a bit easier to work through, and sure enough, it works on Linux but not on OS X. Linux precise64 3.2.0-37-generic: vagrant@precise64:/opt/qemu-ima

Re: [Qemu-devel] [PATCH v3 00/11] implement dynamic endianness switching

2014-12-28 Thread Paolo Bonzini
On 28/12/2014 13:12, Stefan Weil wrote: > Hi Paolo, > > did you abandon this patch series or are there plans for an updated > version? I'd appreciate a fix for the Raspberry Pi memcmp issue. I hope to send it during the Christmas break. Paolo

Re: [Qemu-devel] [PATCH v3] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD

2014-12-28 Thread Peter Maydell
On 28 December 2014 at 21:18, Programmingkid wrote: > This patch fixes the problem with raw_getlength() on Mac OS X so that it > actually calculates the correct size of a volume. It has been updated to fix > certain coding style issues. Booting and using a real CD in QEMU works again. > > signed

[Qemu-devel] [PATCH v3] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD

2014-12-28 Thread Programmingkid
This patch fixes the problem with raw_getlength() on Mac OS X so that it actually calculates the correct size of a volume. It has been updated to fix certain coding style issues. Booting and using a real CD in QEMU works again. signed-off-by: John Arbuckle --- block/raw-posix.c | 19 ++

Re: [Qemu-devel] [PATCH v2] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD

2014-12-28 Thread Peter Maydell
On 28 December 2014 at 17:37, Programmingkid wrote: > On Dec 28, 2014, at 5:23 AM, Peter Maydell wrote: >> On 28 December 2014 at 03:00, Programmingkid >> wrote: >>> #if defined(__APPLE__) && defined(__MACH__) >>> -size = LLONG_MAX; >>> +#define IOCTL_ERROR_VALUE -1 >> >> You don

Re: [Qemu-devel] [PATCH v2] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD

2014-12-28 Thread Programmingkid
On Dec 28, 2014, at 5:23 AM, Peter Maydell wrote: > On 28 December 2014 at 03:00, Programmingkid > wrote: >> Here is version 2 of the patch. All the suggestions have been implemented. > > Thanks. > > Last round of nits, but the rest of the change is fine. > If you post v3 as its own email tha

Re: [Qemu-devel] [PATCH v3 00/11] implement dynamic endianness switching

2014-12-28 Thread Stefan Weil
Am 21.06.2014 um 14:58 schrieb Paolo Bonzini: This fixes the Raspberry Pi optimized memcmp library (with both user-mode and system-mode emulation). Compared to the previous submission, the main changes are: - I track access endianness by taking into account both SCTLR.B and CPSR.E, to make t

[Qemu-devel] [Bug 1406016] Re: qemu-system-arm hangs at start on OS X

2014-12-28 Thread Peter Maydell
Do these guest images and command lines work on Linux QEMU? (The most common cause of "nothing happens" is "wrong kernel for this board" or similar misconfiguration, where QEMU is correctly emulating a crashed guest that never made any output...) -- You received this bug notification because you

Re: [Qemu-devel] [PATCH RFC v6 19/20] virtio-blk: revision specific feature bits

2014-12-28 Thread Michael S. Tsirkin
On Thu, Dec 11, 2014 at 02:25:21PM +0100, Cornelia Huck wrote: > Wire up virtio-blk to provide different feature bit sets depending > on whether legacy or v1.0 has been requested. > > Note that VERSION_1 is still disabled due to missing ANY_LAYOUT support. > > Signed-off-by: Cornelia Huck So we

Re: [Qemu-devel] [PATCH v2] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD

2014-12-28 Thread Peter Maydell
On 28 December 2014 at 03:00, Programmingkid wrote: > Here is version 2 of the patch. All the suggestions have been implemented. Thanks. Last round of nits, but the rest of the change is fine. If you post v3 as its own email that will make it easier to apply (most of our patch-handling tools ass

[Qemu-devel] [Bug 1406016] [NEW] qemu-system-arm hangs at start on OS X

2014-12-28 Thread Eric Allen
Public bug reported: Both from release 2.1.2 and built from a recent source, qemu-system-arm seems to hang immediately after starting up, never getting to the point of actually booting. I've tried qemu-system-mipsel with another image and it worked fine, so this seems to be specific to the ARM ru

Re: [Qemu-devel] [PATCH RFC v6 18/20] virtio: support revision-specific features

2014-12-28 Thread Michael S. Tsirkin
On Thu, Dec 11, 2014 at 02:25:20PM +0100, Cornelia Huck wrote: > Devices may support different sets of feature bits depending on which > revision they're operating at. Let's give the transport a way to > re-query the device about its features when the revision has been > changed. > > Signed-off-by