Re: [Qemu-devel] [PATCH 2/6] memory: change dirty setting APIs to take a size

2011-12-11 Thread Avi Kivity
On 12/10/2011 06:44 PM, Blue Swirl wrote: > Instead of each target knowing or guessing the guest page size, > just pass the desired size of dirtied memory area. This should also > improve performance due to memset() optimizations. > > > -static inline void cpu_physical_memory_set_dirty(ram_addr_t a

Re: [Qemu-devel] [PATCH 4/6] memory: find dirty range

2011-12-11 Thread Avi Kivity
On 12/10/2011 06:45 PM, Blue Swirl wrote: > Instead of each target knowing or guessing the guest page size, > iterate through the dirty ranges. > > Signed-off-by: Blue Swirl > --- > cpu-all.h | 30 ++ > hw/tcx.c | 54 ++-

Re: [Qemu-devel] [PATCH v2] exec.c: Fix subpage memory access to RAM MemoryRegion

2011-12-11 Thread Avi Kivity
On 11/30/2011 05:26 PM, Andreas Färber wrote: > Commit 95c318f5e1f88d7e5bcc6deac17330fd4806a2d3 (Fix segfault in mmio > subpage handling code.) prevented a segfault by making all subpage > registrations over an existing memory page perform an unassigned access. > Symptoms were writes not taking eff

Re: [Qemu-devel] [RFC] Device sandboxing

2011-12-11 Thread Avi Kivity
On 12/09/2011 06:17 PM, Paul Brook wrote: > > A group of us are starting to work on sandboxing QEMU device emulation > > code. We're just getting started investigating various approaches, and > > want to engage the community to gather input. > > > > Following are the design points that we are cur

Re: [Qemu-devel] [RFC] qemu-ga: Introduce guest-hibernate command

2011-12-11 Thread Dor Laor
On 12/08/2011 08:52 PM, Luiz Capitulino wrote: This is basically suspend to disk on a Linux guest. Signed-off-by: Luiz Capitulino --- This is an RFC because I did it as simple as possible and I'm open to suggestions... Now, while testing this or even "echo disk> /sys/power/state" I get severa

Re: [Qemu-devel] Dropping the MONITOR_CMD_ASYNC

2011-12-11 Thread Alon Levy
On Thu, Dec 08, 2011 at 05:45:44PM -0200, Luiz Capitulino wrote: > Hi there, > > I'm about to completely drop the MONITOR_CMD_ASYNC API, but it turns out that > the command client_migrate_info uses it. That's a legacy interface and has to > be dropped, no command should be using it... > > Somethi

Re: [Qemu-devel] [PATCH 6/6] vga: compile cirrus_vga in hwlib

2011-12-11 Thread Jan Kiszka
On 2011-12-10 17:45, Blue Swirl wrote: > Remove target dependencies and compile Cirrus VGA in hwlib. > > Signed-off-by: Blue Swirl > --- > Makefile.objs |1 + > Makefile.target |1 - > hw/cirrus_vga.c |3 --- > 3 files changed, 1 insertions(+), 4 deletions(-) > > diff --git a/Make

Re: [Qemu-devel] RFC: raw device support for block device targets

2011-12-11 Thread Alex Bligh
--On 8 December 2011 13:40:57 +0100 Kevin Wolf wrote: qemu-img convert appears to support block devices as input, but not as output. That is irritating, as when using qemu-img convert to convert qcow to raw on a block partition, an intermediate file has to be used, which slows things down and

Re: [Qemu-devel] [RFC] Device sandboxing

2011-12-11 Thread Dor Laor
On 12/08/2011 11:40 AM, Stefan Hajnoczi wrote: On Wed, Dec 7, 2011 at 8:54 PM, Eric Paris wrote: On Wed, 2011-12-07 at 13:43 -0600, Anthony Liguori wrote: On 12/07/2011 01:32 PM, Corey Bryant wrote: That would seem like the logical approach. I think there may be new mode 2 patches coming so

Re: [Qemu-devel] [Bug 902720] [NEW] TIME_MAX not set correctly for OpenBSD in qemu-common.h

2011-12-11 Thread Stefan Weil
Am 11.12.2011 07:47, schrieb Brad Smith: Public bug reported: Looking at the OpenBSD buildbot logs I noticed a warning that appears to be a bug in the code. OpenBSD has a 32-bit time_t on all archs at the moment (32-bit and 64-bit). CC i386-softmmu/monitor.o /buildbot-qemu/default_openbsd_cu

[Qemu-devel] Report: qemu.git error during Windows 7 install - found during 12/11/2011 sanity job

2011-12-11 Thread Lucas Meneghel Rodrigues
Hi folks, here I am reporting an error found during today's qemu.git autotest sanity job: Original Message Subject: Autotest | Job ID: 2333 "Upstream qemu.git sanity 12-11-2011 00:05:02" | Status: 1 Completed | Success Rate: 69.23 % Date: Sun, 11 Dec 2011 06:44:37 -0500 Job

Re: [Qemu-devel] [PATCH v2] bsd_user: Fix potential null pointer dereference

2011-12-11 Thread Blue Swirl
Thanks, applied. On Mon, Nov 21, 2011 at 20:06, Stefan Weil wrote: > This bug was spotted by cppcheck. > > Using g_try_malloc0 (as does the linux-user code) fixes this. > > v2: > Use g_free in bsdload.c, too. Thanks to Peter Maydell for this hint. > > Signed-off-by: Stefan Weil > --- >  bsd-user

Re: [Qemu-devel] [PATCH] configure: Enable build by default PIE / read-only relocation sections on OpenBSD amd64/i386.

2011-12-11 Thread Blue Swirl
Thanks, applied. On Tue, Nov 29, 2011 at 00:53, Brad wrote: > Enable build by default PIE / read-only relocation sections for the QEMU > binaries on OpenBSD amd64/i386. > > Signed-off-by: Brad Smith > > --- >  configure |    2 +- >  1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git

Re: [Qemu-devel] [PATCH] w32: QEMU applications with SDL are always GUI applications

2011-12-11 Thread Blue Swirl
Thanks, applied. On Sat, Dec 3, 2011 at 21:32, Stefan Weil wrote: > Since commit 1d14ffa97eacd3cb722271eaf6f093038396eac4 (in 2005), > QEMU applications on W32 don't use the default SDL compiler flags: > > Instead of a GUI application, a console application is created. > > This has disadvantages

Re: [Qemu-devel] [PATCH] w32: Disable buffering for log file

2011-12-11 Thread Blue Swirl
Thanks, applied. On Sat, Dec 3, 2011 at 21:32, Stefan Weil wrote: > W32 does not support line buffering, but it supports unbuffered output. > > Unbuffered output is better for writing to qemu.log than fully buffered > output because it also shows the latest log messages when an application > cras

[Qemu-devel] [Bug 696094] Re: TI Stellaris lm3s811evb (ARM Cortex-M3) : Systick interrupt not working

2011-12-11 Thread Petteri Aimonen
I think the problem is line 53 in qemu-linaro/hw/armv7m_nvic.c: int system_clock_scale; This variable is initialized under some conditions from the Stellaris peripheral emulation code, but apparently your code does not trigger this initialization. It then uses the default value of 0, and gets into

[Qemu-devel] Unsubscription Confirmation

2011-12-11 Thread RealEstateMalaysian.com
Thank you for subscribing. You have now unsubscribed and no more messages will be sent.

[Qemu-devel] [Bug 696094] Re: TI Stellaris lm3s811evb (ARM Cortex-M3) : Systick interrupt not working

2011-12-11 Thread Peter Maydell
ssys_reset() should be calling ssys_calculate_system_clock(). (We should probably use a saner default value, though. Or treat system_clock_scale == 0 as "this board doesn't provide an external clock reference". And do we really have the sense right on the SYSTICKX_CLKSOURCE flag?) > qemu-system-a

Re: [Qemu-devel] [PATCH 0/4] tcg: Add debug facilities for TCGv

2011-12-11 Thread Paul Brook
> > What mismatches does this catch that the existing debug code doesn't? > > Cf. patch 4/4: > > TCGv tmp = tcg_temp_new_i32(); > tcg_temp_free_i32(tmp); > > TCGv_i32 tmp2 = tcg_temp_new(); > tcg_temp_free(tmp2); Why is this a problem? If TARGET_LONG_BITS==32 then tcg_temp_free and tcg_temp_f

Re: [Qemu-devel] [RFC 0/6] target-i386: TCGv cleanups

2011-12-11 Thread Paul Brook
> This series makes target-i386 compile with DEBUG_TCGV_TL. What benefit does this provide? I effectively already asked this in reply to your patch adding DEBUG_TCGV_TL[1]. One answer is sufficient, this mail is really just to link the two threads together :-) Paul [1] http://lists.nongnu.or

