Re: [Qemu-devel] Guest freezes "Refined TSC clocksource calibration ..."

2011-10-02 Thread Mulyadi Santosa
Hi. :) On Sat, Oct 1, 2011 at 19:16, Onkar N Mahajan wrote: > > Compiled 3.1.0-rc3+ from source (see attached config file) and updated the > host(fc14) kernel ; > So host is now running 3.1.0-rc3+ > > Now I also want to try to boot FC14 guest with this updated kernel , like > this - > > ./qem

Re: [Qemu-devel] Qemu - compiling error in tcg.c - flush_icache_range

2011-10-02 Thread Mulyadi Santosa
Hi... :) On Sun, Oct 2, 2011 at 05:44, Maurizio Caloro wrote: > > i was trying with this code that i found with googling but without any success > >>tcg.c >>    /* return tcg_gen_code_common(s, gen_code_buf, offset); */ >>    int ret; >>    ret = tcg_gen_code_common(s, gen_code_buf, offset); >>  

[Qemu-devel] [Bug 864490] [NEW] Windows 2008 x64 (SBS Server) freezes randomly when using more than 1 CPU core

2011-10-02 Thread Attila Megyeri
Public bug reported: This issue has been giving headache to us since a long time. Difficult to reproduce as it happens randomly. We had this issue when we ran Windows 2008 x64 or Windows SBS Server guests in either XEN 3.3 or Proxmox environments. When only one CPU core is assigned to the guest,

Re: [Qemu-devel] Guest freezes "Refined TSC clocksource calibration ..."

2011-10-02 Thread Dor Laor
On 10/02/2011 09:24 AM, Mulyadi Santosa wrote: Hi. :) On Sat, Oct 1, 2011 at 19:16, Onkar N Mahajan wrote: Compiled 3.1.0-rc3+ from source (see attached config file) and updated the host(fc14) kernel ; So host is now running 3.1.0-rc3+ Now I also want to try to boot FC14 guest with this

Re: [Qemu-devel] blobstore disk format (was Re: Design of the blobstore)

2011-10-02 Thread Michael S. Tsirkin
On Wed, Sep 28, 2011 at 11:48:19AM -0400, Stefan Berger wrote: > On 09/22/2011 02:37 AM, Michael S. Tsirkin wrote: > >On Wed, Sep 21, 2011 at 09:44:37PM -0400, Stefan Berger wrote: > >>On 09/19/2011 03:04 PM, Michael S. Tsirkin wrote: > >>>On Mon, Sep 19, 2011 at 12:22:02PM -0400, Stefan Berger wro

Re: [Qemu-devel] [PATCH 1/2] virtio: Use global memory barrier macros

2011-10-02 Thread Michael S. Tsirkin
On Tue, Sep 20, 2011 at 12:05:20PM +1000, David Gibson wrote: > The virtio code uses wmb() macros in several places, as required by the > SMP-aware virtio protocol. However the wmb() macro is locally defined > to be a compiler barrier only. This is probably sufficient on x86 > due to its strong s

Re: [Qemu-devel] [PATCH 2/2] Barriers in qemu-barrier.h should not be x86 specific

2011-10-02 Thread Michael S. Tsirkin
On Tue, Sep 20, 2011 at 12:05:21PM +1000, David Gibson wrote: > qemu-barrier.h contains a few macros implementing memory barrier > primitives used in several places throughout qemu. However, apart > from the compiler-only barrier, the defined wmb() is correct only for > x86, or platforms which are

Re: [Qemu-devel] [PATCH 1/9] Add stub functions for PCI device models to do PCI DMA

2011-10-02 Thread Michael S. Tsirkin
On Mon, Sep 05, 2011 at 02:34:56PM +1000, David Gibson wrote: > This patch adds functions to pci.[ch] to perform PCI DMA operations. At > present, these are just stubs which perform directly cpu physical memory > accesses. > > Using these stubs, however, distinguishes PCI device DMA transactions

Re: [Qemu-devel] [PATCH 1/9] Add stub functions for PCI device models to do PCI DMA

2011-10-02 Thread Avi Kivity
On 10/02/2011 12:25 PM, Michael S. Tsirkin wrote: On Mon, Sep 05, 2011 at 02:34:56PM +1000, David Gibson wrote: > This patch adds functions to pci.[ch] to perform PCI DMA operations. At > present, these are just stubs which perform directly cpu physical memory > accesses. > > Using these stu

Re: [Qemu-devel] [PATCH] Correctly assign PCI domain numbers

2011-10-02 Thread Michael S. Tsirkin
On Thu, Aug 11, 2011 at 04:38:34PM +1000, David Gibson wrote: > On Wed, Aug 10, 2011 at 11:34:23AM +0300, Michael S. Tsirkin wrote: > > On Thu, Aug 04, 2011 at 07:00:38PM +1000, David Gibson wrote: > > > On Wed, Aug 03, 2011 at 04:28:33PM +0300, Michael S. Tsirkin wrote: > > > > On Tue, Aug 02, 201

Re: [Qemu-devel] [PATCH 1/9] Add stub functions for PCI device models to do PCI DMA

2011-10-02 Thread Michael S. Tsirkin
On Sun, Oct 02, 2011 at 12:29:08PM +0200, Avi Kivity wrote: > On 10/02/2011 12:25 PM, Michael S. Tsirkin wrote: > >On Mon, Sep 05, 2011 at 02:34:56PM +1000, David Gibson wrote: > >> This patch adds functions to pci.[ch] to perform PCI DMA operations. At > >> present, these are just stubs which p

