Re: [Qemu-devel] [PATCH 07/16] qdev: allow reusing get/set for legacy property

2012-02-03 Thread Paolo Bonzini
On 02/02/2012 11:38 PM, Andreas Färber wrote: Am 02.02.2012 17:45, schrieb Paolo Bonzini: In some cases, a legacy property does need a special print method but not a special parse method. In this case, we can reuse the get/set from the static (non-legacy) property. If neither parse nor print

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

2012-02-03 Thread Evgeny Voevodin
This set of patches adds support for Samsung Exynos4210-based boards NURI and SMDKC210. Tested on Linux kernel v3.x series. Usage: Exynos4210 SOC boards are modelled to run two CPU cores.. Linux kernel v3.x configured with exynos4_defconfig can be used for boards models testing with rootfs on

[Qemu-devel] [PATCH v12 06/10] ARM: exynos4210: MCT support.

2012-02-03 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin e.voevo...@samsung.com --- 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

[Qemu-devel] [PATCH v12 08/10] hw/exynos4210.c: Add LAN support for SMDKC210.

2012-02-03 Thread Evgeny Voevodin
SMDKC210 uses lan9215 chip, but lan9118 in 16-bit mode seems to be enough. Signed-off-by: Evgeny Voevodin e.voevo...@samsung.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/exynos4_boards.c | 27 +-- 1 files changed, 25 insertions(+), 2 deletions(-) diff

[Qemu-devel] [PATCH v12 04/10] ARM: exynos4210: PWM support.

2012-02-03 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin e.voevo...@samsung.com --- Makefile.target |2 +- hw/exynos4210.c | 12 ++ hw/exynos4210_pwm.c | 420 +++ 3 files changed, 433 insertions(+), 1 deletions(-) create mode 100644 hw/exynos4210_pwm.c diff

[Qemu-devel] [Bug 924943] Re: usb-host devices given by command line are routed incomplete to the guest

2012-02-03 Thread Erik Rull
update: it works with the following parameter set: -usb -device usb-host but then only USB 1.1 is available (very slow) it does not work with: -readconfig ich9-ehci-uhci.cfg -device usb-host,bus=ehci.0 but there I have USB 2.0 and USB 1.1 devices routed perfectly with a good speed to the guest

[Qemu-devel] [PATCH v12 05/10] ARM: exynos4210: basic Power Management Unit implementation

2012-02-03 Thread Evgeny Voevodin
From: Maksim Kozlov m.koz...@samsung.com Patch adds basic model for Exynos4210 SoC PMU. This model implements PMU registers just as a bulk of memory. Currently, the only reason this device exists is that secondary CPU boot loader uses PMU INFORM5 register as a holding pen. Signed-off-by: Maksim

[Qemu-devel] [Bug 924943] Re: usb-host devices given by command line are routed incomplete to the guest

2012-02-03 Thread Erik Rull
update: Seems to affect only USB 2.0 devices and if USB 2.0 (EHCI) is enabled. If there is only -usb -device usb-host added, it works for both USB 2.0 and USB 1.1 but extremely slow due to the missing USB 2.0 layer If the command line is given as reported above, it works for USB 1.1 devices,

[Qemu-devel] [PATCH v12 03/10] ARM: exynos4210: UART support

2012-02-03 Thread Evgeny Voevodin
From: Maksim Kozlov m.koz...@samsung.com Add basic support of exynos4210 UART Signed-off-by: Maksim Kozlov m.koz...@samsung.com Signed-off-by: Evgeny Voevodin e.voevo...@samsung.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- Makefile.target |2 +- hw/exynos4210.c |

[Qemu-devel] [PATCH v12 02/10] ARM: Samsung exynos4210-based boards emulation

2012-02-03 Thread Evgeny Voevodin
Add initial support of NURI and SMDKC210 boards Signed-off-by: Evgeny Voevodin e.voevo...@samsung.com --- Makefile.target |3 +- hw/exynos4210.c | 193 +++ hw/exynos4210.h | 40 +++ hw/exynos4_boards.c | 153

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

2012-02-03 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin e.voevo...@samsung.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- hw/lan9118.c | 124 +++--- 1 files changed, 118 insertions(+), 6 deletions(-) diff --git a/hw/lan9118.c b/hw/lan9118.c index

[Qemu-devel] [PATCH v12 01/10] ARM: exynos4210: IRQ subsystem support.

2012-02-03 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin e.voevo...@samsung.com --- Makefile.target |1 + hw/exynos4210.h | 82 hw/exynos4210_combiner.c | 467 ++ hw/exynos4210_gic.c | 454 4

[Qemu-devel] [PATCH v12 10/10] MAINTAINERS: Add maintainers for Exynos SOC.

2012-02-03 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin e.voevo...@samsung.com --- MAINTAINERS |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 173e893..33e480d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -237,6 +237,14 @@ M: Peter Maydell

