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

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

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 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 list. > > I

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 b

[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] Networking problems

2010-08-12 Thread Daniel Carrera
On Thu, Aug 12, 2010 at 9:35 PM, Cliff Wright 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 difference. Th

Re: [Qemu-devel] Networking problems

2010-08-12 Thread Cliff Wright
On Thu, 12 Aug 2010 19:12:14 +0200 Daniel Carrera 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 the missing "-net

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 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 100644 >> ind

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

2010-08-12 Thread Stefan Hajnoczi
On Thu, Aug 12, 2010 at 5:07 PM, malc wrote: > 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

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, wrote: > From: Anthony PERARD > > 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 possible to have Xen for Sparc, PPC or ARM? It should really

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:

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, wrote: > From: Anthony PERARD > > 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 specifi

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 > --- > CODING_STYLE | 13 + > 1 files changed, 13 insertions(+), 0 deletions(-) > > diff --git a/CODING_STYLE b/CODING_STYLE > index 92036f3..c4c09ab 100644 > ---

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, wrote: > From: Anthony PERARD > > 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 regis

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, wrote: > From: Anthony PERARD > > Open and bind event channels; map ioreq and buffered ioreq rings. > > Signed-off-by: Anthony PERARD > Signed-off-by: Stefano Stabellini > --- >  hw/xen_machine_fv.c   |   25 >  target-xen/cpu.h      |    1 + >  target-xen/

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, wrote: > From: Anthony PERARD > > 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. Will the mechanism be used els

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, wrote: > From: Anthony PERARD > > 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 and VMState. > > Signed-off-by: Anthony PERARD > Sig

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 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: > > $ ./simpletrace.py trace-even

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 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 eye > towards > checking

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 wrote: > From: Prerna Saxena > > 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

[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 --- 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 +++ b/CODING_STYLE @@ -180,3 +

[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 --- CODING_STYLE | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/CODING_STYLE b/CODING_STYLE index 085c86f..b230a01 100644 --- a/CODING_STYLE +++ b/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 --- 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 @@ -79,3 +79,16 @@ and cla

[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 --- 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 +++ b/CODING_STYLE @@ -148,3 +148,11

[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 --- CODING_STYLE | 56 1 files changed, 56 insertions(+), 0 deletions(-) diff --git a/CODING_STYLE b/CODING_STYLE

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

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

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

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

[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 --- 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 +1298,11 @@ int kvm_set_i

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

2010-08-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- 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 irq, int level, int *s

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

2010-08-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- 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 *env, uint64_t rip,

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

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD 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 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 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 following patches. Signed-off-by:

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

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD 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 Signed-off-by: Stefano Stabellini --- sysemu.h |2 ++ vl.c | 10 ++ 2 files chan

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

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD 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 implementation. This patch is optional;

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

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD Open and bind event channels; map ioreq and buffered ioreq rings. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- hw/xen_machine_fv.c | 25 target-xen/cpu.h |1 + target-xen/helper.c | 362 ++

[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 PERARD > > > > 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 th

[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 PERARD > > > > > > Update the libxenctrl calls in Qemu to use the new interface, otherwise > > > Qemu wouldn't be able t

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

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD 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 version of the functions. Sign

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

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD 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 Signed-off-by: Stefano Stabellini --- configure|2 +- hw/xen_backend.c | 10

[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 PERARD 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 will be supported after thi

[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 Introduce functions to read and write the state of the VM in xenstore. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- hw/xen_machine_fv.c |9 target-xen/helper.c |7 +++ target-xen/qemu-xen.h |3 + target-xen/xenstore.c | 128 +++

[Qemu-devel] [PATCH 05/15] xen: add a 8259 Interrupt Controller

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD Introduce a 8259 Interrupt Controller for target-xen; every set_irq call makes a Xen hypercall. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- Makefile.target |2 +- hw/xen_common.h |3 ++ hw/xen_machine_fv.c |

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

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD Handle shutdown and reset requests in helper.c. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- target-xen/helper.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/target-xen/helper.c b/target-xen/helper.c inde

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

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD Add an handler to process xenstore events. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- target-xen/xenstore.c | 16 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/target-xen/xenstore.c b/target-xen/xenstore.c inde

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

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD 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 Signed-off-by: Stefano Stabellini --- Makefile.target |1 + hw/xen_machine_fv.c |4 + hw/xen_pl

[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. Th

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

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD 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 Signed-off-by: Stefano Stabellini --- hw/pc.h

[Qemu-devel] [PATCH] arm: higher initrd load addr

2010-08-12 Thread Serge Hallyn
set INITRD_LOAD_ADDR to 0x00d0 instead of 0x0080 as to leave enough room for vmlinuz + its decompressed counterpart. It has been mentioned that a better fix might be to peek into the vmlinux for the real size estimate, but as I'm not sure whether we'd want to do that peeking here I'm posti

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

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD 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 Signed-off-by: Stefano Stabellini --- Makefile.target |3 + hw/xen_machine_fv.c | 156 +++

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

2010-08-12 Thread stefano . stabellini
From: Anthony PERARD 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 Signed-off-by: Stefano Stabellini --- Makefile.target |1 + hw/xen_machine_fv.c |8

[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 --- osdep.c | 24 ++-- qemu-malloc.c | 12 ++-- tr

[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 multiwrite_cb(vo

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

2010-08-12 Thread Stefan Hajnoczi
From: Prerna Saxena Signed-off-by: Prerna Saxena Signed-off-by: Stefan Hajnoczi --- ioport.c |7 +++ trace-events |4 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/ioport.c b/ioport.c index 53dd87a..ec3dc65 100644 --- a/ioport.c +++ b/ioport.c @@ -26,6 +2

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

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

2010-08-12 Thread Stefan Hajnoczi
From: Prerna Saxena 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 : 1) info trace-events

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

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

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

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

2010-08-12 Thread Stefan Hajnoczi
From: Prerna Saxena Signed-off-by: Prerna Saxena Signed-off-by: Stefan Hajnoczi --- balloon.c|2 ++ trace-events |4 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/balloon.c b/balloon.c index 8e0b7f1..0021fef 100644 --- a/balloon.c +++ b/balloon.c @@ -29,6 +29,

[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 --- hw/virtio.c |8 trace-events |8 2 files changed, 16 insertions(+), 0 deletions(-) d

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

Re: [Qemu-devel] Questions about networking

2010-08-12 Thread Mulyadi Santosa
On Thu, Aug 12, 2010 at 16:46, Peter Niessen 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 personally great

[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

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

[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 --- block.c|8 hw/virtio-blk.c|7 +++ posix-aio-compat.c |2 ++ trace-events | 14 ++ 4 files changed, 31 insertions(+), 0 deletio

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

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

2010-08-12 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- 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 100644 index 000..fe3c6ac

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

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

2010-08-12 Thread Stefan Hajnoczi
From: Prerna Saxena 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 FILENAME instead of the o

[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 --- 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 *do_pci_register_device(PCIDevice

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 interfac

[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 --- 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; DeviceState *hotplug_

[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 --- 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 *do_pci_register_device(PCIDevice

[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

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 o