[Qemu-devel] [PATCH 1/2] ARM: Exynos4210: Drop gic_cpu_write() after initialization.

2012-04-03 Thread Evgeny Voevodin
Remove gic_cpu_write() call after initialization that was emulating functionality of earliest SOC bootloader which enables external GIC CPU1 interface. Instead introduce Exynos4210-specific secondary CPU bootloader, which enables both Internal and External GIC CPU1 interfaces. Signed-off-by: Evgen

[Qemu-devel] [PATCH 2/2] hw/exynos4210_combiner.c: Drop excessive read/write access check.

2012-04-03 Thread Evgeny Voevodin
Access to reserved area at offset higher than 0x3c is allowed in External Combiner. Samsung Galaxy Kernel implements this. So, drop excessive checks in read/write functions. Signed-off-by: Evgeny Voevodin --- hw/exynos4210_combiner.c | 10 -- 1 files changed, 0 insertions(+), 10 deleti

[Qemu-devel] [PATCH 0/2] ARM: Exynos4210: Fix GIC initialization and Combiner operation.

2012-04-03 Thread Evgeny Voevodin
First patch drops gic_cpu_write() after initialization and introduces Exynos4210-specific secondary CPU bootloader. Second patch drops excessive read/write access check in External Combiner read/write functions. Evgeny Voevodin (2): ARM: Exynos4210: Drop gic_cpu_write() after initialization. h

[Qemu-devel] [PATCH 4/4] pseries: Implement automatic PAPR VIO address allocation

2012-04-03 Thread David Gibson
PAPR virtual IO (VIO) devices require a unique, but otherwise arbitrary, "address" used as a token to the hypercalls which manipulate them. Currently the pseries machine code does an ok job of allocating these addresses when the legacy -net nic / -serial and so forth options are used but will fail

[Qemu-devel] [PATCH 2/4] pseries: Remove unused fields from VIOsPAPRBus structure

2012-04-03 Thread David Gibson
The VIOsPAPRBus structure, used on the pseries machine contains some old fields which are no longer used anywhere. This patch removes them. Cc: qemu-triv...@nongnu.org Signed-off-by: David Gibson --- hw/spapr_vio.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/hw/sp

[Qemu-devel] [PATCH 1/4] target-ppc: Add hooks for handling tcg and kvm limitations

2012-04-03 Thread David Gibson
On target-ppc, our table of CPU types and features encodes the features as found on the hardware, regardless of whether these features are actually usable under TCG or KVM. We already have cases where the information from the cpu table must be fixed up to account for limitations in the emulation m

[Qemu-devel] [PATCH 3/4] pseries: Consolidate hack for RTAS display-character usage

2012-04-03 Thread David Gibson
Currently the pseries machine contains not one but two somewhat ugly hacks to allow printing of early debug messages before the guest has properly read the device tree. First, we special case H_PUT_TERM_CHAR so that a vtermno of 0 (usually invalid) will look for a suitable vty and use that. This

[Qemu-devel] [0/4] Assorted ppc/pseries cleanups

2012-04-03 Thread David Gibson
Andreas, Here's another batch of pseries patches. 1-3 are cleanups with little to no functionality change. 4 implements automatic address allocation for VIO devices, which makes instantiating them with -device rather easier. This is about the third small series of patches I have pending for ppc

Re: [Qemu-devel] gic_cpu_write() call in exynos4210_gic_init()

2012-04-03 Thread Evgeny Voevodin
On 03.04.2012 20:45, Peter Maydell wrote: Hi; I've been working on a refactoring of the ARM GIC code (trying to make it its own sysbus device rather than having the .c file included from lots of places), and I noticed the following odd code in hw/exynos4210_gic.c:exynos4210_gic_init(): gic_

Re: [Qemu-devel] Debug single program in QEMU

2012-04-03 Thread 陳韋任
> Could you tell me what kind of programs can be emulated in user-mode of > QEMU ? Use-mode can emulate programs compiled for different ISA but with same OS. > It seems that only limited programs can be emulated in user-mode, like > /bin/ls, and with warning. A lot of other programs cannot be e

Re: [Qemu-devel] Monitor Instruction Execution