Re: [Qemu-devel] [RFC 0/4] virtio-mmio transport

2011-12-11 Thread Paul Brook
> >> I'm not sure what guest software uses the syborg virtio transport. > > > > It is/was a virtual reference platform for SymbianOS. However since then > > the Symbian Foundation got shot in the back of the head and the rest of > > Nokia jumped ship to Windows, so I'd be surprised if anyone real

[Qemu-devel] [PATCH v3] block : return real error code in cow.c

2011-12-11 Thread Li Zhi Hui
v3: modify some errors Signed-off-by: Li Zhi Hui --- block/cow.c | 44 +--- 1 files changed, 29 insertions(+), 15 deletions(-) diff --git a/block/cow.c b/block/cow.c index 3c52735..bb5927c 100644 --- a/block/cow.c +++ b/block/cow.c @@ -64,15 +64,26 @@ s

[Qemu-devel] [PATCH v3 00/14] ARM: Samsung Exynos4210-based boards support.

2011-12-11 Thread Evgeny Voevodin
This set of patches adds support for Samsung S5PC210-based boards NURI and SMDKC210. Tested on Linux kernel v3.x series. Usage of "-smp 2" option is reuired for now. Third version: Reverted hw/arm_gic.c modification. Added IRQ Gate to Exynos4210 board. Evgeny Voevodin (8): hw/sysbus.h: Increas

