[Qemu-devel] [RFC PATCH 3/4] simpletrace-v2: Handle variable number/size of elements per trace record.

2012-01-01 Thread Harsh Prateek Bora
Advantages over existing simpletrace backend: - More than 6 elements (vitually unlimited) arguments can be traced. - This allows to trace strings (variable size element) as well. Signed-off-by: Harsh Prateek Bora --- monitor.c |2 +- trace/simple.c | 178 ---

Re: [Qemu-devel] [PATCH 4/4] simpletrace.py: Simpletrace v2 tracelog reader script

2012-01-01 Thread Harsh Bora
Hi, Please ignore this duplicate patch in the series which was sent by mistake, consider the one with subject '[RFC PATCH 4/4] simpletrace.py: updated log reader script to handle new log format'. Sorry for inconvenience. - Harsh On 01/02/2012 12:20 PM, Harsh Prateek Bora wrote: Signed-off-b

[Qemu-devel] [RFC PATCH 0/4] simpletrace : support var num/size of args, strings.

2012-01-01 Thread Harsh Prateek Bora
Existing simple trace can log upto 6 args per trace event and does not support strings in trace record format. Introducing new trace format as discussed earlier on list to support variable number/size of arguments. (Ref: http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg03426.html) Basic tes

[Qemu-devel] [RFC PATCH 1/4] Converting tracetool.sh to tracetool.py

2012-01-01 Thread Harsh Prateek Bora
Note: As of now, tracetool.py only supports simpletrace backend. TODO: Add support for other tracing backends. Signed-off-by: Harsh Prateek Bora --- scripts/tracetool.py | 299 ++ 1 files changed, 299 insertions(+), 0 deletions(-) create mode 100

[Qemu-devel] [PATCH 4/4] simpletrace.py: Simpletrace v2 tracelog reader script

2012-01-01 Thread Harsh Prateek Bora
Signed-off-by: Harsh Prateek Bora --- scripts/simpletrace.py | 110 +++- 1 files changed, 99 insertions(+), 11 deletions(-) diff --git a/scripts/simpletrace.py b/scripts/simpletrace.py index f55e5e6..69829dd 100755 --- a/scripts/simpletrace.py +++ b/

[Qemu-devel] [RFC PATCH 4/4] simpletrace.py: updated log reader script to handle new log format

2012-01-01 Thread Harsh Prateek Bora
Note: This script has been updated with minimal changes required to observe the new trace log format in action and therefore can be improved for a better design. It can still read the logs from older log format as well. Signed-off-by: Harsh Prateek Bora --- scripts/simpletrace.py | 110

[Qemu-devel] [RFC PATCH 2/4] Makefile and configure changes for tracetool.py

2012-01-01 Thread Harsh Prateek Bora
Use tracetool.py to generate tracing code for requested backend. TODO: tracetool.py needs to be updated to add support for other backends. Signed-off-by: Harsh Prateek Bora --- Makefile.objs |4 ++-- configure |4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/M

Re: [Qemu-devel] virtio-net with virtio-mmio

2012-01-01 Thread Ying-Shiuan Pan
Hi, Stefan Thanks for your response. 2011/12/30 Stefan Hajnoczi > > On Wed, Dec 28, 2011 at 06:16:42PM +0800, Ying-Shiuan Pan wrote: > > I'm very interested in virtio-mmio Peter Maydell did for QEMU, > > (http://lists.nongnu.org/archive/html/qemu-devel/2011-11/msg01870.html) > > > > actually, I

Re: [Qemu-devel] [PATCH 4/9] virtio-9p: remove PCI dependencies from hw/9pfs/

2012-01-01 Thread Paolo Bonzini
On 11/29/2011 02:12 PM, Michael S. Tsirkin wrote: On Tue, Nov 29, 2011 at 09:38:43AM +0100, Paolo Bonzini wrote: On 11/28/2011 07:46 PM, Michael S. Tsirkin wrote: +#ifdef CONFIG_LINUX +static int virtio_9p_init_pci(PCIDevice *pci_dev) +{ +VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIP

Re: [Qemu-devel] [PATCH 1/4] rtc: fix 12-hour mode