2012-04-03 Thread 陳韋任
> How can I monitor the execution of some specific instructions (for > example calls) of an application executing in linux-user mode? My > first idea was inserting an interrupt (creating its proper handler) > before all target instructions but I couldn`t get the it working. Any > ideas on this?

Re: [Qemu-devel] [PATCH 3/4] Switch from array based resource allocation to list

2012-04-03 Thread Kevin O'Connor
On Tue, Apr 03, 2012 at 06:39:22PM +1200, Alexey Korolev wrote: > Hi Kevin, > > Thank you for the patches! > I've created a diff of final version of your changes over mine, to make it > clear what has changed. > > Rather than including the complete diff, I've just left relevant parts and > adde

Re: [Qemu-devel] Debug single program in QEMU

2012-04-03 Thread Yue Chen
Hi, Could you tell me what kind of programs can be emulated in user-mode of QEMU ? It seems that only limited programs can be emulated in user-mode, like /bin/ls, and with warning. A lot of other programs cannot be emulated, like GUI programs, browser, etc. Additionally, why so many instructions

[Qemu-devel] buildbot failure in qemu on block_i386_debian_6_0

2012-04-03 Thread qemu
The Buildbot has detected a new failure on builder block_i386_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_i386_debian_6_0/builds/233 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki Build Re

Re: [Qemu-devel] KVM call minutes April 3

2012-04-03 Thread Michael Roth
On Tue, Apr 03, 2012 at 11:43:57PM +0300, Dor Laor wrote: > On 04/03/2012 05:43 PM, Markus Armbruster wrote: > >I'm afraid my notes are rather rough... > > > >* 1.1 > > soft freeze apr 15th (less than two weeks) > > hard freeze may 1 > > three months cycle for 1.2 > > stable machine types o

Re: [Qemu-devel] [PATCH, RESEND] kvm: Fix dirty tracking with large kernel page size

2012-04-03 Thread David Gibson
On Tue, Apr 03, 2012 at 09:08:16AM +0200, Jan Kiszka wrote: > On 2012-04-02 06:04, David Gibson wrote: > > From: Ben Herrenschmidt > > > > If the kernel page size is larger than TARGET_PAGE_SIZE, which > > happens for example on ppc64 with kernels compiled for 64K pages, > > the dirty tracking do

[Qemu-devel] [PATCH, RESEND] kvm: Fix dirty tracking with large kernel page size

2012-04-03 Thread David Gibson
If the kernel page size is larger than TARGET_PAGE_SIZE, which happens for example on ppc64 with kernels compiled for 64K pages, the dirty tracking doesn't work. Cc: Avi Kivity Cc: Marcelo Tosatti Signed-off-by: Benjamin Herrenschmidt Signed-off-by: David Gibson --- kvm-all.c | 14

[Qemu-devel] buildbot failure in qemu on block_mingw32

2012-04-03 Thread qemu
The Buildbot has detected a new failure on builder block_mingw32 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_mingw32/builds/176 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_rhel61 Build Reason: The

Re: [Qemu-devel] [RFC PATCH v1 1/4] SPI: initial support

2012-04-03 Thread Peter Crosthwaite
Hi Paul, Regarding using ssi, theres a few things that come to mind: Theres no sense of it being a multi-slave bus, its just a point to point link. SPI devices universally have the notion of the CS pin that tristates the device of the bus. Masters connect to a number of slaves and one-hot-decode

Re: [Qemu-devel] [PATCH] Better support for dma_addr_t variables

2012-04-03 Thread David Gibson
On Tue, Apr 03, 2012 at 10:53:10AM +0200, Andreas Färber wrote: > Am 03.04.2012 02:51, schrieb David Gibson: > > On Mon, Apr 02, 2012 at 09:49:12AM +0200, Andreas Färber wrote: > >> Am 31.03.2012 10:50, schrieb David Gibson: > >>> On Fri, Mar 30, 2012 at 11:34:25AM +0200, Andreas Färber wrote: > >>

[Qemu-devel] [PATCH 2/2] usb-xhci: Use PCI DMA helper functions

2012-04-03 Thread David Gibson
Shortly before 1.0, we added helper functions / wrappers for doing PCI DMA from individual devices. This makes what's going on clearer and means that when we add IOMMU support somewhere in the future, only the general PCI code will have to change, not every device that uses PCI DMA. However, usb-

[Qemu-devel] [PATCH 1/2] Better support for dma_addr_t variables

2012-04-03 Thread David Gibson
A while back, we introduced the dma_addr_t type, which is supposed to be used for bus visible memory addresses. At present, this is an alias for target_phys_addr_t, but this will change when we eventually add support for guest visible IOMMUs. There are some instances of target_phys_addr_t in the

[Qemu-devel] [PATCH 0/2] Preliminaries for DMA/IOMMU support

2012-04-03 Thread David Gibson
This series contains some preliminary patches to my big DMA series. This adds support for dma_addr_t type properties and uses that to convert the usb-xhci to use the existing pci dma wrapper functions. Changes since last version: * Added copyright notice (GPL v2 or later) to qdev-dma.h

[Qemu-devel] [RFC PATCH] pc: change default machine model and versions

2012-04-03 Thread Anthony Liguori
N.B. This is a small patch with significant implications. Please read carefully. Right now, '-M pc' is the default and, in general, this machine type has guest visible ABI changes in each version of QEMU. At some point in each release, we create a '-M pc-X.Y' corresponding to the last release an

Re: [Qemu-devel] [V6 PATCH] virtio-net: send gratuitous packets when needed

2012-04-03 Thread David Miller
From: Jason Wang Date: Wed, 28 Mar 2012 13:44:28 +0800 > As hypervior does not have the knowledge of guest network configuration, it's > better to ask guest to send gratuitous packets when needed. > > Guest tests VIRTIO_NET_S_ANNOUNCE bit during config change interrupt and when > it > is set, a

Re: [Qemu-devel] [PATCH 08/25] qdev: remove qdev_prop_set_defaults

2012-04-03 Thread Paolo Bonzini
Il 03/04/2012 23:09, Anthony Liguori ha scritto: > On 04/03/2012 06:15 AM, Paolo Bonzini wrote: >> Signed-off-by: Paolo Bonzini > > >> --- >> hw/qdev-properties.c | 22 -- >> hw/qdev.c| 28 +++- >> hw/qdev.h|1 - >>

Re: [Qemu-devel] [RFC PATCH v1 1/4] SPI: initial support

2012-04-03 Thread Paul Brook
> 2012/4/3 Paul Brook : > >> > I'm no SPI expert, but a bit of googling suggests that it's > >> > a synchronous duplex bus, so you always send a byte of data > >> > to the slave and get one back in return (even if for some slaves > >> > it might be random garbage). > > > > Waitaminute. So this is

Re: [Qemu-devel] [PATCH 08/25] qdev: remove qdev_prop_set_defaults

2012-04-03 Thread Anthony Liguori
On 04/03/2012 06:15 AM, Paolo Bonzini wrote: Signed-off-by: Paolo Bonzini --- hw/qdev-properties.c | 22 -- hw/qdev.c| 28 +++- hw/qdev.h|1 - 3 files changed, 23 insertions(+), 28 deletions(-) diff --git a/hw/q

Re: [Qemu-devel] [PATCH 07/25] qdev: use object_property_print in info qtree

2012-04-03 Thread Anthony Liguori
On 04/03/2012 06:15 AM, Paolo Bonzini wrote: Otherwise, non-string properties without a legacy counterpart are missed. Also fix error propagation in object_property_print itself, otherwise pointer properties are printed as "". Signed-off-by: Paolo Bonzini Reviewed-by: Anthony Liguori Regards

Re: [Qemu-devel] [PATCH] Fix race resulting in loosing event bit in GPE.1.sts

2012-04-03 Thread Igor Mammedov
Tried another approach, that involves only seabios change as specified in acpi50.spec: 5.6.4 General-Purpose Event Handling by switching from level to edge handler. diff --git a/src/acpi-dsdt.dsl b/src/acpi-dsdt.dsl index 4e04c48..51906ad 100644 --- a/src/acpi-dsdt.dsl +++ b/src/acpi-dsdt.dsl @@ -

Re: [Qemu-devel] [PATCH 06/25] qdev: fix -device foo,?

2012-04-03 Thread Anthony Liguori
On 04/03/2012 06:15 AM, Paolo Bonzini wrote: Since most property types do not have a parse property now, this was broken. Fix it by looking at the setter instead. Signed-off-by: Paolo Bonzini Reviewed-by: Anthony Liguori Regards, Anthony Liguori --- hw/qdev-monitor.c |4 ++-- 1 fi

[Qemu-devel] [PATCH v2] versatilepb: add i2c support

2012-04-03 Thread Oskar Andero
Signed-off-by: Oskar Andero --- hw/versatilepb.c | 80 ++ 1 files changed, 80 insertions(+), 0 deletions(-) diff --git a/hw/versatilepb.c b/hw/versatilepb.c index 25afb1e..d4fe168 100644 --- a/hw/versatilepb.c +++ b/hw/versatilepb.c @@ -16,9

Re: [Qemu-devel] [PATCH 05/25] qom: push type up to Object

2012-04-03 Thread Anthony Liguori
On 04/03/2012 06:15 AM, Paolo Bonzini wrote: Now that Object is a type, add an instance_init function and push the "type" property from qdev to there. Signed-off-by: Paolo Bonzini Reviewed-by: Anthony Liguori Regards, Anthony Liguori --- hw/qdev.c|6 -- qom/object.c | 11

Re: [Qemu-devel] [PATCH 04/25] qom: make Object a type

2012-04-03 Thread Anthony Liguori
On 04/03/2012 06:15 AM, Paolo Bonzini wrote: Right now the base Object class has a special NULL type. Change this so that we will be able to add class_init and class_base_init callbacks. To do this, remove some special casing of ObjectClass that is not really necessary. Signed-off-by: Paolo Bon

Re: [Qemu-devel] [PATCH 03/25] qom: add class_base_init

2012-04-03 Thread Anthony Liguori
On 04/03/2012 06:15 AM, Paolo Bonzini wrote: The class_base_init TypeInfo callback was present in one of the early QOM versions but removed (on my request...) before committing. We will need it soon, add it. Signed-off-by: Paolo Bonzini Heh, funny how that worked out :-) Reviewed-by: Anthony

Re: [Qemu-devel] [PATCH 02/25] qom: add object_child_foreach

2012-04-03 Thread Anthony Liguori
On 04/03/2012 06:15 AM, Paolo Bonzini wrote: A utility function that will be used to implement hierarchical realization. Signed-off-by: Paolo Bonzini Reviewed-by: Anthony Liguori Regards, Anthony Liguori --- include/qemu/object.h | 14 +- qom/object.c | 17

Re: [Qemu-devel] [PATCH 01/25] qom: add object_class_get_parent

2012-04-03 Thread Anthony Liguori
On 04/03/2012 06:15 AM, Paolo Bonzini wrote: This simple bit of functionality was missing and we'll need it soon, so add it. Signed-off-by: Paolo Bonzini Reviewed-by: Anthony Liguori Regards, Anthony Liguori --- include/qemu/object.h | 14 ++ qom/object.c | 13

Re: [Qemu-devel] KVM call minutes April 3

2012-04-03 Thread Dor Laor
On 04/03/2012 05:43 PM, Markus Armbruster wrote: I'm afraid my notes are rather rough... * 1.1 soft freeze apr 15th (less than two weeks) hard freeze may 1 three months cycle for 1.2 stable machine types only every few releases? "pc-next" * Maintainers, got distracted and my notes

Re: [Qemu-devel] [PATCH 0/6] fix w32 sockets

2012-04-03 Thread Stefan Weil
Am 03.04.2012 13:06, schrieb Paolo Bonzini: Il 20/03/2012 10:49, Paolo Bonzini ha scritto: The w32 main loop has been mostly broken by the introduction of the glib main loop. glib's g_poll does not use sockets on w32, so we need a separate approach. Patch 1 is a simple cleanup that is needed la

[Qemu-devel] [PATCH v5] sheepdog: implement SD_OP_FLUSH_VDI operation

2012-04-03 Thread Liu Yuan
From: Liu Yuan Flush operation is supposed to flush the write-back cache of sheepdog cluster. By issuing flush operation, we can assure the Guest of data reaching the sheepdog cluster storage. Cc: Kevin Wolf Cc: MORITA Kazutaka Signed-off-by: Liu Yuan --- Hi Kevin, Sorry, I found a proble

[Qemu-devel] [PATCH v8 5/8] tracetool: Add support for the 'simple' backend

2012-04-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- scripts/tracetool/backend/simple.py | 55 +++ 1 files changed, 55 insertions(+), 0 deletions(-) create mode 100644 scripts/tracetool/backend/simple.py diff --git a/scripts/tracetool/backend/simple.py b/scripts/tracetool/backen

[Qemu-devel] [PATCH v8 6/8] tracetool: Add support for the 'ust' backend

2012-04-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- scripts/tracetool/backend/ust.py | 90 ++ 1 files changed, 90 insertions(+), 0 deletions(-) create mode 100644 scripts/tracetool/backend/ust.py diff --git a/scripts/tracetool/backend/ust.py b/scripts/tracetool/backend/ust.p

[Qemu-devel] [PATCH v8 8/8] tracetool: Add MAINTAINERS info

2012-04-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- MAINTAINERS |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index f83d07c2..0e66dd8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -548,6 +548,8 @@ Tracing M: Stefan Hajnoczi S: Maintained F: trace/ +F: scrip

Re: [Qemu-devel] [RFC][PATCH v2 0/4] uq/master: Basic MSI support for in-kernel irqchip mode

2012-04-03 Thread Jan Kiszka
On 2012-04-03 09:23, Jan Kiszka wrote: > This is v2 of the RFC, fixing a memory leak in > kvm_flush_dynamic_msi_routes and adding support for the proposed > KVM_SIGNAL_MSI IOCTL. > > This series depends on "kvm: set gsi_bits and max_gsi correctly" > (http://thread.gmane.org/gmane.comp.emulators.kv

[Qemu-devel] [PATCH v8 7/8] tracetool: Add support for the 'dtrace' backend

2012-04-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- scripts/tracetool.py| 32 +++- scripts/tracetool/__init__.py | 11 scripts/tracetool/backend/dtrace.py | 97 +++ scripts/tracetool/format/d.py | 20 +++ scripts/tracetool/format/

[Qemu-devel] [PATCH v8 1/8] tracetool: Rewrite infrastructure as python modules

2012-04-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- Makefile.objs |6 Makefile.target | 13 - configure |4 scripts/tracetool | 648 - scripts/tracetool.py |

[Qemu-devel] [PATCH v8 4/8] tracetool: Add support for the 'stderr' backend

2012-04-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- scripts/tracetool/backend/stderr.py | 56 +++ 1 files changed, 56 insertions(+), 0 deletions(-) create mode 100644 scripts/tracetool/backend/stderr.py diff --git a/scripts/tracetool/backend/stderr.py b/scripts/tracetool/backen

[Qemu-devel] [PATCH v8 3/8] tracetool: Add module for the 'h' format

2012-04-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- scripts/tracetool/format/h.py | 45 + 1 files changed, 45 insertions(+), 0 deletions(-) create mode 100644 scripts/tracetool/format/h.py diff --git a/scripts/tracetool/format/h.py b/scripts/tracetool/format/h.py new fil

[Qemu-devel] [PATCH v8 2/8] tracetool: Add module for the 'c' format

2012-04-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- scripts/tracetool/format/c.py | 20 1 files changed, 20 insertions(+), 0 deletions(-) create mode 100644 scripts/tracetool/format/c.py diff --git a/scripts/tracetool/format/c.py b/scripts/tracetool/format/c.py new file mode 100644 index 0

[Qemu-devel] [PATCH v8 0/8] Rewrite tracetool using python modules

2012-04-03 Thread Lluís Vilanova
A full rewrite of the tracetool script using per-format and per-backend modules, so that it's easier to read and extend it in the future. Signed-off-by: Lluís Vilanova --- NOTE: This series applies in current master, ignoring the "Rewrite tracetool using python" series. Changes in v8: * B

Re: [Qemu-devel] [RFC PATCH v1 1/4] SPI: initial support

2012-04-03 Thread Peter Maydell
2012/4/3 Paul Brook : >> > I'm no SPI expert, but a bit of googling suggests that it's >> > a synchronous duplex bus, so you always send a byte of data >> > to the slave and get one back in return (even if for some slaves >> > it might be random garbage). > > Waitaminute. So this is just basic sync

Re: [Qemu-devel] [PATCH V2 1/3] exynos4210: add Exynos4210 i2c implementation

2012-04-03 Thread Dmitry Zhurikhin
Let me add my two cents here. I tested this patch slightly and didn't find any problems. On 2012-03-15 11:35, Igor Mitsyanko wrote: > Create 9 exynos4210 i2c interfaces. > > Signed-off-by: Igor Mitsyanko > --- > Makefile.target |1 + > hw/exynos4210.c | 26 +++ > hw/exynos4210.h

[Qemu-devel] Monitor instruction execution

2012-04-03 Thread César
Hello there, How can I monitor the execution of some specific instructions (for example calls) of an application executing in linux-user mode? My first idea was inserting an interrupt (creating its proper handler) before all target instructions but I couldn`t get the it working. Any ideas on this?