[Qemu-devel] [PATCH] memory-region: Report if region is read-only on info mtree

2012-02-03 Thread Jan Kiszka
Helpful to understand guest configurations of things like the i440FX's PAM. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- memory.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/memory.c b/memory.c index ee4c98a..ea4adda 100644 --- a/memory.c +++ b/memory.c

Re: [Qemu-devel] [PATCH 02/16] qom: store object with correct type in interface links

2012-02-03 Thread Paolo Bonzini
On 02/02/2012 06:05 PM, Anthony Liguori wrote: On 02/02/2012 10:45 AM, Paolo Bonzini wrote: When a link property's type is an interface, the code expects the implementation object (not the parent object) to be stored in the variable. The parent object does not contain the right vtable.

[Qemu-devel] [PATCH 2/2] linux-user: Add support for prctl PR_GET_NAME and PR_SET_NAME

2012-02-03 Thread Peter Maydell
Add support for the prctl options PR_GET_NAME and PR_SET_NAME, which take or return a name in a 16 byte buffer pointed to by arg2. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- linux-user/syscall.c | 24 1 files changed, 24 insertions(+), 0 deletions(-)

[Qemu-devel] [PATCH 0/2] linux-user: Support prctl PR_GET/SET_NAME

2012-02-03 Thread Peter Maydell
These patches add support for the prctl options PR_GET_NAME and PR_SET_NAME. In particular, perl 5.14 will use PR_SET_NAME if you change the value of $0, which means that adduser will fail if run under qemu with a sufficiently modern perl. Patch one is just indentation cleanup, the meat is patch

[Qemu-devel] [PATCH 1/2] linux-user/syscall.c: Fix indentation in prctl handling

2012-02-03 Thread Peter Maydell
Clean up the odd indentation of this switch statement before we double its size by adding new cases to it. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- linux-user/syscall.c | 29 +++-- 1 files changed, 15 insertions(+), 14 deletions(-) diff --git

Re: [Qemu-devel] [PATCH 10/16] qdev: make the non-legacy pci address property accept an integer

2012-02-03 Thread Anthony Liguori
On 02/02/2012 02:19 PM, Paolo Bonzini wrote: On 02/02/2012 09:07 PM, Anthony Liguori wrote: Signed-off-by: Paolo Bonzinipbonz...@redhat.com Isn't this a compatibility breaker? Won't this break libvirt's usage of -device addr=0.2 ? Nope, the legacy property still keeps the dd.f format.

Re: [Qemu-devel] [PATCH v2 0/8] qemu-ga: add support for Windows

2012-02-03 Thread Luiz Capitulino
On Thu, 2 Feb 2012 13:58:52 -0600 Michael Roth mdr...@linux.vnet.ibm.com wrote: These patches apply on top of qemu.git master, and can also be obtained from: git://github.com/mdroth/qemu.git qga-win32-v2 Luiz/Gal, I decided not to roll the suspend/hibernate stuff into this series since the

Re: [Qemu-devel] [PATCH 01/16] qdev: fix hot-unplug

2012-02-03 Thread Anthony Liguori
On 02/02/2012 10:45 AM, Paolo Bonzini wrote: The reference that is returned by qdev_device_add is never given back, so that device_del does not cause the refcount to go to zero (and thus does nothing). Signed-off-by: Paolo Bonzinipbonz...@redhat.com This isn't needed in qom-upstream.14.

[Qemu-devel] [PATCH 06/19] linux-user: fake /proc/self/auxv

2012-02-03 Thread riku . voipio
From: Alexander Graf ag...@suse.de Gtk tries to read /proc/self/auxv to find its auxv table instead of taking it from its own program memory space. However, when running with linux-user, we see the host's auxv which clearly exposes wrong information. so let's instead expose the guest memory

[Qemu-devel] [PATCH 09/19] linux-user: fix QEMU_STRACE=1 segfault

2012-02-03 Thread riku . voipio
From: Alexander Graf ag...@suse.de While debugging some issues with QEMU_STRACE I stumbled over segmentation faults that were pretty reproducible. Turns out we tried to treat a normal return value as errno, resulting in an access over array boundaries for the resolution. Fix this by allowing

[Qemu-devel] [PATCH 10/19] linux-user/strace.c: Correct errno printing for mmap etc

2012-02-03 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org Correct the printing of errnos for syscalls which are handled via print_syscall_ret_addr (mmap, mmap2, brk, shmat): errnos are returned as negative returned values at this level, not via the host 'errno' variable. Signed-off-by: Peter Maydell

[Qemu-devel] [PATCH 14/19] linux-user: Implement *listxattr syscalls

2012-02-03 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org Implement listxattr, flistxattr and llistxattr syscalls. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 36 +++- 1 files changed, 35

