[Qemu-devel] [PATCH 14/15] vnc: tight: tweak adaptive tight settings

2010-08-12 Thread Corentin Chary
The force_jpeg threshold was too low. Signed-off-by: Corentin Chary corenti...@iksaif.net --- ui/vnc-enc-tight.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c index 9f83235..b0181ff 100644 ---

Re: [Qemu-devel] Running the user emulation

2010-08-12 Thread C K Kashyap
You mean qemu on NetBSD or NetBSD in general - if so, I know that even Solaris can also execute linux binaries. And to do it, it would require me to modify the mac os - which I have no clue how to. Maybe I'll try out what Stefan said - although, on the face of it, it looks like an endless cycles

[Qemu-devel] Re: Unmaintained QEMU builds

2010-08-12 Thread Stefan Weil
Am 12.08.2010 00:12, schrieb Paolo Bonzini: On 08/11/2010 03:37 PM, Stefan Weil wrote: With these changes, build succeeds with SDL. For example, qemu-system-sparc.exe can boot from a Sparc32 CD under Wine. Yes, that's a possible solution. You could also take these patches which I sent to

[Qemu-devel] [PATCH] pci init: Check if devfn exceeding the max devices number supported on bus

2010-08-12 Thread Ken CC
Check before trying subindexing. Signed-off-by: Ken CC ken.c...@gmail.com --- hw/pci.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index a09fbac..f6f00c6 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -675,6 +675,10 @@ static PCIDevice

[Qemu-devel] [PATCH] PCI: define max devices number on PCIBus as PCIBus_MAX_DEVICES in pci.h