Re: [Qemu-devel] [RFC PATCH v1 1/4] SPI: initial support

2012-04-03 Thread Paul Brook
> > I'm no SPI expert, but a bit of googling suggests that it's > > a synchronous duplex bus, so you always send a byte of data > > to the slave and get one back in return (even if for some slaves > > it might be random garbage). Waitaminute. So this is just basic synchronous serial? We already h

Re: [Qemu-devel] [PATCH v2 0/4] QOM'ify S/390 CPU

2012-04-03 Thread Christian Borntraeger
On 02/04/12 19:09, Andreas Färber wrote: > Hello, > > This series breaks down my S/390 QOM'ification patch from the > qom-cpu-others.v1 > RFC series into better digestable pieces and reorders it next. > s390x ignores any user-specified -cpu argument, thus needs only one CPU type. > > I've tested

[Qemu-devel] [PATCH v2] qemu/configure: fix CFLAGS handling for i386

2012-04-03 Thread Olaf Hering
configure will generate incorrect CFLAGS which will lead to compile errors due to unknown gcc options, iff CFLAGS was already in the environment during configure invocation. Add a space before the -march=i486 gcc option. Remove += operator usage because configure is not a bash script. This patch

Re: [Qemu-devel] [PATCH] gdbstub: Synchronize CPU state unconditionally in gdb_set_cpu_pc

