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 Bonzinipbonz...@redhat.com Reviewed-by: Anthony Liguori aligu...@us.ibm.com Regards, Anthony Liguori ---

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 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 null. Signed-off-by: Paolo Bonzinipbonz...@redhat.com Reviewed-by:

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 Bonzinipbonz...@redhat.com --- hw/qdev-properties.c | 22 -- hw/qdev.c| 28 +++- hw/qdev.h|1 - 3 files changed, 23 insertions(+), 28

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

2012-04-03 Thread Paul Brook
2012/4/3 Paul Brook p...@codesourcery.com: 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 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 Bonzinipbonz...@redhat.com --- hw/qdev-properties.c | 22 -- hw/qdev.c| 28 +++- hw/qdev.h|1

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

2012-04-03 Thread David Miller
From: Jason Wang jasow...@redhat.com 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

[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

[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] [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 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,

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: Am

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

[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:

[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 a...@redhat.com Cc: Marcelo Tosatti mtosa...@redhat.com Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org

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 b...@kernel.crashing.org If the kernel page size is larger than TARGET_PAGE_SIZE, which happens for example on ppc64 with kernels compiled for 64K pages, the

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 only every few

[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: [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

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 added

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? How

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

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():

[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

[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

[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 da...@gibson.dropbear.id.au --- hw/spapr_vio.h |2 -- 1 files changed, 0 insertions(+), 2

[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

<    1   2   3