Re: [Qemu-devel] [PATCH 1/9] Add stub functions for PCI device models to do PCI DMA

2011-10-02 Thread Avi Kivity
On 10/02/2011 12:52 PM, Michael S. Tsirkin wrote: On Sun, Oct 02, 2011 at 12:29:08PM +0200, Avi Kivity wrote: > On 10/02/2011 12:25 PM, Michael S. Tsirkin wrote: > >On Mon, Sep 05, 2011 at 02:34:56PM +1000, David Gibson wrote: > >> This patch adds functions to pci.[ch] to perform PCI DMA ope

Re: [Qemu-devel] [PATCH 1/9] Add stub functions for PCI device models to do PCI DMA

2011-10-02 Thread Michael S. Tsirkin
On Sun, Oct 02, 2011 at 12:58:35PM +0200, Avi Kivity wrote: > On 10/02/2011 12:52 PM, Michael S. Tsirkin wrote: > >On Sun, Oct 02, 2011 at 12:29:08PM +0200, Avi Kivity wrote: > >> On 10/02/2011 12:25 PM, Michael S. Tsirkin wrote: > >> >On Mon, Sep 05, 2011 at 02:34:56PM +1000, David Gibson wrote:

Re: [Qemu-devel] [PATCH 1/9] Add stub functions for PCI device models to do PCI DMA

2011-10-02 Thread Alexander Graf
On 02.10.2011, at 13:17, Michael S. Tsirkin wrote: > On Sun, Oct 02, 2011 at 12:58:35PM +0200, Avi Kivity wrote: >> On 10/02/2011 12:52 PM, Michael S. Tsirkin wrote: >>> On Sun, Oct 02, 2011 at 12:29:08PM +0200, Avi Kivity wrote: On 10/02/2011 12:25 PM, Michael S. Tsirkin wrote: > On Mon

Re: [Qemu-devel] [PATCH V11 5/5] Add a TPM Passthrough backend driver implementation

2011-10-02 Thread Michael S. Tsirkin
On Wed, Sep 28, 2011 at 09:23:00AM -0400, Stefan Berger wrote: ... > Some notes about the host TPM: > The TPM needs to be enabled and activated. If that's not the case one > has to go through the BIOS/UEFI and enable and activate that TPM for TPM > commands to work as expected. > It may be necess

Re: [Qemu-devel] [PATCH V11 0/5] Qemu Trusted Platform Module (TPM) integration

2011-10-02 Thread Michael S. Tsirkin
On Wed, Sep 28, 2011 at 09:22:55AM -0400, Stefan Berger wrote: > The following series of patches adds TPM (Trusted Platform Module) support > to Qemu. An emulator for the TIS (TPM Interface Spec) interface is > added that provides the basis for accessing a 'backend' implementing the > actual > TPM

Re: [Qemu-devel] [PATCH 1/9] Add stub functions for PCI device models to do PCI DMA

2011-10-02 Thread Michael S. Tsirkin
On Sun, Oct 02, 2011 at 01:28:37PM +0200, Alexander Graf wrote: > >> Good point. Though this is really a virtio specific issue since > >> other devices have explicit endianness (not guest dependent). > > > > Hmm, not entirely virtio specific, some devices use stX macros to do the > > conversion.

Re: [Qemu-devel] [PATCH 3/9] eepro100: Use PCI DMA stub functions

2011-10-02 Thread Michael S. Tsirkin
On Mon, Sep 05, 2011 at 02:34:58PM +1000, David Gibson wrote: > From: Eduard - Gabriel Munteanu > > This updates the eepro100 device emulation to use the explicit PCI DMA > functions, instead of directly calling physical memory access functions. > > Signed-off-by: Eduard - Gabriel Munteanu > Si

Re: [Qemu-devel] [PATCH 1/9] Add stub functions for PCI device models to do PCI DMA

2011-10-02 Thread Avi Kivity
On 10/02/2011 01:17 PM, Michael S. Tsirkin wrote: On Sun, Oct 02, 2011 at 12:58:35PM +0200, Avi Kivity wrote: > On 10/02/2011 12:52 PM, Michael S. Tsirkin wrote: > >On Sun, Oct 02, 2011 at 12:29:08PM +0200, Avi Kivity wrote: > >> On 10/02/2011 12:25 PM, Michael S. Tsirkin wrote: > >> >On

Re: [Qemu-devel] [PATCH 1/9] Add stub functions for PCI device models to do PCI DMA

2011-10-02 Thread Michael S. Tsirkin
On Sun, Oct 02, 2011 at 02:01:10PM +0200, Avi Kivity wrote: > On 10/02/2011 01:17 PM, Michael S. Tsirkin wrote: > >On Sun, Oct 02, 2011 at 12:58:35PM +0200, Avi Kivity wrote: > >> On 10/02/2011 12:52 PM, Michael S. Tsirkin wrote: > >> >On Sun, Oct 02, 2011 at 12:29:08PM +0200, Avi Kivity wrote: >

Re: [Qemu-devel] [PATCH 1/9] Add stub functions for PCI device models to do PCI DMA