2012-04-03 Thread Christoffer Dall
On Tue, Apr 3, 2012 at 7:57 AM, Peter Maydell wrote: > Ping? > sorry about late response. > > On 12 March 2012 16:24, Peter Maydell wrote: >> Synchronize the CPU state via cpu_sychronize_state() unconditionally >> in gdb_set_cpu_pc() rather than only in some of the target ifdef >> ladder cases.

[Qemu-devel] Using load_elf

2012-04-03 Thread Brian Vandenberg
I'm attempting to familiarize myself with the APIs used to add support for boards in qemu, and I have a few questions. * How does using load_elf differ from load_image_targphys? As an example, many of the boards I've looked at have a hard-coded entrypoint. In mpc8455, it looks as though it d

Re: [Qemu-devel] [RFC][PATCH v2 0/4] uq/master: Basic MSI support for in-kernel irqchip mode

2012-04-03 Thread Jan Kiszka
On 2012-04-03 15:06, Michael S. Tsirkin wrote: > On Tue, Apr 03, 2012 at 09:23:12AM +0200, Jan Kiszka wrote: >> This is v2 of the RFC, fixing a memory leak in >> kvm_flush_dynamic_msi_routes and adding support for the proposed >> KVM_SIGNAL_MSI IOCTL. >> >> This series depends on "kvm: set gsi_bits