2012-01-01 Thread Paolo Bonzini
On 01/01/2012 03:53 PM, Avi Kivity wrote: On 11/21/2011 08:00 PM, Paolo Bonzini wrote: Hours in 12-hour mode are in the 1-12 range, not 0-11. @@ -320,7 +324,8 @@ static void rtc_copy_date(RTCState *s) s->cmos_data[RTC_HOURS] = rtc_to_bcd(s, tm->tm_hour); } else { /* 12

[Qemu-devel] [PATCH] Fix wrong region_offset when overlaying a page with another

2012-01-01 Thread Avi Kivity
cpu_register_physical_memory_log() does not update region_offset if a page was previously registered for the same address. This could cause mmio accesses going to the wrong place, by using the old region_offset. Signed-off-by: Avi Kivity --- Once qemu-test is merged, remind me to post a testlet

Re: [Qemu-devel] [PATCH v6] block:add-cow file format

2012-01-01 Thread Stefan Hajnoczi
On Sat, Dec 31, 2011 at 9:17 AM, Dong Xu Wang wrote: > On Fri, Dec 30, 2011 at 22:09, Stefan Hajnoczi wrote: >> On Thu, Dec 29, 2011 at 05:36:59PM +0800, Dong Xu Wang wrote: >> > +    ret = bdrv_file_open(&backing_bs, bs->backing_file, 0); >> > +    if (ret < 0) { >> > +        return ret; >> > +

Re: [Qemu-devel] [PATCH 00/21][RFC] postcopy live migration

2012-01-01 Thread Stefan Hajnoczi
On Sun, Jan 1, 2012 at 9:43 AM, Orit Wasserman wrote: > On 12/30/2011 12:39 AM, Anthony Liguori wrote: >> On 12/28/2011 07:25 PM, Isaku Yamahata wrote: >>> Intro >>> = >>> This patch series implements postcopy live migration.[1] >>> As discussed at KVM forum 2011, dedicated character device is

Re: [Qemu-devel] [PATCH 1/4] rtc: fix 12-hour mode

2012-01-01 Thread Avi Kivity
On 11/21/2011 08:00 PM, Paolo Bonzini wrote: > Hours in 12-hour mode are in the 1-12 range, not 0-11. > > @@ -320,7 +324,8 @@ static void rtc_copy_date(RTCState *s) > s->cmos_data[RTC_HOURS] = rtc_to_bcd(s, tm->tm_hour); > } else { > /* 12 hour format */ > -s->cmos_da

Re: [Qemu-devel] Better qemu/kvm defaults (was Re: [RFC PATCH 0/4] Gang scheduling in CFS)

2012-01-01 Thread Ronen Hod
On 01/01/2012 12:16 PM, Dor Laor wrote: On 12/29/2011 06:16 PM, Anthony Liguori wrote: On 12/29/2011 10:07 AM, Dor Laor wrote: On 12/26/2011 11:05 AM, Avi Kivity wrote: On 12/26/2011 05:14 AM, Nikunj A Dadhania wrote: btw you can get an additional speedup by enabling x2apic, for default_send

Re: [Qemu-devel] Compiling without python?

2012-01-01 Thread Michael S. Tsirkin
On Fri, Dec 30, 2011 at 11:36:53PM +0100, Sebastian Herbszt wrote: > Sebastian Herbszt wrote: > >Is it still possible to compile without python? > > > >python /v1.0-267-gda5361c/scripts/qapi-commands.py -m -o . > >/bin/sh: python: command not found > >make: *** [qmp-commands.h] Error 127 > > > >Seb

Re: [Qemu-devel] Better qemu/kvm defaults (was Re: [RFC PATCH 0/4] Gang scheduling in CFS)

2012-01-01 Thread Dor Laor
On 12/29/2011 06:16 PM, Anthony Liguori wrote: On 12/29/2011 10:07 AM, Dor Laor wrote: On 12/26/2011 11:05 AM, Avi Kivity wrote: On 12/26/2011 05:14 AM, Nikunj A Dadhania wrote: btw you can get an additional speedup by enabling x2apic, for default_send_IPI_mask_logical(). In the host? In

Re: [Qemu-devel] [PATCH 00/21][RFC] postcopy live migration

2012-01-01 Thread Dor Laor
On 12/30/2011 12:39 AM, Anthony Liguori wrote: On 12/28/2011 07:25 PM, Isaku Yamahata wrote: Intro = This patch series implements postcopy live migration.[1] As discussed at KVM forum 2011, dedicated character device is used for distributed shared memory between migration source and destinat

Re: [Qemu-devel] [PATCH 00/21][RFC] postcopy live migration

2012-01-01 Thread Orit Wasserman
On 12/30/2011 12:39 AM, Anthony Liguori wrote: > On 12/28/2011 07:25 PM, Isaku Yamahata wrote: >> Intro >> = >> This patch series implements postcopy live migration.[1] >> As discussed at KVM forum 2011, dedicated character device is used for >> distributed shared memory between migration sourc

Re: [Qemu-devel] [ANNOUNCE] qemu-test: a set of tests scripts for QEMU

2012-01-01 Thread Avi Kivity
On 12/29/2011 11:10 PM, Peter Maydell wrote: > > > Even if that turns out to be the case, it's fine. Better to > > have a few good devices than dozens of bad ones. > > This is easier to say on the x86 side of the fence, since > most of the devices you need are already in the codebase and > nobody