[Qemu-devel] [PATCH 11/19] linux-user: fix wait* syscall status returns

2012-02-03 Thread riku . voipio
From: Alexander Graf ag...@suse.de When calling wait4 or waitpid with a status pointer and WNOHANG, the syscall can potentially not modify the status pointer input. Now if we have guest code like: int status = 0; waitpid(pid, status, WNOHANG); if (status) breakage then we have to

[Qemu-devel] [PATCH 07/19] linux-user/main.c: Add option to user-mode emulation so that user can specify log file name

2012-02-03 Thread riku . voipio
From: 陳韋任 che...@iis.sinica.edu.tw QEMU linux user-mode's default log file name is /tmp/qemu.log. In order to change the log file name, user need to modify the source code then recompile QEMU. This patch allow user use -D logfile option to specify the log file name. Signed-off-by: Chen Wen-Ren

[Qemu-devel] [PATCH 13/19] linux-user/syscall.c: Implement f and l versions of set/get/removexattr

2012-02-03 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org Implement the f and l versions (operate on fd, don't follow links) of the setxattr, getxattr and removexattr syscalls. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c |

[Qemu-devel] [PATCH 17/19] linux-user: Define TARGET_QEMU_ESIGRETURN for mipsn32

2012-02-03 Thread riku . voipio
From: Andreas Färber afaer...@suse.de Copied from mips/syscall.h. Signed-off-by: Ulrich Hecht u...@suse.de Signed-off-by: Andreas Färber afaer...@suse.de Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/mipsn32/syscall.h |3 +++ 1 files changed, 3 insertions(+), 0

[Qemu-devel] [PATCH 18/19] linux-user: Define TARGET_QEMU_ESIGRETURN for mips64

2012-02-03 Thread riku . voipio
From: Andreas Färber afaer...@suse.de Copied from mips/syscall.h. Signed-off-by: Khansa Butt kha...@kics.edu.pk Signed-off-by: Andreas Färber afaer...@suse.de Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/mips64/syscall.h |3 +++ 1 files changed, 3 insertions(+), 0

[Qemu-devel] [PATCH 12/19] linux-user: Allow NULL value pointer in setxattr and getxattr

2012-02-03 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org It's valid to pass a NULL value pointer to setxattr, so don't fail this case EFAULT. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 24 ++-- 1

[Qemu-devel] [PATCH 15/19] linux-user: Add default-configs for mipsn32[el]

2012-02-03 Thread riku . voipio
From: Andreas Färber afaer...@suse.de Prepares for mipsn32[el]-linux-user targets. Signed-off-by: Ulricht Hecht u...@suse.de Signed-off-by: Andreas Färber afaer...@suse.de Signed-off-by: Riku Voipio riku.voi...@linaro.org --- default-configs/mipsn32-linux-user.mak |1 +

[Qemu-devel] [PATCH 01/19] linux-user: stack_base is now mandatory on all targets

2012-02-03 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/qemu.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 55ad9d8..30e2abd 100644 --- a/linux-user/qemu.h +++

[Qemu-devel] [PATCH 03/19] linux-user: add open() hijack infrastructure

2012-02-03 Thread riku . voipio
From: Alexander Graf ag...@suse.de There are a number of files in /proc that expose host information to the guest program. This patch adds infrastructure to override the open() syscall for guest programs to enable us to on the fly generate guest sensible files. Signed-off-by: Alexander Graf

[Qemu-devel] [PATCH 19/19] linux-user: Fix sa_flags byte swaps for mips

2012-02-03 Thread riku . voipio
From: Andreas Färber afaer...@suse.de sa_flags is uint32_t for mips{,n32,64}, so don't use tswapal(). edited by Riku Voipio: likewise on alpha Reported-by: Khansa Butt kha...@kics.edu.pk Suggested-by: Richard Henderson r...@twiddle.net Signed-off-by: Andreas Färber afaer...@suse.de Cc: Ehsan Ul

[Qemu-devel] [PATCH 05/19] linux-user: fake /proc/self/stat

2012-02-03 Thread riku . voipio
From: Alexander Graf ag...@suse.de The boehm gc finds the program's stack starting pointer by checking /proc/self/stat. Unfortunately, so far it reads qemu's stack pointer which clearly is wrong. So let's instead fake the file so the guest program sees the right address. Signed-off-by:

[Qemu-devel] [PATCH 08/19] linux-user: add SO_PEERCRED support for getsockopt

2012-02-03 Thread riku . voipio
From: Akos PASZTORY akos.paszt...@gmail.com Signed-off-by: Akos PASZTORY akos.paszt...@gmail.com Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 34 +- linux-user/syscall_defs.h |6 ++ 2 files changed, 39 insertions(+),

[Qemu-devel] [PATCH 02/19] linux-user: save auxv length

2012-02-03 Thread riku . voipio
From: Alexander Graf ag...@suse.de We create our own AUXV segment on stack and save a pointer to it. However we don't save the length of it, so any code that wants to do anything useful with it later on has to walk it again. Instead, let's remember the length of our AUXV segment. This simplifies

[Qemu-devel] [PATCH 04/19] linux-user: fake /proc/self/maps

2012-02-03 Thread riku . voipio
From: Alexander Graf ag...@suse.de glibc's pthread_attr_getstack tries to find the stack range from /proc/self/maps. Unfortunately, /proc is usually the host's /proc which means linux-user guests see qemu's stack there. Fake the file with a constructed maps entry that exposes the guest's stack

[Qemu-devel] [PATCH 16/19] linux-user: Add default configs for mips64[el]

2012-02-03 Thread riku . voipio
From: Andreas Färber afaer...@suse.de Prepares for mips64[el]-linux-user targets. Signed-off-by: Khansa Butt kha...@kics.edu.pk Signed-off-by: Andreas Färber afaer...@suse.de Signed-off-by: Riku Voipio riku.voi...@linaro.org --- default-configs/mips64-linux-user.mak |1 +

[Qemu-devel] [PULL] [PATCH 00/19] linux-user update

2012-02-03 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org The following changes since commit d34e8f6e9d3a396c3327aa9807c83f9e1f4a7bd7: main-loop: For tools, initialize timers as part of qemu_init_main_loop() (2012-02-01 14:45:02 -0600) are available in the git repository at:

Re: [Qemu-devel] [PATCH 01/16] qdev: fix hot-unplug

2012-02-03 Thread Anthony Liguori
On 02/02/2012 01:07 PM, Alexander Graf wrote: On 02.02.2012, at 20:01, Anthony Liguori wrote: On 02/02/2012 11:29 AM, Paolo Bonzini wrote: On 02/02/2012 06:03 PM, Anthony Liguori wrote: Is this still needed with qom-upstream.14? I fixed a bug on .14 that involved child properties that

Re: [Qemu-devel] [PATCH v2 0/8] qemu-ga: add support for Windows

2012-02-03 Thread Luiz Capitulino
On Fri, 03 Feb 2012 10:37:25 -0600 Michael Roth mdr...@linux.vnet.ibm.com wrote: On 02/03/2012 08:18 AM, Luiz Capitulino wrote: On Thu, 2 Feb 2012 13:58:52 -0600 Michael Rothmdr...@linux.vnet.ibm.com wrote: These patches apply on top of qemu.git master, and can also be obtained

Re: [Qemu-devel] [PATCH v2 0/8] qemu-ga: add support for Windows

2012-02-03 Thread Michael Roth
On 02/03/2012 08:18 AM, Luiz Capitulino wrote: On Thu, 2 Feb 2012 13:58:52 -0600 Michael Rothmdr...@linux.vnet.ibm.com wrote: These patches apply on top of qemu.git master, and can also be obtained from: git://github.com/mdroth/qemu.git qga-win32-v2 Luiz/Gal, I decided not to roll the

Re: [Qemu-devel] [PATCH 01/16] qdev: fix hot-unplug

2012-02-03 Thread Alexander Graf
On 03.02.2012, at 17:37, Anthony Liguori anth...@codemonkey.ws wrote: On 02/02/2012 01:07 PM, Alexander Graf wrote: On 02.02.2012, at 20:01, Anthony Liguori wrote: On 02/02/2012 11:29 AM, Paolo Bonzini wrote: On 02/02/2012 06:03 PM, Anthony Liguori wrote: Is this still needed with

Re: [Qemu-devel] [PATCH v2 2/8] qemu-ga: move channel/transport functionalit

2012-02-03 Thread Michael Roth
On 02/02/2012 10:25 PM, MATSUDA, Daiki wrote: Hi, Michael! Thank you for your working. And I have a question the process id written in pid file. If qemu-ga is ran as daemon, the parent process id not child is written in pid file. So, id gotten by 'ps' command is different. Is it correct work?

Re: [Qemu-devel] [PATCH 01/16] qdev: fix hot-unplug

2012-02-03 Thread Anthony Liguori
On 02/03/2012 10:57 AM, Alexander Graf wrote: On 03.02.2012, at 17:37, Anthony Liguorianth...@codemonkey.ws wrote: On 02/02/2012 01:07 PM, Alexander Graf wrote: On 02.02.2012, at 20:01, Anthony Liguori wrote: On 02/02/2012 11:29 AM, Paolo Bonzini wrote: On 02/02/2012 06:03 PM, Anthony

[Qemu-devel] [PATCH] s390x: fix -drive in the absence of aliases

2012-02-03 Thread Anthony Liguori
Signed-off-by: Anthony Liguori aligu...@us.ibm.com --- blockdev.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/blockdev.c b/blockdev.c index 7e4c548..7d7ac31 100644 --- a/blockdev.c +++ b/blockdev.c @@ -565,7 +565,11 @@ DriveInfo *drive_init(QemuOpts *opts, int

Re: [Qemu-devel] [PATCH 00/22] qom: use Type system to register all devices (v2)

2012-02-03 Thread Anthony Liguori
On 02/01/2012 01:50 PM, Anthony Liguori wrote: This is the 3rd QOM series. All known issues have been resolved. This has been extensively tested (including for bisectability). I think this is ready to apply. The goal of this series is to make DeviceState a first class QOM base class. The

Re: [Qemu-devel] [PATCH v8 0/4] -net bridge: rootless bridge support for qemu

2012-02-03 Thread Anthony Liguori
On 01/26/2012 08:42 AM, Corey Bryant wrote: With qemu it is possible to run a guest from an unprivileged user but if we wanted to communicate with the outside world we had to switch to root. We address this problem by introducing a new network backend and a new network option for -net tap.

Re: [Qemu-devel] [PATCH v2] keep the PID file locked for the lifetime of the process

2012-02-03 Thread Anthony Liguori
On 01/27/2012 07:34 AM, Laszlo Ersek wrote: The lockf() call in qemu_create_pidfile() aims at ensuring mutual exclusion. We shouldn't close the pidfile on success (as introduced by commit 1bbd1592), because that drops the lock as well [1]: File locks shall be released on first close by the

Re: [Qemu-devel] [PATCH] hw/vmmouse.c: Disable vmmouse after reboot

2012-02-03 Thread Anthony Liguori
On 01/25/2012 02:04 PM, Gerhard Wiesinger wrote: Bugfix after reboot when vmmouse was enabled and another OS which uses e.g. PS/2 mouse. Details: When a guest activated the vmmouse followed by a reboot the vmmouse was still enabled and the PS/2 mouse was therefore unsusable. When another guest

Re: [Qemu-devel] [PATCH] Change license from GPLv2 to GPLv2+

2012-02-03 Thread Anthony Liguori
On 01/27/2012 10:40 AM, Stefan Weil wrote: This file only contains code from Red Hat, so it can use GPLv2+. Tested with `git blame -M -C net/checksum.c`. Signed-off-by: Stefan Weils...@weilnetz.de Applied. Thanks. Regards, Anthony Liguori --- net/checksum.c |5 + 1 files

Re: [Qemu-devel] [PATCH] s390x: fix -drive in the absence of aliases

2012-02-03 Thread Anthony Liguori
On 02/03/2012 11:18 AM, Anthony Liguori wrote: Signed-off-by: Anthony Liguorialigu...@us.ibm.com --- blockdev.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) *sigh* my work directory was dirty. This needs a #include arch_init.h too. Regards, Anthony Liguori diff

Re: [Qemu-devel] [PATCH v2 0/8] qemu-ga: add support for Windows

2012-02-03 Thread Michael Roth
On 02/03/2012 10:45 AM, Luiz Capitulino wrote: On Fri, 03 Feb 2012 10:37:25 -0600 Michael Rothmdr...@linux.vnet.ibm.com wrote: On 02/03/2012 08:18 AM, Luiz Capitulino wrote: On Thu, 2 Feb 2012 13:58:52 -0600 Michael Rothmdr...@linux.vnet.ibm.com wrote: These patches apply on top of

Re: [Qemu-devel] [PATCH] hw/vmmouse.c: Disable vmmouse after reboot

2012-02-03 Thread Gerhard Wiesinger
On Fri, 3 Feb 2012, Anthony Liguori wrote: On 01/25/2012 02:04 PM, Gerhard Wiesinger wrote: Bugfix after reboot when vmmouse was enabled and another OS which uses e.g. PS/2 mouse. Details: When a guest activated the vmmouse followed by a reboot the vmmouse was still enabled and the PS/2

Re: [Qemu-devel] [RFC] Next gen kvm api

2012-02-03 Thread Eric Northup
On Thu, Feb 2, 2012 at 8:09 AM, Avi Kivity a...@redhat.com wrote: [...] Moving to syscalls avoids these problems, but introduces new ones: - adding new syscalls is generally frowned upon, and kvm will need several - syscalls into modules are harder and rarer than into core kernel code - will

[Qemu-devel] [PATCH v4 2/7] hw/vexpress.c: Make motherboard peripheral memory map table-driven

2012-02-03 Thread Peter Maydell
Pull the addresses used for mapping motherboard peripherals into memory out into a table. This will allow us to simply provide a second table to implement the Cortex-A Series memory map used by the A15 variant of Versatile Express, as well as the current Legacy map used by A9. Signed-off-by:

[Qemu-devel] [PATCH v4 3/7] hw/vexpress.c: Move secondary CPU boot code to SRAM

2012-02-03 Thread Peter Maydell
On real Versatile Express hardware, the boot ROM puts the secondary CPU bootcode/holding pen in SRAM. We can therefore rely on Linux not trashing this memory until secondary CPUs have booted up, and can put our QEMU-specific pen code in the same place. This allows us to drop the odd hack RAM page

[Qemu-devel] [PATCH v4 1/7] hw/a15mpcore.c: Add Cortex-A15 private peripheral model

2012-02-03 Thread Peter Maydell
Add a model of the Cortex-A15 memory mapped private peripheral space. This is fairly simple because the only memory mapped bit of the A15 is the GIC. Note that we don't currently model a VGIC and therefore don't map the VGIC related bits of the GIC. Signed-off-by: Peter Maydell

[Qemu-devel] [PATCH v4 7/7] hw/vexpress.c: Add vexpress-a15 machine

2012-02-03 Thread Peter Maydell
Add the vexpress-a15 machine, and the A-Series memory map it uses. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Andreas Färber afaer...@suse.de --- hw/vexpress.c | 141 + 1 files changed, 141 insertions(+), 0

[Qemu-devel] [PATCH v4 4/7] hw/vexpress.c: Factor out daughterboard-specific initialization

2012-02-03 Thread Peter Maydell
Factor out daughterboard specifics into a data structure and daughterboard initialization function, in preparation for adding vexpress-a15 support. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- hw/vexpress.c | 118 - 1 files

[Qemu-devel] [PATCH v4 5/7] hw/vexpress.c: Instantiate the motherboard CLCD

2012-02-03 Thread Peter Maydell
Instantiate the CLCD on the vexpress motherboard as well as one on the daughterboard -- the A15 daughterboard does not have a CLCD and so relies on the motherboard one. At the moment QEMU doesn't provide infrastructure for selecting which display device gets to actually show graphics -- the first

Re: [Qemu-devel] [PATCH v2 0/8] qemu-ga: add support for Windows

2012-02-03 Thread Luiz Capitulino
On Fri, 03 Feb 2012 11:23:05 -0600 Michael Roth mdr...@linux.vnet.ibm.com wrote: On 02/03/2012 10:45 AM, Luiz Capitulino wrote: On Fri, 03 Feb 2012 10:37:25 -0600 Michael Rothmdr...@linux.vnet.ibm.com wrote: On 02/03/2012 08:18 AM, Luiz Capitulino wrote: On Thu, 2 Feb 2012 13:58:52

[Qemu-devel] [PATCH v4 0/7] Add support for vexpress-a15

2012-02-03 Thread Peter Maydell
This patchset adds support for the Versatile Express A15 daughterboard. The resulting model is capable of booting a Linux kernel which has been configured for Cortex-A15 with the Versatile Express extended memory map and without support for LPAE. Changes v3-v4: * fixed a minor spacing issue in

[Qemu-devel] [PATCH v4 6/7] arm_boot: Pass base address of GIC CPU interface, not whole GIC

2012-02-03 Thread Peter Maydell
The arm_boot secondary boot loader code needs the address of the GIC CPU interface. Obtaining this from the base address of the private peripheral region was possible for A9 and 11MPcore, but the A15 puts the GIC CPU interface in a different place. So make boards pass in the GIC CPU interface

[Qemu-devel] [PATCH] MAINTAINERS: Add hw/highbank.c maintainer

2012-02-03 Thread Mark Langsdorf
Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- MAINTAINERS |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 173e893..bdc254f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -237,6 +237,11 @@ M: Peter Maydell

[Qemu-devel] [PATCH] KVM: Fix breakages of QOM conversion

2012-02-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com KVM APIC and PIC require instance sizes. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/kvm/apic.c |1 + hw/kvm/i8259.c |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/kvm/apic.c b/hw/kvm/apic.c index

[Qemu-devel] [PATCH v2 00/11] tracetool: Improvements for future expansion

2012-02-03 Thread Lluís Vilanova
NOTE: Depend's on Harsh's port of tractool to python. A general overhaul of the pythonic tracetool script to allow simpler future extensions. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Changes in v2: * Minor changes Lluís Vilanova (11): [trivial] Fix a compiler warning

[Qemu-devel] [PATCH v2 01/11] [trivial] Fix a compiler warning

2012-02-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/tracetool.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/tracetool.py b/scripts/tracetool.py index 6874f66..f0d7e1e 100755 --- a/scripts/tracetool.py +++ b/scripts/tracetool.py @@ -183,7 +183,7 @@

[Qemu-devel] [PATCH v2 02/11] trace: [tracetool] Do not rebuild event list in backend code

2012-02-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/tracetool.py | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/tracetool.py b/scripts/tracetool.py index f0d7e1e..7042728 100755 --- a/scripts/tracetool.py +++ b/scripts/tracetool.py @@

[Qemu-devel] [PATCH v2 03/11] trace: [tracetool] Simplify event line parsing

2012-02-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/tracetool.py | 46 ++ 1 files changed, 14 insertions(+), 32 deletions(-) diff --git a/scripts/tracetool.py b/scripts/tracetool.py index 7042728..f675d96 100755 --- a/scripts/tracetool.py

[Qemu-devel] [PATCH v2 04/11] trace: [ŧracetool] Do not precompute the event number

2012-02-03 Thread Lluís Vilanova
This would otherwise break event numbering when actually using the disable property. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/tracetool.py | 21 + 1 files changed, 9 insertions(+), 12 deletions(-) diff --git a/scripts/tracetool.py

[Qemu-devel] [PATCH v2 05/11] trace: [tracetool] Add support for event properties

2012-02-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/tracetool.py |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/scripts/tracetool.py b/scripts/tracetool.py index 94c8d7d..de867bd 100755 --- a/scripts/tracetool.py +++ b/scripts/tracetool.py @@ -472,7

[Qemu-devel] [PATCH v2 06/11] trace: [tracetool] Process the disable event property

2012-02-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/tracetool.py | 13 +++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/scripts/tracetool.py b/scripts/tracetool.py index de867bd..b735a54 100755 --- a/scripts/tracetool.py +++ b/scripts/tracetool.py @@

[Qemu-devel] [PATCH v2 07/11] trace: [tracetool] Rewrite event argument parsing

2012-02-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/tracetool.py | 187 -- 1 files changed, 91 insertions(+), 96 deletions(-) diff --git a/scripts/tracetool.py b/scripts/tracetool.py index b735a54..cd1c29d 100755 ---

[Qemu-devel] [PATCH v2 08/11] trace: [tracetool] Make format-specific code optional and with access to event information

2012-02-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/tracetool.py | 35 ++- 1 files changed, 10 insertions(+), 25 deletions(-) diff --git a/scripts/tracetool.py b/scripts/tracetool.py index cd1c29d..91e7620 100755 --- a/scripts/tracetool.py +++

[Qemu-devel] [PATCH v2 09/11] trace: [tracetool] Automatically establish available backends and formats

2012-02-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Makefile.objs|6 - Makefile.target |3 scripts/tracetool.py | 357 -- 3 files changed, 230 insertions(+), 136 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index

[Qemu-devel] [PATCH v2 10/11] trace: Provide a per-event status define for conditional compilation

2012-02-03 Thread Lluís Vilanova
NOTE: This is a port of a patch in Stefanha's tracing tree to the new pythonic tracetool version. Adds a 'TRACE_${NAME}_ENABLED' preprocessor define for each tracing event in trace.h. This lets the user conditionally compile code with a relatively high execution cost that is only necessary

[Qemu-devel] [PATCH v2 11/11] trace: [tracetool] Add error-reporting functions

2012-02-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/tracetool.py | 27 +++ 1 files changed, 15 insertions(+), 12 deletions(-) diff --git a/scripts/tracetool.py b/scripts/tracetool.py index 1134544..7053a74 100755 --- a/scripts/tracetool.py +++

[Qemu-devel] [PATCH 0/3] More concise handling of tracetool-generated files

2012-02-03 Thread Lluís Vilanova
NOTE: Applies on top of the tracetool improvements series. Some trivial changes to handle tracetool-generated files more concisely. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Lluís Vilanova (3): [trivial] Generic elimination of auto-generated files [trivial] Simpler

[Qemu-devel] [PATCH 1/3] [trivial] Generic elimination of auto-generated files

2012-02-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Makefile |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 47acf3d..a9f3c7e 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ ifeq ($(TRACE_BACKEND),dtrace) GENERATED_HEADERS +=

[Qemu-devel] [PATCH v2] usb: Resolve warnings about unassigned bus on usb device creation

2012-02-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com When creating an USB device the old way, there is no way to specify the target bus. Thus the warning issued by usb_create makes no sense and rather confuses our users. Resolve this by passing a bus reference to the usbdevice_init handler and letting those

[Qemu-devel] [PATCH 2/3] [trivial] Simpler handling of tracetool-generated files in makfiles

2012-02-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Makefile.objs | 19 +-- rules.mak |6 ++ 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index 941386b..b187d17 100644 --- a/Makefile.objs +++ b/Makefile.objs @@

[Qemu-devel] [PATCH 3/3] [trivial] Regenerate files when tracetool changes

2012-02-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Makefile.objs |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index b187d17..e6644c6 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -352,12 +352,12 @@ ifeq

[Qemu-devel] [PATCH 0/6] trace: Generic event state description

2012-02-03 Thread Lluís Vilanova
NOTE: Applies on top of the tracetool-handling trivial changes. Provides a generic event state description and a more detailed event control and query interface. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Lluís Vilanova (6): trace: Provide a generic tracing event descriptor

[Qemu-devel] [PATCH 1/6] trace: Provide a generic tracing event descriptor

2012-02-03 Thread Lluís Vilanova
Uses tracetool to generate a backend-independent tracing event description. Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- Makefile |5 +++ Makefile.objs | 13 +++ scripts/tracetool.py | 90

[Qemu-devel] [PATCH 2/6] trace: Provide a detailed event control interface

2012-02-03 Thread Lluís Vilanova
This interface decouples event obtention from interaction. Event can be obtained through three different methods: * identifier * name * simple wildcard pattern Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- docs/tracing.txt | 38 +- trace/control-internal.h | 49

[Qemu-devel] [PATCH 3/6] trace: [monitor] Use new event control interface

2012-02-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- monitor.c | 15 --- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/monitor.c b/monitor.c index 5e099bd..010f659 100644 --- a/monitor.c +++ b/monitor.c @@ -617,10 +617,19 @@ static void

[Qemu-devel] [PATCH 4/6] trace: [default] Use new event control interface

2012-02-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- trace/default.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/trace/default.c b/trace/default.c index c9b27a2..12db18d 100644 --- a/trace/default.c +++ b/trace/default.c @@ -18,11 +18,10 @@ void

[Qemu-devel] [PATCH 5/6] trace: [simple] Port to generic event information and new control interface

2012-02-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/tracetool.py | 28 +--- trace/simple.c | 32 +--- trace/simple.h |6 +- trace/stderr.h | 11 --- 4 files changed, 15 insertions(+), 62

[Qemu-devel] [PATCH 6/6] trace: [stderr] Port to generic event information and new control interface

2012-02-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova vilan...@ac.upc.edu --- scripts/tracetool.py | 26 -- trace/stderr.c | 34 ++ 2 files changed, 14 insertions(+), 46 deletions(-) diff --git a/scripts/tracetool.py b/scripts/tracetool.py index

Re: [Qemu-devel] Is there any document about qemu's kernel boot loader?

2012-02-03 Thread 陳韋任
On Thu, Feb 02, 2012 at 10:48:13AM +0800, 杨亮 wrote: Hi, recently I am focusing on KVM(kernel virtualization machine), in which the device simulation employ the Qemu’s code directly. Still, the Qemu can run the Guest OS alone, from kernel boot to device simulation. Device simulation is

Re: [Qemu-devel] [PATCH v2 2/8] qemu-ga: move channel/transport functionalit

2012-02-03 Thread MATSUDA, Daiki
Hi, Michael! Thank you for your working. And I have a question the process id written in pid file. If qemu-ga is ran as daemon, the parent process id not child is written in pid file. So, id gotten by 'ps' command is different. Is it correct work? Many other daemon writes child process id.

Re: [Qemu-devel] [RFC] Next gen kvm api

2012-02-03 Thread Rob Earhart
(Resending as plain text to appease vger.kernel.org :-) On Thu, Feb 2, 2012 at 8:09 AM, Avi Kivity a...@redhat.com wrote: The kvm api has been accumulating cruft for several years now.  This is due to feature creep, fixing mistakes, experience gained by the maintainers and developers on how

Re: [Qemu-devel] [RFC] Next gen kvm api

2012-02-03 Thread Rob Earhart
On Thu, Feb 2, 2012 at 8:09 AM, Avi Kivity a...@redhat.com wrote: The kvm api has been accumulating cruft for several years now. This is due to feature creep, fixing mistakes, experience gained by the maintainers and developers on how to do things, ports to new architectures, and simply as a

[Qemu-devel] QEMU build errors with 'fdopendir'

2012-02-03 Thread Meador Inge
Did these [1] builds errors ever get fixed? I am running into one of them. I am building QEMU in an environment where 'fdopendir' is not present. 'fdopendir' was introduced in POSIX 2008 (and The Open Group Technical Standard, 2006, Extended API Set Part 2.), so it may not be available in some

Re: [Qemu-devel] [RFC] Next gen kvm api

2012-02-03 Thread Anthony Liguori
On 02/03/2012 12:07 PM, Eric Northup wrote: On Thu, Feb 2, 2012 at 8:09 AM, Avi Kivitya...@redhat.com wrote: [...] Moving to syscalls avoids these problems, but introduces new ones: - adding new syscalls is generally frowned upon, and kvm will need several - syscalls into modules are harder

Re: [Qemu-devel] libqemu for use in parallel-language based simulator

2012-02-03 Thread 陳韋任
Hi, Sean libqemu appears to be the heart of what we need. Just the core functionality of a processor's instruction-set. We will need a few thousand or so separate processor-states, similar to how COREMU has multiple processor states. libqemu is gone. Maybe you can try libcpu [1]

[Qemu-devel] buildbot failure in qemu on default_i386_rhel61

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

  1   2   >