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

2012-02-03 Thread Paolo Bonzini
On 02/04/2012 07:42 AM, Paolo Bonzini wrote: Ok, I'll cherry-pick from there and send out an updated patch series later today. ... that won't work unfortunately. Enums are broken (not your fault really, I sent this before losttickpolicy went in); I really dislike having a single object that

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

2012-02-03 Thread Paolo Bonzini
On 02/04/2012 04:03 AM, Anthony Liguori wrote: There's no object_ref() in qdev_device_add(). The 2 references come from adding a child link to /peripheral and via object_new(). Sure, but there's when the object_new() reference becomes unreachable. At this point, if it weren't for /peripheral

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

2012-02-03 Thread Paolo Bonzini
On 02/04/2012 04:00 AM, Anthony Liguori wrote: Yeah, I was just thinking out loud. My plan is to pull your series into my qom-rebase branch. The last few commits on https://github.com/aliguori/qemu/tree/qom-rebase.12 have a variant visitor and accessors that use it. Ok, I'll cherry-pick fr

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-02-03 Thread Charles . Tsai-蔡清海-研究發展部
Vadim, We tested the free build driver on 32-bit Windows 7 and the symptom was the same. In other words, the latest driver source from https://github.com/YanVugenfirer/ is buggy and it was not workable at all. -Original Message- From: Charles.Tsai-蔡清海-研究發展部 Sent: Friday, February 03,

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

2012-02-03 Thread Anthony Liguori
On 02/03/2012 06:27 PM, Paolo Bonzini wrote: On 02/03/2012 03:27 PM, Anthony Liguori wrote: 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).

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/03/2012 06:43 PM, Paolo Bonzini wrote: On 02/04/2012 01:21 AM, Paolo Bonzini wrote: I'm not sure... we would trade removal of an ugly concept (the legacy properties) with addition of a layering violation (poking into the DeviceState subclasses). The main problem here is that you said no

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

2012-02-03 Thread Peter Maydell
On 3 February 2012 20:58, Mark Langsdorf wrote: > Signed-off-by: Mark Langsdorf > --- >  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

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

2012-02-03 Thread Takuya Yoshikawa
Hope to get comments from live migration developers, Anthony Liguori wrote: > > Guest memory management > > --- > > Instead of managing each memory slot individually, a single API will be > > provided that replaces the entire guest physical memory map atomically. > > This mat

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

2012-02-03 Thread Paolo Bonzini
On 02/04/2012 01:21 AM, Paolo Bonzini wrote: I'm not sure... we would trade removal of an ugly concept (the legacy properties) with addition of a layering violation (poking into the DeviceState subclasses). The main problem here is that you said no to a hierarchy of property classes. This is

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

2012-02-03 Thread Paolo Bonzini
On 02/03/2012 03:27 PM, Anthony Liguori wrote: 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 Bonzini This isn't need

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

2012-02-03 Thread Paolo Bonzini
On 02/03/2012 03:14 PM, Anthony Liguori wrote: Nope, the legacy property still keeps the dd.f format. This is only for QOM (and internal use by qdev). Ah, I forgot we duplicate the properties here. Since there is now a programmatic mapping between legacy properties types and non-legacy prop

[Qemu-devel] [PATCH] usb-bsd: convert to QOM