[Qemu-devel] Monitor Instruction Execution

2012-04-03 Thread César
Hello there, How can I monitor the execution of some specific instructions (for example calls) of an application executing in linux-user mode? My first idea was inserting an interrupt (creating its proper handler) before all target instructions but I couldn`t get the it working. Any ideas on this?

Re: [Qemu-devel] [PATCH] MSI / MSIX injection for Xen HVM

2012-04-03 Thread Wei Liu
On Thu, 2012-03-01 at 15:56 +, Paolo Bonzini wrote: > Il 01/03/2012 15:50, Stefano Stabellini ha scritto: > >>> > > That is a good point actually: we already have lapic emulation in Xen, > >>> > > it makes sense to have apic-msi in Xen too. > >>> > > We would still need the changes to msi_notif

Re: [Qemu-devel] [PATCH] MSI / MSIX injection for Xen HVM

2012-04-03 Thread Jan Kiszka
On 2012-04-03 18:44, Wei Liu wrote: > On Thu, 2012-03-01 at 15:56 +, Paolo Bonzini wrote: >> Il 01/03/2012 15:50, Stefano Stabellini ha scritto: >>> That is a good point actually: we already have lapic emulation in Xen, >>> it makes sense to have apic-msi in Xen too. >>> We would st

[Qemu-devel] gic_cpu_write() call in exynos4210_gic_init()

2012-04-03 Thread Peter Maydell
Hi; I've been working on a refactoring of the ARM GIC code (trying to make it its own sysbus device rather than having the .c file included from lots of places), and I noticed the following odd code in hw/exynos4210_gic.c:exynos4210_gic_init(): gic_cpu_write(&s->gic, 1, 0, 1); This seems to b

Re: [Qemu-devel] Intermittent e1000 failure on qemu-kvm 1.0

2012-04-03 Thread Chris Webb
Stefan Hajnoczi writes: > >> Are you sure no other guest has the same MAC address or IP address? > >> This weird behavior sounds similar to what happens when you have > >> multiple devices on a network using the same address - the results are > >> very confusing :). > > > > Yes, I agree! However

[Qemu-devel] [PATCH V11 5/8] Introduce Xen PCI Passthrough, qdevice (1/3)

2012-04-03 Thread Anthony PERARD
From: Allen Kay A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Allen Kay Signed-off-by: Guy Zana Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- Makefile.target |2 + hw/xen_common.h |3 + hw

[Qemu-devel] [PATCH 2/2] qemu-iotests: Test unknown qcow2 header extensions

2012-04-03 Thread Kevin Wolf
The immportant thing here is that header extensions don't get silently dropped when the header is rewritten, e.g. during a rebase. Signed-off-by: Kevin Wolf --- tests/qemu-iotests/031 | 72 + tests/qemu-iotests/031.out | 76

[Qemu-devel] [PATCH 1/2] qemu-iotests: qcow2.py

2012-04-03 Thread Kevin Wolf
This adds a tool that is meant to inspect and edit qcow2 files in a low-level way, that wouldn't be possible with qemu-img/io, for example by adding yet unknown extensions or flags. This way we can test whether qemu deals properly with future backwards compatible extensions. For now, let's start w

[Qemu-devel] [PATCH 0/2] qemu-iotests: Test qcow2 header rewrites

2012-04-03 Thread Kevin Wolf
Some bugs related to rewriting the qcow2 header (as it happens e.g. during qemu-img rebase) have been fixed recently. Here is the test case for it. Kevin Wolf (2): qemu-iotests: qcow2.py qemu-iotests: Test unknown qcow2 header extensions tests/qemu-iotests/031 | 72 +++ te

[Qemu-devel] [PATCH V11 3/8] Introduce XenHostPCIDevice to access a pci device on the host.

2012-04-03 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- Makefile.target |3 + hw/xen-host-pci-device.c | 393 ++ hw/xen-host-pci-device.h | 55 +++ 3 files changed, 451 insertions(+), 0 deletions(-) create mode 100644 hw/xen-host-pci-device.c create mod

Re: [Qemu-devel] [PATCH v3] Replace bdrv_* to bdrv_aio_* functions in DMA mode in fdc.c.

2012-04-03 Thread Stefan Hajnoczi
On Tue, Apr 3, 2012 at 12:53 PM, Zhi Hui Li wrote: > > I think what you say up is right, I will correct them, thank you very much! > >>> +        bdrv_aio_readv(cur_drv->bs, fd_sector(cur_drv), >>> +&fdctrl->qiov, fdc_sector_num, fdctrl_read_DMA_cb, opaque_cb); >>> +        return dma_len; >> >> >

[Qemu-devel] [PATCH 2/2][sparc64] Improve interrupt handling priority

2012-04-03 Thread Artyom Tarasenko
The vector interrupt has higher priority than interrupt_level_n. Also check only interrupt_level_n concurency when TL > 0, the traps of other types may be nested. Signed-off-by: Artyom Tarasenko --- hw/sun4u.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/hw/sun4

[Qemu-devel] [PATCH 1/2][sparc64] Fix vector interrupt handling

2012-04-03 Thread Artyom Tarasenko
Don't produce stray irq 5, don't overwrite ivec_data if still busy with processing of the previous interrupt. Signed-off-by: Artyom Tarasenko --- hw/sun4u.c | 29 - 1 files changed, 16 insertions(+), 13 deletions(-) diff --git a/hw/sun4u.c b/hw/sun4u.c index 1d6769

Re: [Qemu-devel] [PATCH v2] Replace bdrv_* to bdrv_aio_* functions in pio mode in fdc.c.

2012-04-03 Thread Stefan Hajnoczi
On Tue, Apr 3, 2012 at 4:33 PM, Stefan Hajnoczi wrote: > On Mon, Apr 2, 2012 at 2:08 PM, Paolo Bonzini wrote: >> Il 02/04/2012 14:07, Stefan Hajnoczi ha scritto: >>> On Sat, Mar 31, 2012 at 09:15:10PM +0800, Li Zhi Hui wrote: Replace bdrv_* to bdrv_aio_* functions in pio mode in fdc.c.

Re: [Qemu-devel] [PATCH v2] Replace bdrv_* to bdrv_aio_* functions in pio mode in fdc.c.

2012-04-03 Thread Stefan Hajnoczi
On Mon, Apr 2, 2012 at 2:08 PM, Paolo Bonzini wrote: > Il 02/04/2012 14:07, Stefan Hajnoczi ha scritto: >> On Sat, Mar 31, 2012 at 09:15:10PM +0800, Li Zhi Hui wrote: >>> Replace bdrv_* to bdrv_aio_* functions in pio mode in fdc.c. >>> >>> Signed-off-by: Li Zhi Hui >>> --- >>>  hw/fdc.c |  123 >

[Qemu-devel] [PATCH V11 4/8] pci.c: Add opaque argument to pci_for_each_device.

2012-04-03 Thread Anthony PERARD
The purpose is to have a more generic pci_for_each_device by passing an extra argument to the function called on every device. This patch will be used in a next patch. Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- hw/pci.c | 11 +++ hw/pci.h |4

Re: [Qemu-devel] Intermittent e1000 failure on qemu-kvm 1.0

2012-04-03 Thread Stefan Hajnoczi
On Tue, Apr 3, 2012 at 2:41 PM, Chris Webb wrote: > Stefan Hajnoczi writes: > >> No, that's weird.  I would have simply tried "b start_xmit" and as >> long as the binary has symbols gdb would know what to do. > > I'll get another one and give it a go. There wasn't any particular reason I > gave a

[Qemu-devel] [PATCH V11 0/8] Xen PCI Passthrough

2012-04-03 Thread Anthony PERARD
Hi all, This patch series introduces the PCI passthrough for Xen. Please review patches number 1, 2, 3, 4 and 7. First, we have XenHostPCIDevice that help to access one PCI device of the host. Then, the PCI passthrough device himself. Cut in 3 parts (or file), there is one to take care of th

[Qemu-devel] [PATCH V11 8/8] Introduce Xen PCI Passthrough, MSI (3/3)

2012-04-03 Thread Anthony PERARD
From: Jiang Yunhong A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Jiang Yunhong Signed-off-by: Shan Haitao Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- Makefile.target |1 + hw/xen_pt.c |

[Qemu-devel] [PATCH V11 6/8] Introduce Xen PCI Passthrough, PCI config space helpers (2/3)

2012-04-03 Thread Anthony PERARD
From: Allen Kay A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Allen Kay Signed-off-by: Guy Zana Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- hw/xen_pt.c | 10 + hw/xen_pt.h |2 + hw

[Qemu-devel] [PATCH V11 7/8] Introduce apic-msidef.h

2012-04-03 Thread Anthony PERARD
This patch move the msi definition from apic.c to apic-msidef.h. So it can be used also by other .c files. Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- hw/apic-msidef.h | 30 ++ hw/apic.c| 11 +-- 2 files changed, 31 insertions(+

[Qemu-devel] [PATCH V11 2/8] configure: Introduce --enable-xen-pci-passthrough.

2012-04-03 Thread Anthony PERARD
Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk --- configure | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 4b3adc9..c84a252 100755 --- a/configure +++ b/configure @@ -1

[Qemu-devel] [PATCH V11 1/8] pci_ids: Add INTEL_82599_SFP_VF id.

2012-04-03 Thread Anthony PERARD
We are using this in our quirk lookup provided by patch titled: Introduce Xen PCI Passthrough, PCI config space helpers. Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- hw/pci_ids.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pci_ids.h b/hw/pci_ids

Re: [Qemu-devel] USB 2.0 printer passthrough very slow

2012-04-03 Thread Erik Rull
Hi, Reeted wrote: On 04/03/12 15:33, Erik Rull wrote: Hi, please try to use the .cfg file from the docs/ directory, The ich9-ehci-uhci.cfg ? Yes it's the same thing I am using. If you look at the section I have replicated that file exactly. I had access rights problem using the .cfg file, t

Re: [Qemu-devel] [PATCH] Remove PCI class code from virtio balloon device

2012-04-03 Thread Michael S. Tsirkin
On Mon, Apr 02, 2012 at 10:11:31AM +0300, Michael S. Tsirkin wrote: > On Mon, Apr 02, 2012 at 04:49:58PM +1000, David Gibson wrote: > > On Mon, Apr 02, 2012 at 09:46:07AM +0300, Michael S. Tsirkin wrote: > > > This conflicts with deduplication of properties work. > > > I'll apply on top of that, so

Re: [Qemu-devel] [PATCH V2 1/3] exynos4210: add Exynos4210 i2c implementation

2012-04-03 Thread Igor Mitsyanko
On 04/03/2012 05:54 PM, Dmitry Zhurikhin wrote: Let me add my two cents here. I tested this patch slightly and didn't find any problems. Great, thanks! On 2012-03-15 11:35, Igor Mitsyanko wrote: Create 9 exynos4210 i2c interfaces. Signed-off-by: Igor Mitsyanko --- Makefile.target |

Re: [Qemu-devel] [PATCHv3] piix: fix up/down races

2012-04-03 Thread Michael S. Tsirkin
On Tue, Apr 03, 2012 at 07:59:49AM -0600, Alex Williamson wrote: > On Tue, 2012-04-03 at 13:05 +0300, Michael S. Tsirkin wrote: > > On Tue, Apr 03, 2012 at 02:40:41AM -0400, Igor Mammedov wrote: > > > > > + */ > > > > > +s->pci0_status.down &= ~(1U << slot); > > > > > > > > Should we clear

[Qemu-devel] KVM call minutes April 3

2012-04-03 Thread Markus Armbruster
I'm afraid my notes are rather rough... * 1.1 soft freeze apr 15th (less than two weeks) hard freeze may 1 three months cycle for 1.2 stable machine types only every few releases? "pc-next" * Maintainers, got distracted and my notes make no sense, sorry * MSI injection to KVM irqchips f

Re: [Qemu-devel] [PULL] pci, virtio, net

2012-04-03 Thread Michael S. Tsirkin
On Mon, Mar 19, 2012 at 01:11:16PM -0500, Anthony Liguori wrote: > On 03/15/2012 06:49 PM, Michael S. Tsirkin wrote: > >I'm trying a signed pull request now. You can check the signature > >on for_anthony if you like, and if your git is recent enough > >it will do it for you automatically. > > > >Th

Re: [Qemu-devel] [Xen-devel] [XEN][RFC PATCH 14/15] xl-parsing: Parse the new option device_models

2012-04-03 Thread Ian Jackson
Stefano Stabellini writes ("Re: [Xen-devel] [XEN][RFC PATCH 14/15] xl-parsing: Parse the new option device_models"): > On Tue, 3 Apr 2012, Ian Jackson wrote: > > Currently the bdfs are allocated by the single qemu-dm, right ? Why > > cannot that functionality stay there, with the pci bridge emula

Re: [Qemu-devel] [Xen-devel] [XEN][RFC PATCH 14/15] xl-parsing: Parse the new option device_models

2012-04-03 Thread Stefano Stabellini
On Tue, 3 Apr 2012, Ian Jackson wrote: > Julien Grall writes ("Re: [Xen-devel] [XEN][RFC PATCH 14/15] xl-parsing: > Parse the new option device_models"): > > On 04/03/2012 02:31 PM, Ian Jackson wrote: > > > Are the PCI addresses not assigned in a deterministic fashion by code > > > in qemu-dm, in

Re: [Qemu-devel] [Xen-devel] [XEN][RFC PATCH 14/15] xl-parsing: Parse the new option device_models

2012-04-03 Thread Ian Jackson
Julien Grall writes ("Re: [Xen-devel] [XEN][RFC PATCH 14/15] xl-parsing: Parse the new option device_models"): > On 04/03/2012 02:31 PM, Ian Jackson wrote: > > Are the PCI addresses not assigned in a deterministic fashion by code > > in qemu-dm, in this case in the qemu-dm which is emulating the p

Re: [Qemu-devel] [PATCHv3] piix: fix up/down races

2012-04-03 Thread Alex Williamson
On Tue, 2012-04-03 at 13:05 +0300, Michael S. Tsirkin wrote: > On Tue, Apr 03, 2012 at 02:40:41AM -0400, Igor Mammedov wrote: > > > > + */ > > > > +s->pci0_status.down &= ~(1U << slot); > > > > > > Should we clear "up" here too? > > Is it possible to create pci dev for not yet freed pci sl

Re: [Qemu-devel] USB 2.0 printer passthrough very slow

2012-04-03 Thread Reeted
On 04/03/12 14:26, Reeted wrote: My canon IP4700 now takes 3 to 4 minutes for a print job to execute and clear from the queue. That's almost unusable. I am seeing new patches in qemu master branch (i.e. newer than 1.0.1), related to the pipelining of ehci commands by Gerd Hoffmann.

Re: [Qemu-devel] [Xen-devel] [XEN][RFC PATCH 14/15] xl-parsing: Parse the new option device_models

2012-04-03 Thread Julien Grall
On 04/03/2012 02:31 PM, Ian Jackson wrote: Stefano Stabellini writes ("Re: [Xen-devel] [XEN][RFC PATCH 14/15] xl-parsing: Parse the new option device_models"): On Mon, 2 Apr 2012, Ian Jackson wrote: I don't think this is really a suitable interface. The PCI space in the guest is con

[Qemu-devel] [PATCHv4] piix: fix up/down races

2012-04-03 Thread Michael S. Tsirkin
piix acpi interface suffers from the following 2 issues: 1. - delete device a - quickly add device b in another slot if we do this before guest reads the down register, the down event is discarded and device will never be deleted. 2. - delete device a - quickly reset before guest can respond in

Re: [Qemu-devel] USB 2.0 printer passthrough very slow

2012-04-03 Thread Reeted
On 04/03/12 15:33, Erik Rull wrote: Hi, please try to use the .cfg file from the docs/ directory, The ich9-ehci-uhci.cfg ? Yes it's the same thing I am using. If you look at the section I have replicated that file exactly. I had access rights problem using the .cfg file, that's why I replic

Re: [Qemu-devel] [PATCHv3] piix: fix up/down races

2012-04-03 Thread Michael S. Tsirkin
On Tue, Apr 03, 2012 at 03:56:18PM +0300, Michael S. Tsirkin wrote: > > > +/* > > > + * Clear DOWN register - this is good for a case where guest can't > > > + * write to CLR_DOWN because of VM reset, and for compatibility with > > > + * old guests which do not have CLR_DOWN. > > >

Re: [Qemu-devel] Intermittent e1000 failure on qemu-kvm 1.0

2012-04-03 Thread Stefan Hajnoczi
On Tue, Apr 3, 2012 at 1:42 PM, Chris Webb wrote: > Stefan Hajnoczi writes: > >> In a case like this it might be most effective to catch a VM in the >> bad state and then go in with gdb to see what is broken.  The basic >> approach would be putting breakpoints on the e1000 device model's >> trans

Re: [Qemu-devel] Intermittent e1000 failure on qemu-kvm 1.0

2012-04-03 Thread Chris Webb
Stefan Hajnoczi writes: > No, that's weird. I would have simply tried "b start_xmit" and as > long as the binary has symbols gdb would know what to do. I'll get another one and give it a go. There wasn't any particular reason I gave a line number rather than a function except that I worried the

Re: [Qemu-devel] [PATCH] usb-ehci: Ensure frindex writes leave a valid frindex value

2012-04-03 Thread Alon Levy
On Tue, Apr 03, 2012 at 04:16:02PM +0300, Alon Levy wrote: > On Tue, Apr 03, 2012 at 02:21:47PM +0200, Hans de Goede wrote: > > frindex is a 14 bits counter, so bits 31-14 should always be 0, and > > after the commit titled "usb-ehci: frindex always is a 14 bits counter" > > we rely on frindex alwa

  1   2   3   >