[Qemu-devel] [PATCH v3 09/14] hw/exynos4210.c: Boot secondary CPU.

2011-12-11 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin --- hw/exynos4210.c | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/hw/exynos4210.c b/hw/exynos4210.c index e2c4bf5..055205d 100644 --- a/hw/exynos4210.c +++ b/hw/exynos4210.c @@ -93,8 +93,15 @@ #define EXYNOS4210

[Qemu-devel] [PATCH v3 08/14] ARM: exynos4210: MCT support.

2011-12-11 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin --- Makefile.target |2 +- hw/exynos4210.c | 19 + hw/exynos4210_mct.c | 1486 +++ 3 files changed, 1506 insertions(+), 1 deletions(-) create mode 100644 hw/exynos4210_mct.c diff --git a/Makefile.targe

[Qemu-devel] [PATCH v3 01/14] ARM: Samsung exynos4210-based boards emulation

2011-12-11 Thread Evgeny Voevodin
From: Maksim Kozlov Add initial code for support of NURI and SMDKC210 boards Signed-off-by: Evgeny Voevodin --- Makefile.target |1 + hw/exynos4210.c | 224 +++ hw/exynos4210.h | 34 3 files changed, 259 insertions(+), 0 delet

[Qemu-devel] [PATCH v3 03/14] ARM: exynos4210: UART support

2011-12-11 Thread Evgeny Voevodin
From: Maksim Kozlov Add basic support of exynos4210 UART Conflicts: Makefile.target Signed-off-by: Evgeny Voevodin --- Makefile.target |2 +- hw/exynos4210.c | 51 hw/exynos4210.h |9 + hw/exynos4210_uart.c | 674