2012-02-03 Thread Anthony Liguori
Untested but simple enough. Signed-off-by: Anthony Liguori --- usb-bsd.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/usb-bsd.c b/usb-bsd.c index 2c6afc8..43fd1a1 100644 --- a/usb-bsd.c +++ b/usb-bsd.c @@ -410,15 +410,16 @@ static void usb_host_class_initfn(

Re: [Qemu-devel] buildbot failure in qemu on default_mingw32

2012-02-03 Thread Anthony Liguori
On 02/03/2012 06:11 PM, q...@buildbot.b1-systems.de wrote: The Buildbot has detected a new failure on builder default_mingw32 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_mingw32/builds/167 Buildbot URL: http://buildbot.b1-systems.de/

[Qemu-devel] buildbot failure in qemu on default_mingw32

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

[Qemu-devel] [PATCH] usb-redir: convert to QOM

2012-02-03 Thread Anthony Liguori
This was missed due to the fact that it's in the top level and it uses 'struct DeviceInfo' instead of 'DeviceInfo' for some strange reason. I'm not able to test this as I don't have libusbredir installed. Signed-off-by: Anthony Liguori --- usb-redir.c | 24 ++-- 1 files ch

[Qemu-devel] buildbot failure in qemu on default_x86_64_rhel61

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

[Qemu-devel] buildbot failure in qemu on default_openbsd_current

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

[Qemu-devel] buildbot failure in qemu on default_openbsd_4.9

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

[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

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

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 Kivity 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 i

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

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 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 side effect

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

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. Regard

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 simulatio

[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 --- 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 f4ce927..c6f5ea6 100755 ---

[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 --- scripts/tracetool.py | 28 +--- trace/simple.c | 32 +--- trace/simple.h |6 +- trace/stderr.h | 11 --- 4 files changed, 15 insertions(+), 62 deletions(-) delete mode 10

[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 --- 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 trace_print_events(FILE *stream, fprint

[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 --- 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 do_trace_event_set_state(Monitor *mon, const Q

[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 --- docs/tracing.txt | 38 +- trace/control-internal.h | 49 ++

[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 --- Makefile |5 +++ Makefile.objs | 13 +++ scripts/tracetool.py | 90 trace/event-internal.h | 31 ++

[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 --- Lluís Vilanova (6): trace: Provide a generic tracing event descriptor trace: Provide a

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

2012-02-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- 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 ($(TRACE_BACKEND),dtrace) TRACE_H_EXTRA_DEP

[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 --- 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 @@ -349,18 +349,17 @@ libdi

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

2012-02-03 Thread Jan Kiszka
From: Jan Kiszka 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 handlers forward it to

[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 --- 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 += trace-dtrace.h endif GE

[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 --- Lluís Vilanova (3): [trivial] Generic elimination of auto-generated files [trivial] Simpler handling of tracetool-gen

[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 --- 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 +++ b/scripts/tracetool.py @@ -12,6 +12,

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

[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 --- 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 2b68739..941386b 10

[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 --- 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 +++ b/scripts/tracetool.py @@ -3

[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 --- 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 --- a/scripts/tracetool.py +++ b/scripts/tra

[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 --- 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 @@ -365,6 +365,9 @@ def dtra

[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 --- 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 +472,9 @@ trace_gen = {

[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 --- scripts/tracetool.py | 21 + 1 files changed, 9 insertions(+), 12 deletions(-) diff --git a/scripts/tracetool.py b/scripts/tracetool.py index f675d96..9

[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 --- 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 +++ b/scripts/traceto

[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 --- 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 @@ -171,15 +171,14 @@ def si

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

2012-02-03 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- 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 @@ def simple_c(events)

[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 --- Changes in v2: * Minor changes Lluís Vilanova (11): [trivial] Fix a compiler warning trace: [tracetool]

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

2012-02-03 Thread Jan Kiszka
From: Jan Kiszka KVM APIC and PIC require instance sizes. Signed-off-by: Jan Kiszka --- 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 89e33b0..dfc2ab3 100644 --- a/hw/kvm/apic.c +++ b/hw/kvm/

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

2012-02-03 Thread Mark Langsdorf
Signed-off-by: Mark Langsdorf --- 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 S: Maintained F: hw/versatilepb.c +Calx

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

[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

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 wrote: > On 02/03/2012 10:45 AM, Luiz Capitulino wrote: > > On Fri, 03 Feb 2012 10:37:25 -0600 > > Michael Roth wrote: > > > >> On 02/03/2012 08:18 AM, Luiz Capitulino wrote: > >>> On Thu, 2 Feb 2012 13:58:52 -0600 > >>> Michael Roth wrote: > >>

[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

[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 --- hw/vexpress.c | 118 - 1 files changed, 83 insertions(+),

[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 Reviewed-by: Andreas Färber --- hw/vexpress.c | 141 + 1 files changed, 141 insertions(+), 0 deletions(-) diff --git a/hw/vexpress.c b/hw/vex

[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 --- Makefile.tar

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

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 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 need to a

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 mous

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 Roth wrote: On 02/03/2012 08:18 AM, Luiz Capitulino wrote: On Thu, 2 Feb 2012 13:58:52 -0600 Michael Roth wrote: These patches apply on top of qemu.git master, and can also be obtained from: git://g

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 Liguori --- 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 --git a/blockdev.c b/

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 Weil Applied. Thanks. Regards, Anthony Liguori --- net/checksum.c |5 + 1 files changed, 1 insertions(

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 i

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 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. This

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 resu

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

2012-02-03 Thread Anthony Liguori
Signed-off-by: Anthony Liguori --- 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 default_to_scsi)

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 Liguori 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

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

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 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 need

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 Roth 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 th

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 wrote: > On 02/03/2012 08:18 AM, Luiz Capitulino wrote: > > On Thu, 2 Feb 2012 13:58:52 -0600 > > Michael Roth wrote: > > > >> These patches apply on top of qemu.git master, and can also be obtained > >> from: > >> git://github.com/mdroth/qemu.gi

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 was

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

2012-02-03 Thread riku . voipio
From: Riku Voipio 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: git://git.linaro.org/people/rikuvoipio/qemu.git linux-

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

2012-02-03 Thread riku . voipio
From: Andreas Färber Prepares for mips64[el]-linux-user targets. Signed-off-by: Khansa Butt Signed-off-by: Andreas Färber Signed-off-by: Riku Voipio --- default-configs/mips64-linux-user.mak |1 + default-configs/mips64el-linux-user.mak |1 + 2 files changed, 2 insertions(+), 0 del

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

2012-02-03 Thread riku . voipio
From: Alexander Graf 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 range. Signed-

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

2012-02-03 Thread riku . voipio
From: Alexander Graf 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 later uses by

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

2012-02-03 Thread riku . voipio
From: Akos PASZTORY Signed-off-by: Akos PASZTORY Signed-off-by: Riku Voipio --- linux-user/syscall.c | 34 +- linux-user/syscall_defs.h |6 ++ 2 files changed, 39 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscal

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

2012-02-03 Thread riku . voipio
From: Alexander Graf 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: Alexander Graf Signed

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

2012-02-03 Thread riku . voipio
From: Andreas Färber 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 Suggested-by: Richard Henderson Signed-off-by: Andreas Färber Cc: Ehsan Ul Haq Signed-off-by: Riku Voipio --- linux-user/signal.c |8 +

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

2012-02-03 Thread riku . voipio
From: Alexander Graf 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 Signed-off-by: Ri

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

2012-02-03 Thread riku . voipio
From: Riku Voipio Signed-off-by: Riku Voipio --- 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 +++ b/linux-user/qemu.h @@ -123,10 +123,10 @@ typedef struct T

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

2012-02-03 Thread riku . voipio
From: Andreas Färber Prepares for mipsn32[el]-linux-user targets. Signed-off-by: Ulricht Hecht Signed-off-by: Andreas Färber Signed-off-by: Riku Voipio --- default-configs/mipsn32-linux-user.mak |1 + default-configs/mipsn32el-linux-user.mak |1 + 2 files changed, 2 insertions(+),

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

2012-02-03 Thread riku . voipio
From: Peter Maydell It's valid to pass a NULL value pointer to setxattr, so don't fail this case EFAULT. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 24 ++-- 1 files changed, 18 insertions(+), 6 deletions(-) diff --git a/linux-user

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

2012-02-03 Thread riku . voipio
From: Andreas Färber Copied from mips/syscall.h. Signed-off-by: Khansa Butt Signed-off-by: Andreas Färber Signed-off-by: Riku Voipio --- linux-user/mips64/syscall.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/linux-user/mips64/syscall.h b/linux-user/mips64/sysc

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

2012-02-03 Thread riku . voipio
From: Andreas Färber Copied from mips/syscall.h. Signed-off-by: Ulrich Hecht Signed-off-by: Andreas Färber Signed-off-by: Riku Voipio --- linux-user/mipsn32/syscall.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/linux-user/mipsn32/syscall.h b/linux-user/mipsn32/

[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 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 Signed-off-by: Riku Voipio --- linux-user/syscall.c | 79 -- 1 files change

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

2012-02-03 Thread riku . voipio
From: Alexander Graf 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) then we have to make sure that in case s

[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: 陳韋任 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 Signed-off-by: Riku

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

2012-02-03 Thread riku . voipio
From: Peter Maydell Implement listxattr, flistxattr and llistxattr syscalls. Signed-off-by: Peter Maydell Signed-off-by: Riku Voipio --- linux-user/syscall.c | 36 +++- 1 files changed, 35 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall.c b/lin

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

2012-02-03 Thread riku . voipio
From: Peter Maydell 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 Signed-off-by: Riku Voipio ---

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

2012-02-03 Thread riku . voipio
From: Alexander Graf 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 failure to resolv

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

2012-02-03 Thread riku . voipio
From: Alexander Graf 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 backed auxv tables

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 Bonzini This isn't needed in qom-upstream.14. Here's why: object_init

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 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 s3 situation isn't f

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 Bonzini 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. This is only for QOM (a

  1   2   >