2011-10-02 Thread Avi Kivity
On 10/02/2011 02:14 PM, Michael S. Tsirkin wrote: > > These are fine - explicit endianness. Right. So changing these to e.g. stl_dma and assuming LE is default seems like a step backwards. Agree. "l" implies a word with some endianness, not "4 unstructured bytes". -- error compiling commit

[Qemu-devel] viewing continuous guest virtual memory as continuous in qemu

2011-10-02 Thread Alon Levy
Hi, I'm trying to acheive the $subject. Some background: currently spice relies on a preallocated pci bar for both surfaces and for VGA framebuffer + commands. I have been trying to get rid of the surfaces bar. To do that I allocate memory in the guest and then translate it for spice-server co

[Qemu-devel] [PATCH] hmp: re-enable trace-file command

2011-10-02 Thread Michael Roth
Commit 31965ae27bc11e90674be12584bb201b83df5aef reverted a previous renaming of CONFIG_SIMPLE_TRACE->CONFIG_TRACE_SIMPLE in a couple spots, leading to trace-file currently being unavailable. Signed-off-by: Michael Roth --- hmp-commands.hx |2 +- monitor.c |2 +- 2 files changed, 2

Re: [Qemu-devel] [PATCH 3/3] memory: Print regions in ascending order

2011-10-02 Thread Avi Kivity
On 09/27/2011 04:00 PM, Jan Kiszka wrote: Makes reading the output more user friendly. Thanks, applied all three. @@ -1339,12 +1339,13 @@ typedef QTAILQ_HEAD(queue, MemoryRegionList) MemoryRegionListHead; static void mtree_print_mr(fprintf_function mon_printf, void *f,

Re: [Qemu-devel] [PATCH 1/3] memory: Print region priority

2011-10-02 Thread Avi Kivity
On 09/27/2011 04:00 PM, Jan Kiszka wrote: Useful to discover eclipses. Signed-off-by: Jan Kiszka --- PS: Current memory/master requires an obvious build fix (central definition of some types), but I assume you already have a patch in your tree. No, doesn't happen here. -- error compiling co

[Qemu-devel] segfault on current HEAD, qemu-system-arm

2011-10-02 Thread Avi Kivity
3917149 gives me this: [root@westmere-ep arm-test]# gdb --args qemu-system-arm -kernel zImage.integrator -initrd arm_root.img GNU gdb (GDB) Fedora (7.3-41.fc15) Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This

[Qemu-devel] [PATCH 01/25] etrax-pic: Convert to MemoryRegion

2011-10-02 Thread Avi Kivity
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias Signed-off-by: Avi Kivity --- hw/etraxfs_pic.c | 30 +++--- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/hw/etraxfs_pic.c b/hw/etraxfs_pic.c index 4feffda..47a56d7 100644 --- a/hw/etraxfs_p

[Qemu-devel] [PULL 00/25] Memory API conversion, batch 10

2011-10-02 Thread Avi Kivity
Please pull from: git://github.com/avikivity/qemu.git memory/batch etrax, milkymist, serial conversions. All have already been posted on the list. Edgar E. Iglesias (5): etrax-pic: Convert to MemoryRegion etrax-ser: Convert to MemoryRegion etrax-timer: Convert to MemoryRegion etrax-dm

[Qemu-devel] [PATCH 09/25] serial: Add MemoryRegion parameter to serial_mm_init

2011-10-02 Thread Avi Kivity
From: Richard Henderson Remove the get_system_memory() call from serial_mm_init, pushing it back into the callers. In many cases we already have the system memory region available. Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/mips_jazz.c |8 hw/mip

[Qemu-devel] [PATCH 22/25] milkymist-tmu2: convert to memory API

2011-10-02 Thread Avi Kivity
From: Michael Walle Signed-off-by: Michael Walle Signed-off-by: Avi Kivity --- hw/milkymist-tmu2.c | 32 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/hw/milkymist-tmu2.c b/hw/milkymist-tmu2.c index 953d42f..aad0ed0 100644 --- a/hw/milkymis

[Qemu-devel] [PATCH 14/25] sun4u: Pass address_space_mem to sun4uv_init

2011-10-02 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/sun4u.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/hw/sun4u.c b/hw/sun4u.c index 28a5374..88c633d 100644 --- a/hw/sun4u.c +++ b/hw/sun4u.c @@ -736,7 +736,8 @@ stati

[Qemu-devel] [PATCH 17/25] milkymist-ac97: convert to memory API

2011-10-02 Thread Avi Kivity
From: Michael Walle Signed-off-by: Michael Walle Signed-off-by: Avi Kivity --- hw/milkymist-ac97.c | 32 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/hw/milkymist-ac97.c b/hw/milkymist-ac97.c index 6104732..5c5ed27 100644 --- a/hw/milkymis

[Qemu-devel] [PATCH 13/25] sm501: Pass address_space_mem to sm501_init

2011-10-02 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/devices.h |6 +- hw/r2d.c |5 - hw/sm501.c |7 +++ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/hw/devices.h b/hw/devices.h index 07fda83..8ac384f 100644 -

[Qemu-devel] [PULL 0/4] Memory tree printer

2011-10-02 Thread Avi Kivity
Please pull from git://github.com/avikivity/qemu memory/core to get the new 'info mtree' command, which is a great debugging aid. Blue Swirl (1): memory: simple memory tree printer Jan Kiszka (3): memory: Print region priority memory: Do not print empty PIO root memory: Print regions

[Qemu-devel] [PATCH 4/4] memory: Print regions in ascending order

2011-10-02 Thread Avi Kivity
From: Jan Kiszka Makes reading the output more user friendly. Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity --- memory.c | 37 +++-- 1 files changed, 31 insertions(+), 6 deletions(-) diff --git a/memory.c b/memory.c index 19f1d36..f46e626 100644 --- a/

[Qemu-devel] [PATCH 1/4] memory: simple memory tree printer

2011-10-02 Thread Avi Kivity
From: Blue Swirl Add a monitor command 'info mtree' to show the memory hierarchy much like /proc/iomem in Linux. Signed-off-by: Blue Swirl Signed-off-by: Avi Kivity --- memory.c | 91 + memory.h |2 + monitor.c | 13 +++

[Qemu-devel] [PATCH 3/4] memory: Do not print empty PIO root

2011-10-02 Thread Avi Kivity
From: Jan Kiszka Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity --- memory.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/memory.c b/memory.c index eae67be..19f1d36 100644 --- a/memory.c +++ b/memory.c @@ -1360,7 +1360,10 @@ void mtree_info(fprintf_func

[Qemu-devel] [PATCH 2/4] memory: Print region priority

2011-10-02 Thread Avi Kivity
From: Jan Kiszka Useful to discover eclipses. Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity --- memory.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/memory.c b/memory.c index a85d118..eae67be 100644 --- a/memory.c +++ b/memory.c @@ -1316,18 +1316,20 @@

Re: [Qemu-devel] [Spice-devel] viewing continuous guest virtual memory as continuous in qemu

2011-10-02 Thread Alon Levy
On Sun, Oct 02, 2011 at 03:24:36PM +0200, Alon Levy wrote: > Hi, > Converting qemu's ram allocation to a mmap and using remap_file_pages seems like it could work. Any ideas why it wouldn't? Alon > I'm trying to acheive the $subject. Some background: currently spice relies > on a preallocated

[Qemu-devel] [PATCH 12/25] pxa: Pass in address_space to pxa{255, 270}_init

2011-10-02 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/gumstix.c |7 +-- hw/mainstone.c |2 +- hw/pxa.h |7 +-- hw/pxa2xx.c| 10 +- hw/spitz.c |4 +++- hw/tosa.c |4 +++- hw/z2.c|4 +++- 7

[Qemu-devel] [PATCH 25/25] milkymist-{minimac2, softusb}: rename memory names

2011-10-02 Thread Avi Kivity
From: Michael Walle Be consistent with other milkymist models. Signed-off-by: Michael Walle Signed-off-by: Avi Kivity --- hw/milkymist-minimac2.c |4 ++-- hw/milkymist-softusb.c |4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/milkymist-minimac2.c b/hw/milky

[Qemu-devel] [PATCH 08/25] serial: Remove ioregister parameter from serial_mm_init

2011-10-02 Thread Avi Kivity
From: Richard Henderson All callers passed 1. Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/mips_jazz.c |4 ++-- hw/mips_malta.c |2 +- hw/musicpal.c|4 ++-- hw/omap_uart.c |4 ++-- hw/pc.h |3 +-

[Qemu-devel] [PATCH 07/25] serial: Use enum device_endian in serial_mm_init parameter

2011-10-02 Thread Avi Kivity
From: Richard Henderson The use of DEVICE_NATIVE_ENDIAN cleans up lots of ifdefs in many of the callers. Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/mips_jazz.c | 14 -- hw/mips_malta.c |7 ++- hw/musicpal.c| 14 ++--

[Qemu-devel] [PATCH 21/25] milkymist-sysctl: convert to memory API

2011-10-02 Thread Avi Kivity
From: Michael Walle Signed-off-by: Michael Walle Signed-off-by: Avi Kivity --- hw/milkymist-sysctl.c | 32 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/hw/milkymist-sysctl.c b/hw/milkymist-sysctl.c index 7b2d544..5783f08 100644 --- a/hw/mi

[Qemu-devel] [PATCH 05/25] etrax-eth: Convert to MemoryRegion

2011-10-02 Thread Avi Kivity
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias Signed-off-by: Avi Kivity --- hw/etraxfs_eth.c | 30 -- 1 files changed, 16 insertions(+), 14 deletions(-) diff --git a/hw/etraxfs_eth.c b/hw/etraxfs_eth.c index 48de6dc..246a279 100644 --- a/hw/etraxfs_e

[Qemu-devel] [PATCH 20/25] milkymist-pfpu: convert to memory API

2011-10-02 Thread Avi Kivity
From: Michael Walle Signed-off-by: Michael Walle Signed-off-by: Avi Kivity --- hw/milkymist-pfpu.c | 33 - 1 files changed, 16 insertions(+), 17 deletions(-) diff --git a/hw/milkymist-pfpu.c b/hw/milkymist-pfpu.c index 306d1ce..672f6e4 100644 --- a/hw/milkymi

[Qemu-devel] [PATCH 18/25] milkymist-hpdmc: convert to memory API

2011-10-02 Thread Avi Kivity
From: Michael Walle Signed-off-by: Michael Walle Signed-off-by: Avi Kivity --- hw/milkymist-hpdmc.c | 32 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/hw/milkymist-hpdmc.c b/hw/milkymist-hpdmc.c index c0962fb..17c840f 100644 --- a/hw/milky

[Qemu-devel] [PATCH 19/25] milkymist-memcard: convert to memory API

2011-10-02 Thread Avi Kivity
From: Michael Walle Signed-off-by: Michael Walle Signed-off-by: Avi Kivity --- hw/milkymist-memcard.c | 32 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/hw/milkymist-memcard.c b/hw/milkymist-memcard.c index 22dc377..fb6e558 100644 --- a/hw

[Qemu-devel] [PATCH 16/25] openpic: Memory API conversion for mpic

2011-10-02 Thread Avi Kivity
From: Fabien Chouteau This patch converts mpic to the new memory API (through old mmio). Signed-off-by: Fabien Chouteau Signed-off-by: Avi Kivity --- hw/openpic.c | 207 ++-- hw/openpic.h |4 +- hw/ppce500_mpc8544ds.c |2

[Qemu-devel] [PATCH 24/25] milkymist-vgafb: convert to memory API

2011-10-02 Thread Avi Kivity
From: Michael Walle Signed-off-by: Michael Walle Signed-off-by: Avi Kivity --- hw/milkymist-vgafb.c | 33 - 1 files changed, 16 insertions(+), 17 deletions(-) diff --git a/hw/milkymist-vgafb.c b/hw/milkymist-vgafb.c index 2e55e42..be81abd 100644 --- a/hw/milk

[Qemu-devel] [PATCH 04/25] etrax-dma: Convert to MemoryRegion

2011-10-02 Thread Avi Kivity
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias Signed-off-by: Avi Kivity --- hw/etraxfs_dma.c | 43 +++ 1 files changed, 27 insertions(+), 16 deletions(-) diff --git a/hw/etraxfs_dma.c b/hw/etraxfs_dma.c index d3082ac..94bfb70 100644 --- a

[Qemu-devel] [PATCH 11/25] ppc440: Pass in address_space_mem to ppc440ep_init

2011-10-02 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/ppc440.c| 11 +-- hw/ppc440.h|6 +++--- hw/ppc440_bamboo.c |5 - 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/hw/ppc440.c b/hw/ppc440.c index 1d13

[Qemu-devel] [PATCH 23/25] milkymist-uart: convert to memory API

2011-10-02 Thread Avi Kivity
From: Michael Walle Signed-off-by: Michael Walle Signed-off-by: Avi Kivity --- hw/milkymist-uart.c | 33 + 1 files changed, 17 insertions(+), 16 deletions(-) diff --git a/hw/milkymist-uart.c b/hw/milkymist-uart.c index e8e309d..128cd8c 100644 --- a/hw/milkymi

[Qemu-devel] [PATCH 15/25] hw/smc91c111: Convert to MemoryRegion

2011-10-02 Thread Avi Kivity
From: Peter Maydell Signed-off-by: Peter Maydell Signed-off-by: Avi Kivity --- hw/smc91c111.c | 29 + 1 files changed, 13 insertions(+), 16 deletions(-) diff --git a/hw/smc91c111.c b/hw/smc91c111.c index 3a8a85c..fc8c498 100644 --- a/hw/smc91c111.c +++ b/hw/smc91

[Qemu-devel] [PATCH 02/25] etrax-ser: Convert to MemoryRegion

2011-10-02 Thread Avi Kivity
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias Signed-off-by: Avi Kivity --- hw/etraxfs_ser.c | 33 ++--- 1 files changed, 18 insertions(+), 15 deletions(-) diff --git a/hw/etraxfs_ser.c b/hw/etraxfs_ser.c index 0036037..298b985 100644 --- a/hw/etraxf

[Qemu-devel] [PATCH 03/25] etrax-timer: Convert to MemoryRegion

2011-10-02 Thread Avi Kivity
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias Signed-off-by: Avi Kivity --- hw/etraxfs_timer.c | 31 --- 1 files changed, 16 insertions(+), 15 deletions(-) diff --git a/hw/etraxfs_timer.c b/hw/etraxfs_timer.c index b08e574..57dc739 100644 --- a/hw/et

[Qemu-devel] [PATCH 10/25] ppc405: Pass in address_space_mem to ppc405{cr, ep}_init

2011-10-02 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/ppc405.h| 22 -- hw/ppc405_boards.c |8 hw/ppc405_uc.c | 30 -- 3 files changed, 32 insertions(+), 28 deletions(-) diff --git

[Qemu-devel] [PATCH 06/25] serial: Convert serial_mm_init to MemoryRegion

2011-10-02 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/serial.c | 145 +-- 1 files changed, 31 insertions(+), 114 deletions(-) diff --git a/hw/serial.c b/hw/serial.c index 2e6d212..310bfde 100644 --- a

[Qemu-devel] [PATCH v3 01/16] isa: rename isa_bus_new to isa_bus_bridge_init

2011-10-02 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/isa-bus.c |2 +- hw/isa.h |2 +- hw/mips_jazz.c |2 +- hw/mips_r4k.c |2 +- hw/pc_piix.c |2 +- hw/piix4.c |2 +- hw/piix_pci.c |2 +- hw/ppc_prep.c |2 +- hw/sun4u.c |2 +- hw/vt82c686.c |2 +-

[Qemu-devel] [PATCH v3 00/16] ISA bus improvements

2011-10-02 Thread Hervé Poussineau
Following patches aim to change ISA bus to a first-citizen class in Qemu. They add ISA bus ops, like for scsi and usb buses. Current ISA bridges (PIIX3, PIIX4, EBUS and VT82C686) are converted to this new API, and a simple 'isabus-bridge' device is added. isa_address_space() operation can probab

[Qemu-devel] [PATCH v3 05/16] pc: improve bus implementation of PIIX3 bridge

2011-10-02 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/pc.h |2 +- hw/pc_piix.c |3 ++- hw/piix_pci.c | 45 - 3 files changed, 43 insertions(+), 7 deletions(-) diff --git a/hw/pc.h b/hw/pc.h index c546037..746973f 100644 --- a/hw/pc.h +++ b/hw/pc.h @

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-10-02 Thread Jan Kiszka
On 2011-10-01 09:31, Blue Swirl wrote: > On Sat, Oct 1, 2011 at 6:47 AM, Jan Kiszka wrote: >> On 2011-09-30 22:47, Blue Swirl wrote: >>> That part of the discussion is obsolete (or at least uninteresting >>> here). For example this message has a relevant example: >>> http://lists.nongnu.org/archiv

[Qemu-devel] [PATCH v3 02/16] isa: rework ISA bus internals, and add ISA bus ops structure

2011-10-02 Thread Hervé Poussineau
This allows future implementations of real pci-isa bridges Signed-off-by: Hervé Poussineau --- Makefile.objs |2 +- hw/isa-bridge.c | 85 ++ hw/isa-bus.c| 93 --- hw/isa.h|

[Qemu-devel] [PATCH v3 04/16] audio: give ISA bus to sound cards, instead of PIC

2011-10-02 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- arch_init.c| 10 +- arch_init.h|2 +- hw/adlib.c |2 +- hw/audiodev.h |8 hw/cs4231a.c |2 +- hw/gus.c |2 +- hw/mips_jazz.c |5 +++-- hw/pc.h|2 +- hw/pc_piix.c |4 ++-- hw/pcsp

[Qemu-devel] [PATCH v3 06/16] fulong2e: improve bus implementation of vt82c bridge

2011-10-02 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/mips_fulong2e.c |9 ++--- hw/vt82c686.c | 31 +-- hw/vt82c686.h |2 +- 3 files changed, 32 insertions(+), 10 deletions(-) diff --git a/hw/mips_fulong2e.c b/hw/mips_fulong2e.c index 04921c1..3034a9c 100644

[Qemu-devel] [PATCH] target-arm: Fix typo

2011-10-02 Thread Andreas Färber
The command line option is called -kernel, not -kenrel. Cc: Paul Brook Signed-off-by: Andreas Färber --- target-arm/helper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index cc1a3d2..2273492 100644 --- a/target-arm/helper.

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-10-02 Thread Avi Kivity
On 09/28/2011 09:01 PM, Blue Swirl wrote: On Wed, Sep 28, 2011 at 11:00 AM, Jan Kiszka wrote: > As we clearly modify the PIC state on pic_reset, we also have to update > the IRQ output. This only happened on init so far. Apply this > consistently. Nack, IRQ lines shouldn't be touched on rese

[Qemu-devel] [PATCH v3 16/16] isa: remove limitation of only one ISA bus

2011-10-02 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/isa-bus.c | 10 -- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index ab8dbe9..f01dfb2 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -22,7 +22,6 @@ #include "isa.h" #include "exec-memory.h" -sta

[Qemu-devel] [PATCH v3 07/16] sun4u: improve bus implementation of EBus bridge

2011-10-02 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/sun4u.c | 37 +++-- 1 files changed, 31 insertions(+), 6 deletions(-) diff --git a/hw/sun4u.c b/hw/sun4u.c index cdf15ff..d8b8054 100644 --- a/hw/sun4u.c +++ b/hw/sun4u.c @@ -38,6 +38,7 @@ #include "loader.h" #include "e

[Qemu-devel] [PATCH v3 08/16] malta: improve bus implementation of PIIX4 bridge

2011-10-02 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/mips_malta.c |4 +--- hw/pc.h |2 +- hw/piix4.c | 37 +++-- 3 files changed, 37 insertions(+), 6 deletions(-) diff --git a/hw/mips_malta.c b/hw/mips_malta.c index 1ec1228..67e666d 100644 --- a/hw/mips_

[Qemu-devel] [PATCH v3 14/16] i8259: add ad-hock variables to please future changes in isa_register_ioport()

2011-10-02 Thread Hervé Poussineau
This patch should be reverted once i8259 is qdevified Signed-off-by: Hervé Poussineau --- hw/i8259.c | 29 +++-- 1 files changed, 27 insertions(+), 2 deletions(-) diff --git a/hw/i8259.c b/hw/i8259.c index e5323ff..9af2bbb 100644 --- a/hw/i8259.c +++ b/hw/i8259.c @@ -4

[Qemu-devel] [PATCH] memory: Push typedefs into qemu-common

2011-10-02 Thread Jan Kiszka
From: Jan Kiszka There is a circular dependency between memory.h and ioport.h /wrt type definitions now. Resolve it by pushing MemoryRegion and MemoryRegionPortio typedefs into qemu-common.h. Signed-off-by: Jan Kiszka --- ioport.h |3 --- memory.h |2 -- qemu-common.h |2

[Qemu-devel] [PATCH v3 12/16] isa: give bus to isa_get_irq() and isa_bus_irqs()

2011-10-02 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/i8254.c |2 +- hw/ide.h | 12 hw/ide/piix.c | 30 ++ hw/ide/via.c | 18 ++ hw/isa-bus.c |6 +++--- hw/isa.h |4 ++-- hw/mips_fulong2e.c |

[Qemu-devel] [PATCH v3 09/16] isa: remove unused parameter to isa_bus_bridge_init()

2011-10-02 Thread Hervé Poussineau
Remove code which is now dead Signed-off-by: Hervé Poussineau --- hw/isa-bus.c | 60 +++ hw/isa.h |2 +- hw/mips_jazz.c |2 +- hw/mips_r4k.c |2 +- hw/pc_piix.c |2 +- hw/ppc_prep.c |2 +- 6 files changed, 13 i

[Qemu-devel] [PATCH] Fix mismatching allocation and deallocation

2011-10-02 Thread Stefan Weil
This error was reported by cppcheck. Signed-off-by: Stefan Weil --- console.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/console.c b/console.c index 6dfcc47..e43de92 100644 --- a/console.c +++ b/console.c @@ -1538,7 +1538,7 @@ int text_console_init(QemuOpts *opts,

[Qemu-devel] [PATCH v3 03/16] isa: correctly implement isa_address_space(), by calling a bus-specific function

2011-10-02 Thread Hervé Poussineau
This method can be used later to remove the isa_mem_base variable. Signed-off-by: Hervé Poussineau --- hw/isa-bridge.c |7 +++ hw/isa-bus.c| 13 - hw/isa.h|6 ++ 3 files changed, 25 insertions(+), 1 deletions(-) diff --git a/hw/isa-bridge.c b/hw/isa-bri

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-10-02 Thread Avi Kivity
On 10/01/2011 10:31 AM, Blue Swirl wrote: Therefore it is incorrect to perform any qemu_irq activities during reset (also VM restore like the original example), don't you agree? It is not incorrect. Real hardware updates outputs on RESET assertion, and real hardware deals with devices enterin

[Qemu-devel] [PATCH v3 15/16] isa: remove useless test in isa_register_ioport()

2011-10-02 Thread Hervé Poussineau
Use ISA bus from given device instead of global ISA bus Signed-off-by: Hervé Poussineau --- hw/isa-bus.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index 2f9ad24..ab8dbe9 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -117,18

Re: [Qemu-devel] [PATCH] memory: Push typedefs into qemu-common

2011-10-02 Thread Avi Kivity
On 10/02/2011 06:42 PM, Jan Kiszka wrote: From: Jan Kiszka There is a circular dependency between memory.h and ioport.h /wrt type definitions now. Resolve it by pushing MemoryRegion and MemoryRegionPortio typedefs into qemu-common.h. Yuck. I'll just change PortioList to say 'struct MemoryRe

[Qemu-devel] [PATCH v3 13/16] isa: use bus given in parameter to get/set irqs on specified ISA bus

2011-10-02 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/isa-bus.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index 4a95834..2f9ad24 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -60,10 +60,11 @@ void isa_bus_new(ISABus *bus, ISABusOps *ops, Dev

[Qemu-devel] [PATCH v3 10/16] isa: give bus to isa_create() and isa_try_create() methods

2011-10-02 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/cs4231a.c |2 +- hw/fdc.h |4 ++-- hw/gus.c |2 +- hw/ide.h |2 +- hw/ide/isa.c |4 ++-- hw/isa-bus.c |8 hw/isa.h |6 +++--- hw/m48t59.c|5 +++-- hw/

Re: [Qemu-devel] [Spice-devel] viewing continuous guest virtual memory as continuous in qemu

2011-10-02 Thread Avi Kivity
On 10/02/2011 04:31 PM, Alon Levy wrote: On Sun, Oct 02, 2011 at 03:24:36PM +0200, Alon Levy wrote: > Hi, > Converting qemu's ram allocation to a mmap and using remap_file_pages seems like it could work. Any ideas why it wouldn't? It's linux-specific. Also, does it work on anonymous memory?

[Qemu-devel] [PATCH v3 11/16] isa: use bus given in parameter to create device on specified ISA bus

2011-10-02 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/isa-bus.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index ecc5375..cdfed29 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -151,11 +151,12 @@ ISADevice *isa_create(ISABus *bus, const char *

Re: [Qemu-devel] Qemu - compiling error in tcg.c - flush_icache_range

2011-10-02 Thread Mulyadi Santosa
Hi :) Don't forget to cc qemu-devel too next time :) On Sun, Oct 2, 2011 at 21:43, Maurizio Caloro wrote: > After "git" the new source i don't realy found any solution, but changing the > lines now Qmue0.15.0 running also in me Netbsd G4 Mac. Proparly this change > are only "*BSD" conform and

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-10-02 Thread Jan Kiszka
On 2011-10-02 18:39, Avi Kivity wrote: > On 09/28/2011 09:01 PM, Blue Swirl wrote: >> On Wed, Sep 28, 2011 at 11:00 AM, Jan Kiszka >> wrote: >> > As we clearly modify the PIC state on pic_reset, we also have to >> update >> > the IRQ output. This only happened on init so far. Apply this >> > co

[Qemu-devel] QEMU + ARM11MPCore

2011-10-02 Thread TusharK
Hello, I tried executing QEMU (realview-smp ARM11MPCore) with Linux kernel 2.6.39.3, but it failed. Kernel itself is not getting decompressed. I compiled the kernel with realview-smp_config and build was successful. Can you please let me know how can test QEMU + ARM11MPcore combination. Th

Re: [Qemu-devel] segfault on current HEAD, qemu-system-arm

2011-10-02 Thread Blue Swirl
On Sun, Oct 2, 2011 at 2:20 PM, Avi Kivity wrote: > 3917149 gives me this: > > [root@westmere-ep arm-test]# gdb --args qemu-system-arm -kernel > zImage.integrator -initrd arm_root.img > GNU gdb (GDB) Fedora (7.3-41.fc15) > Copyright (C) 2011 Free Software Foundation, Inc. > License GPLv3+: GNU GPL

Re: [Qemu-devel] QEMU + ARM11MPCore

2011-10-02 Thread Andreas Färber
Am 02.10.2011 20:06, schrieb TusharK: > I tried executing QEMU (realview-smp ARM11MPCore) with Linux kernel > 2.6.39.3, but it failed. Kernel itself is not getting decompressed. Which command line? Any output? Andreas

[Qemu-devel] [RFC 2/2] target-arm: Add support for Cortex-R4F

2011-10-02 Thread Andreas Färber
All CPU-dependent initializations are currently done based on MIDR. Cortex-R4F shares the MIDR with Cortex-R4 though. Therefore consider the CPU model string, too (which is not cleared on reset). Cc: Peter Maydell Signed-off-by: Andreas Färber --- target-arm/helper.c | 35

[Qemu-devel] [RFC 0/2] target-arm: Adding Cortex-R4F support

2011-10-02 Thread Andreas Färber
Hello Peter, I've been looking into adding support for Cortex-R4F. 1) Currently, -cpu is used to look up a Main ID Register value and to base feature decisions on that. This doesn't work for Cortex-R4 and Cortex-R4F, which have an identical MIDR but only -R4F has the FPU. Re-checking the model st

[Qemu-devel] [RFC 1/2] target-arm: Prepare support for Cortex-R4

2011-10-02 Thread Andreas Färber
Glue "cortex-r4" to r1p4, the latest available TRM. Cc: Peter Maydell Signed-off-by: Andreas Färber --- target-arm/cpu.h|1 + target-arm/helper.c | 14 ++ 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 6ab780d..f0a

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-10-02 Thread Blue Swirl
On Sun, Oct 2, 2011 at 4:27 PM, Jan Kiszka wrote: > On 2011-10-01 09:31, Blue Swirl wrote: >> On Sat, Oct 1, 2011 at 6:47 AM, Jan Kiszka wrote: >>> On 2011-09-30 22:47, Blue Swirl wrote: That part of the discussion is obsolete (or at least uninteresting here). For example this message h

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-10-02 Thread Blue Swirl
On Sun, Oct 2, 2011 at 4:39 PM, Avi Kivity wrote: > On 09/28/2011 09:01 PM, Blue Swirl wrote: >> >> On Wed, Sep 28, 2011 at 11:00 AM, Jan Kiszka >>  wrote: >> >  As we clearly modify the PIC state on pic_reset, we also have to update >> >  the IRQ output. This only happened on init so far. Apply t

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-10-02 Thread Avi Kivity
> > > > The way to fix it is two-phase reset: > > > > phase 1: reset internal state (-> move all outputs to reset > > values), > > don't sample inputs yet > > phase 2: allow sampling inputs > > As far as I understood Anthony's QOM plans, phase 1 will correspond > to > "unrealize", phase 2 to "re

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-10-02 Thread Avi Kivity
> > phase 1: reset internal state (-> move all outputs to reset > > values), don't > > sample inputs yet > > This solves the problem of old state accidentally interfering with > reset state. > > > phase 2: allow sampling inputs > > This could lead to incorrect state for complex networks. It woul

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-10-02 Thread Blue Swirl
On Sun, Oct 2, 2011 at 4:56 PM, Avi Kivity wrote: > On 10/01/2011 10:31 AM, Blue Swirl wrote: >> >> Therefore it is incorrect to perform any qemu_irq activities during >> reset (also VM restore like the original example), don't you agree? > > It is not incorrect.  Real hardware updates outputs on

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-10-02 Thread Blue Swirl
On Sun, Oct 2, 2011 at 7:07 PM, Avi Kivity wrote: >> > >> > The way to fix it is two-phase reset: >> > >> > phase 1: reset internal state (-> move all outputs to reset >> > values), >> > don't sample inputs yet >> > phase 2: allow sampling inputs >> >> As far as I understood Anthony's QOM plans, p

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-10-02 Thread Avi Kivity
- Original Message - > On Sun, Oct 2, 2011 at 4:56 PM, Avi Kivity wrote: > > On 10/01/2011 10:31 AM, Blue Swirl wrote: > >> > >> Therefore it is incorrect to perform any qemu_irq activities > >> during > >> reset (also VM restore like the original example), don't you > >> agree? > > > >

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-10-02 Thread Blue Swirl
On Sun, Oct 2, 2011 at 7:08 PM, Avi Kivity wrote: >> > phase 1: reset internal state (-> move all outputs to reset >> > values), don't >> > sample inputs yet >> >> This solves the problem of old state accidentally interfering with >> reset state. >> >> > phase 2: allow sampling inputs >> >> This c

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-10-02 Thread Avi Kivity
> > > > Can you give an example?  Can be theoretical, doesn't have to refer > > to real hardware. > > For example, outputs A and B should both be driven high by reset. > They > are connected to a XNOR gate, whose output is fed to edge triggered > device. The device should not see any edges outside

  1   2   >