[Qemu-devel] [PATCH v3 11/14] hw/exynos4210.c: Add LAN support for SMDKC210.

2011-12-11 Thread Evgeny Voevodin
SMDKC210 uses lan9215 chip, but lan9118 in 16-bit mode seems to be enough. Signed-off-by: Evgeny Voevodin --- hw/exynos4210.c | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/hw/exynos4210.c b/hw/exynos4210.c index 055205d..0a93866 100644 --- a/hw/exynos

[Qemu-devel] [PATCH v3 05/14] ARM: exynos4210: IRQ subsystem support.

2011-12-11 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin --- Makefile.target |3 +- hw/exynos4210.c | 175 - hw/exynos4210.h | 42 hw/exynos4210_combiner.c | 385 ++ hw/exynos4210_gic.c | 510

Re: [Qemu-devel] [PATCH v3 00/14] ARM: Samsung Exynos4210-based boards support.

2011-12-11 Thread Stefan Weil
Am 12.12.2011 07:43, schrieb Evgeny Voevodin: This set of patches adds support for Samsung S5PC210-based boards NURI and SMDKC210. Tested on Linux kernel v3.x series. Usage of "-smp 2" option is reuired for now. Third version: Reverted hw/arm_gic.c modification. Added IRQ Gate to Exynos4210

[Qemu-devel] [PATCH v3 04/14] hw/sysbus.h: Increase maximum number of device IRQs.

2011-12-11 Thread Evgeny Voevodin
Samsung exynos4210 Interrupt Combiner needs 512 IRQ sources. Signed-off-by: Evgeny Voevodin --- hw/sysbus.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/sysbus.h b/hw/sysbus.h index 9bac582..4ef0c3c 100644 --- a/hw/sysbus.h +++ b/hw/sysbus.h @@ -8,7 +8,7 @@ #de

[Qemu-devel] [PATCH v3 07/14] hw/arm_boot.c: Add new secondary CPU bootloader.

2011-12-11 Thread Evgeny Voevodin
Secondary CPU bootloader enables interrupt and issues wfi until start address is written to system controller. The position where to find this start address is hardcoded to 0x1030. This commit adds new bootloader for secondary CPU which allows a target board to cpecify a position where to find

[Qemu-devel] [PATCH v3 02/14] ARM: exynos4210: CMU support

2011-12-11 Thread Evgeny Voevodin
From: Maksim Kozlov Add exynos4210 Clock Management Units emulation Signed-off-by: Evgeny Voevodin --- Makefile.target |2 +- hw/exynos4210.c |7 + hw/exynos4210.h | 22 + hw/exynos4210_cmu.c | 1146 +++ 4 files changed, 117

[Qemu-devel] [PATCH v3 10/14] hw/lan9118: Add basic 16-bit mode support.

2011-12-11 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin --- hw/devices.h |2 +- hw/lan9118.c | 115 ++ 2 files changed, 109 insertions(+), 8 deletions(-) diff --git a/hw/devices.h b/hw/devices.h index 1a55c1e..24cae4c 100644 --- a/hw/devices.h +++ b/hw/device

[Qemu-devel] [PATCH v3 12/14] hw/sd.c, hw/sd.h: add receive ready query routine to SD/MMC API

2011-12-11 Thread Evgeny Voevodin
From: Mitsyanko Igor Data transfer direction between host controller and SD/MMC card is selected by host controller configuration registers, but whether we actually need or need not perform data transfer depends on type of last issued command. To avoid memorization of which type of command host c

[Qemu-devel] [PATCH v3 06/14] ARM: exynos4210: PWM support.

2011-12-11 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin --- Makefile.target |2 +- hw/exynos4210.c | 12 ++ hw/exynos4210_pwm.c | 433 +++ 3 files changed, 446 insertions(+), 1 deletions(-) create mode 100644 hw/exynos4210_pwm.c diff --git a/Makefile.targe