2010-08-12 Thread Ken CC
Signed-off-by: Ken CC ken.c...@gmail.com --- hw/pci.c |2 +- hw/pci.h |1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index a98d6f3..a09fbac 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -44,7 +44,7 @@ struct PCIBus { pci_hotplug_fn hotplug;

Re: [Qemu-devel] Questions about networking

2010-08-12 Thread Peter Niessen
Hello again, using the hints on http://blog.cynapses.org/2007/07/12/qemu-kvm-internal-network-setup/ (on openSuSE 11.3) I could get my ping times down to 0.8 ms between the virtual machines. Now my torque batch setup works without problems. Here's my startup script, I include a second

[Qemu-devel] [PATCH 2/2] pci init: Check if devfn exceeding the max devices number supported on bus

2010-08-12 Thread Ken CC
Check before trying subindexing. Signed-off-by: Ken CC ken.c...@gmail.com --- hw/pci.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index a09fbac..f6f00c6 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -675,6 +675,10 @@ static PCIDevice

[Qemu-devel] [PATCH 12/14] trace: Add trace file name command-line option

2010-08-12 Thread Stefan Hajnoczi
From: Prerna Saxena pre...@linux.vnet.ibm.com This patch adds an optional command line switch '-trace' to specify the filename to write traces to, when qemu starts. Eg, If compiled with the 'simple' trace backend, [t...@system]$ qemu -trace FILENAME IMAGE Allows the binary traces to be written to

[Qemu-devel] [PATCH 13/14] trace: Add LTTng Userspace Tracer backend

2010-08-12 Thread Stefan Hajnoczi
This patch adds LTTng Userspace Tracer (UST) backend support. The UST system requires no kernel support but libust and liburcu must be installed. $ ./configure --trace-backend ust $ make Start the UST daemon: $ ustd List available tracepoints and enable some: $ ustctl --list-markers $(pgrep

[Qemu-devel] [PATCH 14/14] trace: Add user documentation

2010-08-12 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- docs/tracing.txt | 149 ++ 1 files changed, 149 insertions(+), 0 deletions(-) create mode 100644 docs/tracing.txt diff --git a/docs/tracing.txt b/docs/tracing.txt new file mode

[Qemu-devel] [PATCH 07/14] trace: Add simple built-in tracing backend

2010-08-12 Thread Stefan Hajnoczi
This patch adds a simple tracer which produces binary trace files. To try out the simple backend: $ ./configure --trace-backend=simple $ make After running QEMU you can pretty-print the trace: $ ./simpletrace.py trace-events /tmp/trace.log The output of simpletrace.py looks like this:

[Qemu-devel] [PATCH 03/14] trace: Trace virtio-blk, multiwrite, and paio_submit

2010-08-12 Thread Stefan Hajnoczi
This patch adds trace events that make it possible to observe virtio-blk. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- block.c|8 hw/virtio-blk.c|7 +++ posix-aio-compat.c |2 ++ trace-events | 14 ++ 4 files changed,

[Qemu-devel] Re: Unmaintained QEMU builds

2010-08-12 Thread Paolo Bonzini
On 08/12/2010 05:17 AM, Stefan Weil wrote: Jes has an opinion how thinks should be done, and I have a different one. If you read the complete history, you can see that I suggested a compromise (*) which would give the same result as Jes' suggestions. Only the steps to reach this result were

[Qemu-devel] [Bug 616769] [NEW] interrupt problem x86_64

2010-08-12 Thread Paolo Minazzi
Public bug reported: Hello. I'm studing the x86_64 arch to port colinux to this new architecture. For who does not know, colinux is a port of linux that runs on windows NATIVELY. Colinux is 1) a small windows driver 2) a kernel patched 3) some windows user-space application that talk with linux

Re: [Qemu-devel] Questions about networking

2010-08-12 Thread Mulyadi Santosa
On Thu, Aug 12, 2010 at 16:46, Peter Niessen p.nies...@fz-juelich.de wrote: Hello again, using the hints on http://blog.cynapses.org/2007/07/12/qemu-kvm-internal-network-setup/ (on openSuSE 11.3) I could get my ping times down to 0.8 ms between the virtual machines. Thanks for sharing. I

[Qemu-devel] [PATCH 01/14] trace: Add trace-events file for declaring trace events

2010-08-12 Thread Stefan Hajnoczi
This patch introduces the trace-events file where trace events can be declared like so: qemu_malloc(size_t size) size %zu qemu_free(void *ptr) ptr %p These trace event declarations are processed by a new tool called tracetool to generate code for the trace events. Trace event declarations are

[Qemu-devel] [PATCH 04/14] trace: Trace virtqueue operations

2010-08-12 Thread Stefan Hajnoczi
This patch adds trace events for virtqueue operations including adding/removing buffers, notifying the guest, and receiving a notify from the guest. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- hw/virtio.c |8 trace-events |8 2 files changed, 16

[Qemu-devel] [PATCH 06/14] trace: Trace entry point of balloon request handler

2010-08-12 Thread Stefan Hajnoczi
From: Prerna Saxena pre...@linux.vnet.ibm.com Signed-off-by: Prerna Saxena pre...@linux.vnet.ibm.com Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- balloon.c|2 ++ trace-events |4 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/balloon.c

[Qemu-devel] [PATCH 10/14] trace: Specify trace file name

2010-08-12 Thread Stefan Hajnoczi
From: Prerna Saxena pre...@linux.vnet.ibm.com Allow users to specify a file for trace-outputs at configuration. Also, allow trace files to be annotated by pid so each qemu instance has unique traces. The trace file name can be passed as a config option: --trace-file=/path/to/file (Default :

[Qemu-devel] [PATCH 00/14] trace: Add static tracing to QEMU

2010-08-12 Thread Stefan Hajnoczi
This patch series adds static tracing to QEMU. It can be used to instrument QEMU code by means of lightweight logging called trace events. Prerna and I are now posting the entire patch series with a serious eye towards checking we meet users' and developers' tracing needs and with the goal of

[Qemu-devel] [PATCH 08/14] trace: Support for dynamically enabling/disabling trace events.

2010-08-12 Thread Stefan Hajnoczi
From: Prerna Saxena pre...@linux.vnet.ibm.com This patch adds support for dynamically enabling/disabling of trace events. This is done by internally maintaining each trace event's state, and permitting logging of data from a trace event only if it is in an 'active' state. Monitor commands added

[Qemu-devel] [PATCH 11/14] trace: Add trace-file command to open/close/flush trace file

2010-08-12 Thread Stefan Hajnoczi
This patch adds the trace-file command: trace-file [on|off|flush] Open, close, or flush the trace file. If no argument is given, the status of the trace file is displayed. The trace file is turned on by default but is only written out when the trace buffer becomes full. The flush

[Qemu-devel] [PATCH 05/14] trace: Trace port IO

2010-08-12 Thread Stefan Hajnoczi
From: Prerna Saxena pre...@linux.vnet.ibm.com Signed-off-by: Prerna Saxena pre...@linux.vnet.ibm.com Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- ioport.c |7 +++ trace-events |4 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/ioport.c

[Qemu-devel] [PATCH 09/14] trace: Support disabled events in trace-events

2010-08-12 Thread Stefan Hajnoczi
Sometimes it is useful to disable a trace event. Removing the event from trace-events is not enough since source code will call the trace_*() function for the event. This patch makes it easy to build without specific trace events by marking them disabled in trace-events: disable

[Qemu-devel] [PATCH 02/14] trace: Trace qemu_malloc() and qemu_vmalloc()

2010-08-12 Thread Stefan Hajnoczi
It is often useful to instrument memory management functions in order to find leaks or performance problems. This patch adds trace events for the memory allocation primitives. Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- osdep.c | 24 ++--

[Qemu-devel] [PATCH 04/15] xen: xen_machine_fv, initialize xenstore

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Introduce a xen_dm_init function that opens a new xenstore connection and the xenctrl interface; call xen_dm_init from xen_machine_fv. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini

[Qemu-devel] [PATCH 02/15] xen: Add xen_machine_fv

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Add the Xen FV (Fully Virtualized) machine to Qemu; this is groundwork to add Xen device model support in Qemu. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com ---

[Qemu-devel] [PATCH 12/15] piix_pci: introduce a write_config notifier

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Introduce a write config notifier in piix_pci, so that clients can be notified every time a pci config write happens. The patch also makes use of the notification mechanism in xen_machine_fv. Signed-off-by: Anthony PERARD anthony.per...@citrix.com

[Qemu-devel] [PATCH 00/15] RFC xen device model support

2010-08-12 Thread Stefano Stabellini
Hi all, this is the long awaited patch series to add xen device model support in qemu; the main author is Anthony Perard. Developing this series we tried to come up with the cleanest possible solution from the qemu point of view, limiting the amount of changes to common code as much as possible.

[Qemu-devel] [PATCH 06/15] xen: Add the Xen platform pci device

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Introduce a new emulated PCI device, specific to fully virtualized Xen guests. The device is necessary for PV on HVM drivers to work. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini

[Qemu-devel] [PATCH 07/15] xen: handle xenstore events

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Add an handler to process xenstore events. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- target-xen/xenstore.c | 16 1 files changed, 16

[Qemu-devel] [PATCH 14/15] xen: destroy the VM when shutdown is requested

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Handle shutdown and reset requests in helper.c. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- target-xen/helper.c | 17 + 1 files changed, 17

[Qemu-devel] [PATCH 08/15] xen: Read and write the state of the VM in xenstore

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Introduce functions to read and write the state of the VM in xenstore. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- hw/xen_machine_fv.c |9

[Qemu-devel] Re: [PATCH 01/15] xen: Update libxc calls

2010-08-12 Thread Paolo Bonzini
On 08/12/2010 10:09 AM, stefano.stabell...@eu.citrix.com wrote: From: Anthony PERARDanthony.per...@citrix.com Update the libxenctrl calls in Qemu to use the new interface, otherwise Qemu wouldn't be able to build against new versions of the library. What's the earliest version of libxc that

[Qemu-devel] [PATCH 01/15] xen: Update libxc calls

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Update the libxenctrl calls in Qemu to use the new interface, otherwise Qemu wouldn't be able to build against new versions of the library. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini

[Qemu-devel] [PATCH 11/15] piix3: introduce register_set_irq and register_map_irq

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com This patch introduces a generic function registration mechanism for set_irq and map_irq in piix3, so that the two calls can be overridden with platform specific functions whenever needed. The patch also implements and registers the Xen specific

[Qemu-devel] Re: [PATCH 01/15] xen: Update libxc calls

2010-08-12 Thread Stefano Stabellini
On Thu, 12 Aug 2010, Stefano Stabellini wrote: On Thu, 12 Aug 2010, Paolo Bonzini wrote: On 08/12/2010 10:09 AM, stefano.stabell...@eu.citrix.com wrote: From: Anthony PERARDanthony.per...@citrix.com Update the libxenctrl calls in Qemu to use the new interface, otherwise Qemu

[Qemu-devel] Re: [PATCH 01/15] xen: Update libxc calls

2010-08-12 Thread Stefano Stabellini
On Thu, 12 Aug 2010, Paolo Bonzini wrote: On 08/12/2010 10:09 AM, stefano.stabell...@eu.citrix.com wrote: From: Anthony PERARDanthony.per...@citrix.com Update the libxenctrl calls in Qemu to use the new interface, otherwise Qemu wouldn't be able to build against new versions of the

[Qemu-devel] [PATCH 09/15] xen: Initialize event channels and io rings

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Open and bind event channels; map ioreq and buffered ioreq rings. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- hw/xen_machine_fv.c | 25 target-xen/cpu.h

[Qemu-devel] [PATCH 15/15] xen: Add a Xen specific ACPI Implementation to target-xen

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Xen currently uses a different BIOS (hvmloader + rombios) therefore the Qemu acpi_piix4 implementation wouldn't work correctly with Xen. We plan on fixing this properly but at the moment we are just adding a new Xen specific acpi_piix4

[Qemu-devel] [PATCH 13/15] vl.c: Introduce getter for shutdown_requested and reset_requested.

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Introduce two functions qemu_shutdown_requested_get and qemu_reset_requested_get to get the value of shutdown/reset_requested without reset it. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini

[Qemu-devel] [PATCH 03/15] xen: Add a new target to qemu: target-xen

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com This patch adds a new Xen device model target to Qemu, called target-xen. The new target makes use of the previously introduced xen_machine_fv. In order to have a fully working Xen device model we still need functionalities introduced by the

[Qemu-devel] [PATCH 10/15] xen: Introduce the Xen mapcache

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD anthony.per...@citrix.com Introduce a mapcache to handle the 64bit address space of the guest from a 32bit userland process (Qemu). The mapcache maps chucks of guest memory on demand, unmaps them when they are not needed anymore. Signed-off-by: Anthony PERARD

[Qemu-devel] [qemu-kvm PATCH 2/3] remove unused function

2010-08-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- qemu-kvm.h |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/qemu-kvm.h b/qemu-kvm.h index 6f6c6d8..c08e9b8 100644 --- a/qemu-kvm.h +++ b/qemu-kvm.h @@ -896,11 +896,6 @@ int handle_tpr_access(void *opaque, CPUState

[Qemu-devel] [qemu-kvm PATCH 3/3] make kvm_mutex_*lock static

2010-08-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- qemu-kvm.c |4 ++-- qemu-kvm.h |3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index 96d458c..f46c394 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -1798,13 +1798,13 @@ int kvm_set_irq(int

[Qemu-devel] [qemu-kvm PATCH 1/3] move kvm_set_irqfd to kvm-stub.c

2010-08-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- kvm-all.c |5 + kvm-stub.c |6 ++ kvm.h |9 - 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 47f58a6..78983ee 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -1298,6

[Qemu-devel] [qemu-kvm PATCH 0/3] small qemu-kvm cleanups

2010-08-12 Thread Paolo Bonzini
Nothing earth shattering. :) Paolo Bonzini (3): move kvm_set_irqfd to kvm-stub.c remove unused function make kvm_mutex_*lock static kvm-all.c |5 + kvm-stub.c |6 ++ kvm.h |9 - qemu-kvm.c |4 ++-- qemu-kvm.h |8 5 files changed, 13

Re: [Qemu-devel] [PATCH 01/14] trace: Add trace-events file for declaring trace events

2010-08-12 Thread malc
On Thu, 12 Aug 2010, Stefan Hajnoczi wrote: This patch introduces the trace-events file where trace events can be declared like so: qemu_malloc(size_t size) size %zu qemu_free(void *ptr) ptr %p [..snip..] +echo -n $name, Once again: standard echo doesn't have any command line

[Qemu-devel] Networking problems

2010-08-12 Thread Daniel Carrera
Hello, I've spent the last day trying to get NetBSD installed on a QEMU virtual machine. The problem I'm having is that I can't get online. As of now, this is the command I'm using: qemu -cdrom netbsd-i386cd-5.0.2.iso -hda NetBSD.img -no-acpi -net nic,model=pcnet With this command I can get a

[Qemu-devel] [PATCH 0/5] CODING_STYLE amendments

2010-08-12 Thread Blue Swirl
Add a few rules, based loosely on libvirt HACKING. Blue Swirl (5): CODING_STYLE: add preprocessor rules CODING_STYLE: add C type rules CODING_STYLE: add memory management rules CODING_STYLE: add string management rules CODING_STYLE: add rules for printf-like functions CODING_STYLE |

[Qemu-devel] [PATCH 2/5] CODING_STYLE: add C type rules

2010-08-12 Thread Blue Swirl
Add C type rules from libvirt HACKING. Also include a description of special QEMU scalar types. Signed-off-by: Blue Swirl blauwir...@gmail.com --- CODING_STYLE | 56 1 files changed, 56 insertions(+), 0 deletions(-) diff --git

[Qemu-devel] [PATCH 3/5] CODING_STYLE: add memory management rules

2010-08-12 Thread Blue Swirl
Add memory management rules, somewhat like libvirt HACKING. Signed-off-by: Blue Swirl blauwir...@gmail.com --- CODING_STYLE |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/CODING_STYLE b/CODING_STYLE index 3f10d72..085c86f 100644 --- a/CODING_STYLE +++

[Qemu-devel] [PATCH 1/5] CODING_STYLE: add preprocessor rules

2010-08-12 Thread Blue Swirl
Add preprocessor rules from libvirt HACKING. Signed-off-by: Blue Swirl blauwir...@gmail.com --- CODING_STYLE | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/CODING_STYLE b/CODING_STYLE index 92036f3..c4c09ab 100644 --- a/CODING_STYLE +++ b/CODING_STYLE @@

[Qemu-devel] [PATCH 4/5] CODING_STYLE: add string management rules

2010-08-12 Thread Blue Swirl
Add string management rules, somewhat like libvirt HACKING. Signed-off-by: Blue Swirl blauwir...@gmail.com --- CODING_STYLE | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/CODING_STYLE b/CODING_STYLE index 085c86f..b230a01 100644 ---

[Qemu-devel] [PATCH 5/5] CODING_STYLE: add rules for printf-like functions

2010-08-12 Thread Blue Swirl
Add rules for printf-like functions, based on libvirt HACKING. Signed-off-by: Blue Swirl blauwir...@gmail.com --- CODING_STYLE | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/CODING_STYLE b/CODING_STYLE index b230a01..f190960 100644 --- a/CODING_STYLE +++

Re: [Qemu-devel] [PATCH 08/14] trace: Support for dynamically enabling/disabling trace events.

2010-08-12 Thread Blue Swirl
On Thu, Aug 12, 2010 at 10:36 AM, Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: From: Prerna Saxena pre...@linux.vnet.ibm.com This patch adds support for dynamically enabling/disabling of trace events. This is done by internally maintaining each trace event's state, and permitting

Re: [Qemu-devel] [PATCH 00/14] trace: Add static tracing to QEMU

2010-08-12 Thread Blue Swirl
On Thu, Aug 12, 2010 at 10:36 AM, Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: This patch series adds static tracing to QEMU.  It can be used to instrument QEMU code by means of lightweight logging called trace events. Prerna and I are now posting the entire patch series with a serious

Re: [Qemu-devel] [PATCH 07/14] trace: Add simple built-in tracing backend

2010-08-12 Thread Blue Swirl
On Thu, Aug 12, 2010 at 10:36 AM, Stefan Hajnoczi stefa...@linux.vnet.ibm.com wrote: This patch adds a simple tracer which produces binary trace files.  To try out the simple backend: $ ./configure --trace-backend=simple $ make After running QEMU you can pretty-print the trace: $

Re: [Qemu-devel] [PATCH 06/15] xen: Add the Xen platform pci device

2010-08-12 Thread Blue Swirl
On Thu, Aug 12, 2010 at 2:09 PM, stefano.stabell...@eu.citrix.com wrote: From: Anthony PERARD anthony.per...@citrix.com Introduce a new emulated PCI device, specific to fully virtualized Xen guests.  The device is necessary for PV on HVM drivers to work. The code should be converted to qdev

Re: [Qemu-devel] [PATCH 12/15] piix_pci: introduce a write_config notifier

2010-08-12 Thread Blue Swirl
On Thu, Aug 12, 2010 at 2:09 PM, stefano.stabell...@eu.citrix.com wrote: From: Anthony PERARD anthony.per...@citrix.com Introduce a write config notifier in piix_pci, so that clients can be notified every time a pci config write happens. The patch also makes use of the notification mechanism

Re: [Qemu-devel] [PATCH 09/15] xen: Initialize event channels and io rings

2010-08-12 Thread Blue Swirl
On Thu, Aug 12, 2010 at 2:09 PM, stefano.stabell...@eu.citrix.com wrote: From: Anthony PERARD anthony.per...@citrix.com Open and bind event channels; map ioreq and buffered ioreq rings. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini

Re: [Qemu-devel] [PATCH 11/15] piix3: introduce register_set_irq and register_map_irq

2010-08-12 Thread Blue Swirl
On Thu, Aug 12, 2010 at 2:09 PM, stefano.stabell...@eu.citrix.com wrote: From: Anthony PERARD anthony.per...@citrix.com This patch introduces a generic function registration mechanism for set_irq and map_irq in piix3, so that the two calls can be overridden with platform specific functions

Re: [Qemu-devel] [PATCH 1/5] CODING_STYLE: add preprocessor rules

2010-08-12 Thread malc
On Thu, 12 Aug 2010, Blue Swirl wrote: Add preprocessor rules from libvirt HACKING. Signed-off-by: Blue Swirl blauwir...@gmail.com --- CODING_STYLE | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/CODING_STYLE b/CODING_STYLE index 92036f3..c4c09ab

Re: [Qemu-devel] [PATCH 15/15] xen: Add a Xen specific ACPI Implementation to target-xen

2010-08-12 Thread Blue Swirl
On Thu, Aug 12, 2010 at 2:10 PM, stefano.stabell...@eu.citrix.com wrote: From: Anthony PERARD anthony.per...@citrix.com Xen currently uses a different BIOS (hvmloader + rombios) therefore the Qemu acpi_piix4 implementation wouldn't work correctly with Xen. We plan on fixing this properly but

Re: [Qemu-devel] [PATCH 0/5] CODING_STYLE amendments

2010-08-12 Thread malc
On Thu, 12 Aug 2010, Blue Swirl wrote: Add a few rules, based loosely on libvirt HACKING. Blue Swirl (5): CODING_STYLE: add preprocessor rules CODING_STYLE: add C type rules CODING_STYLE: add memory management rules CODING_STYLE: add string management rules CODING_STYLE: add

Re: [Qemu-devel] [PATCH 03/15] xen: Add a new target to qemu: target-xen

2010-08-12 Thread Blue Swirl
On Thu, Aug 12, 2010 at 2:09 PM, stefano.stabell...@eu.citrix.com wrote: From: Anthony PERARD anthony.per...@citrix.com This patch adds a new Xen device model target to Qemu, called target-xen. I don't understand why it would be a target, QEMU calls CPU architectures targets. Isn't it

Re: [Qemu-devel] [PATCH 07/14] trace: Add simple built-in tracing backend

2010-08-12 Thread Stefan Hajnoczi
On Thu, Aug 12, 2010 at 6:56 PM, Blue Swirl blauwir...@gmail.com wrote: On Thu, Aug 12, 2010 at 10:36 AM, Stefan Hajnoczi +static bool write_header(FILE *fp) +{ +    TraceRecord header = { This should be 'static const'. Okay. diff --git a/simpletrace.h b/simpletrace.h new file mode

Re: [Qemu-devel] Networking problems

2010-08-12 Thread Cliff Wright
On Thu, 12 Aug 2010 19:12:14 +0200 Daniel Carrera dcarr...@gmail.com wrote: qemu -cdrom netbsd-i386cd-5.0.2.iso -hda NetBSD.img -no-acpi -net nic,model=pcnet Its been a while since updating qemu, so on old version I had -net nic,model=ne2k_pci -net user -redir tcp:2023::22 -soundhw es1370 is

Re: [Qemu-devel] Networking problems

2010-08-12 Thread Daniel Carrera
On Thu, Aug 12, 2010 at 9:35 PM, Cliff Wright cl...@snipe444.org wrote: Its been a while since updating qemu, so on old version I had -net nic,model=ne2k_pci -net user -redir tcp:2023::22 -soundhw es1370 is the missing -net user causing you trouble? Actually, yes, the -net user flag makes a

[Qemu-devel] OS with only segmentation - will it be faster?

2010-08-12 Thread C K Kashyap
Hi, This is not strictly qemu related but I think people who have a good idea about it must be on this list. I was wondering if I had an app that requires a fixed quantity of memory - sufficiently less than the available physical memory. Would it benefit from getting rid of the paging mechanism in

Re: [Qemu-devel] OS with only segmentation - will it be faster?

2010-08-12 Thread malc
On Fri, 13 Aug 2010, C K Kashyap wrote: Hi, This is not strictly qemu related but I think people who have a good idea about it must be on this list. I was wondering if I had an app that requires a fixed quantity of memory - sufficiently less than the available physical memory. Would it

Re: [Qemu-devel] OS with only segmentation - will it be faster?

2010-08-12 Thread C K Kashyap
Thanks Malc .. I'll check out the video ... and perhaps ping you off the list. On Fri, Aug 13, 2010 at 10:15 AM, malc av1...@comtv.ru wrote: On Fri, 13 Aug 2010, C K Kashyap wrote: Hi, This is not strictly qemu related but I think people who have a good idea about it must be on this

[Qemu-devel] ARM ports

2010-08-12 Thread Mohammed Rashad
Hi all developers, I would like port ARM to MINIX3. But dont know where to start. If you can give me a spark to start porting of ARM I will be very grateful to you. Can I use any simulators for porting MINIX to ARM processors. I had also purchased a book related to ARM7 LPC2000 series. Do I need

[Qemu-devel] record a subset of the CPU state

2010-08-12 Thread Shiao-Hui Chiu
hello, all I am looking the qemu source code, in the function tb_find_fast ( in the qemu/cpu-exec.c ), at line 187, there are some commands : /* we record a subset of the CPU state. It will always be the same before a given translated block is executed. */ where did the qemu