Re: [Qemu-devel] [PATCH] fix bug of isa_bus irq

2012-03-11 Thread Jan Kiszka
On 2012-03-12 07:08, Wanpeng Li wrote: > On Sun, Mar 11, 2012 at 08:46:38AM +0100, Jan Kiszka wrote: >> On 2012-03-11 08:04, Wanpeng Li wrote: >>> ISA bus only use IRQ 0~15, so don't need to give an array qemu_irq 0~23, >>> just >>> array qemu_irq i8259 is ok. >>> >>> Signed-off-by: Wanpeng Li >>

Re: [Qemu-devel] How to trace all the guest OS instructions and the micro-ops

2012-03-11 Thread Yue Chen
Thanks a lot. So any approach to get the dynamic or static whole memory information of the guest OS ? Not the memory of each process. Sorry for the confusion. I do use version 1.0.1. I mention not in 0.9.1 because someone has already implemented the dynamic tracing in 0.9.1, but not in the latest

[Qemu-devel] [PATCH v2 2/2] block: drain throttled requests for one block device

2012-03-11 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- blockdev.c |4 ++-- hw/ide/macio.c |2 +- hw/ide/pci.c |3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/blockdev.c b/blockdev.c index d78aa51..1bc4667 100644 --- a/blockdev.c +++ b/blockdev.c @@ -694,7 +694

[Qemu-devel] [PATCH v2 1/2] block: add the support to drain throttled requests

2012-03-11 Thread zwu . kernel
From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu --- block.c | 21 + block_int.h |1 + 2 files changed, 22 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 52ffe14..0825168 100644 --- a/block.c +++ b/block.c @@ -853,6 +853,21 @@ void bdrv_close_all(v

Re: [Qemu-devel] [RFC][PATCH 05/16 v8] Add API to get memory mapping

2012-03-11 Thread HATAYAMA Daisuke
From: HATAYAMA Daisuke Subject: Re: [Qemu-devel] [RFC][PATCH 05/16 v8] Add API to get memory mapping Date: Mon, 12 Mar 2012 15:16:55 +0900 ( ) > > The assumption behind my idea is the host is running in a good > condition but the quest in a bad condition. So we can use qemu dump, > which is th

Re: [Qemu-devel] How to trace all the guest OS instructions and the micro-ops

2012-03-11 Thread Chen Yufei
On Mon, Mar 12, 2012 at 5:43 AM, Mulyadi Santosa wrote: > Hi > > On Sun, Mar 11, 2012 at 10:12, Yue Chen wrote: >> I am doing some research based on the QEMU. Does anyone know how to get >> (trace) all the instructions of the guest OS, and get all the intermediate >> micro-ops ?  (Not in the

Re: [Qemu-devel] [RFC][PATCH 05/16 v8] Add API to get memory mapping

2012-03-11 Thread HATAYAMA Daisuke
From: Jan Kiszka Subject: Re: [RFC][PATCH 05/16 v8] Add API to get memory mapping Date: Fri, 09 Mar 2012 14:24:41 +0100 > On 2012-03-09 13:53, HATAYAMA Daisuke wrote: >> From: Jan Kiszka >> Subject: Re: [RFC][PATCH 05/16 v8] Add API to get memory mapping >> Date: Fri, 09 Mar 2012 11:06:30 +0100

Re: [Qemu-devel] [PATCH] fix bug of isa_bus irq

2012-03-11 Thread Wanpeng Li
On Sun, Mar 11, 2012 at 08:46:38AM +0100, Jan Kiszka wrote: >On 2012-03-11 08:04, Wanpeng Li wrote: >> ISA bus only use IRQ 0~15, so don't need to give an array qemu_irq 0~23, just >> array qemu_irq i8259 is ok. >> >> Signed-off-by: Wanpeng Li >> --- >> hw/pc_piix.c |3 ++- >> 1 files change

Re: [Qemu-devel] regarding qcow2metadata

2012-03-11 Thread PANKAJ RAWAT
yes ofcourse here is the output *[root@t06 p]# ls -lsh* *total 1.4M* *1.4M -rw-r--r-- 1 root root 8.1G Mar 12 09:10 guest* On Wed, Mar 7, 2012 at 10:00 PM, Mulyadi Santosa wrote: > have you double checked by using "ls -lsh" command? :) > -- *Pankaj Rawat*

[Qemu-devel] change the default value of timeout

2012-03-11 Thread Zhang, Yang Z
Hi all Currently, if not using nonblocking mode, the default timeout of select() in main_loop_wait is 1000ms. There has no problem if you run few VMs. But when running more VMs like 32 or 64, then the problem is coming. Our experience shows that when running 64 idle VMs, the pkg C6 resid

Re: [Qemu-devel] [PATCH 0/8] Add GTK UI to enable basic accessibility (v2)

2012-03-11 Thread Anthony Liguori
On 03/11/2012 01:24 PM, François Revol wrote: GTK itself causes problems, because, it's not ported, thus not available, to all platforms QEMU can run on. It's certainly not available on Haiku at least. There is no perfect solution here. I think GTK is the best that's out there. By using GTK

Re: [Qemu-devel] [PATCH 0/8] Add GTK UI to enable basic accessibility (v2)

2012-03-11 Thread Anthony Liguori
On 03/11/2012 12:29 PM, Stefan Weil wrote: Hi Anthony, are you still working on a new version of this patch series? Yeah, but this is purely a free time project which is in short supply these days :-) I suggest to commit a slightly modified version of v2 which adds the GTK UI as an optional

Re: [Qemu-devel] [RFC][PATCH 05/16 v8] Add API to get memory mapping

2012-03-11 Thread Wen Congyang
At 03/09/2012 06:05 PM, Jan Kiszka Wrote: > On 2012-03-09 10:57, Wen Congyang wrote: >> At 03/09/2012 05:41 PM, Jan Kiszka Wrote: >>> On 2012-03-09 03:53, HATAYAMA Daisuke wrote: From: Wen Congyang Subject: Re: [RFC][PATCH 05/16 v8] Add API to get memory mapping Date: Fri, 09 Mar 20

Re: [Qemu-devel] [RESEND][PATCH 2/2 v3] deal with guest panicked event

2012-03-11 Thread Wen Congyang
At 03/08/2012 07:56 PM, Daniel P. Berrange Wrote: > On Thu, Mar 08, 2012 at 01:52:45PM +0200, Avi Kivity wrote: >> On 03/08/2012 01:36 PM, Daniel P. Berrange wrote: >>> On Thu, Mar 08, 2012 at 01:28:56PM +0200, Avi Kivity wrote: On 03/08/2012 12:15 PM, Wen Congyang wrote: > When the host k

Re: [Qemu-devel] Re : Regression: more 0.12 regression (SeaBIOS related?)

2012-03-11 Thread Kevin O'Connor
On Wed, Mar 07, 2012 at 06:31:31AM -0800, Alain Ribière wrote: > I ran qemu 1.0.1 and the latest SeaBIOS (from the git) with the following > options : > qemu-system-i386 -L git/bios -fda disk.img -no-fd-bootchk -boot a -m 16 > > Here is the log : > https://docs.google.com/open?id=0B7mz0vq6Rpb7UE1

[Qemu-devel] Windows boot is waiting for keypress

2012-03-11 Thread Reeted
Hello, I am virtualizing a Windows 2000 machine (bit-by-bit copy of physical machine). It apparently works fine except for one strange thing: windows 2000 stops at the black screen (first step of boot) where it asks me if I want to load Windows 2000 or previous operating system. When the ma

[Qemu-devel] [PATCH 5/5] Sparc: avoid AREG0 wrappers for memory access helpers

2012-03-11 Thread Blue Swirl
Adjust generation of load and store templates so that the functions take a parameter for CPUState instead of relying on global env. Remove wrappers. Move remaining memory helpers to ldst_helper.c. Signed-off-by: Blue Swirl --- Makefile.target| 12 ++- configure |

[Qemu-devel] [PATCH 1/5] i386: Remove REGPARM

2012-03-11 Thread Blue Swirl
Use stack based calling convention (GCC default) for interfacing with generated code instead of register based convention (regparm(3)). Signed-off-by: Blue Swirl --- osdep.h |6 --- softmmu_defs.h| 32 +++--- softmmu_template.h|8 +-- tcg/i386/tcg-targ

[Qemu-devel] [PATCH 3/5] TCG: add 5 arg helpers to def-helper.h

2012-03-11 Thread Blue Swirl
Signed-off-by: Blue Swirl --- def-helper.h | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/def-helper.h b/def-helper.h index 8a822c7..a13310e 100644 --- a/def-helper.h +++ b/def-helper.h @@ -118,6 +118,8 @@ DEF_HELPER_FLAGS_3(name, 0, ret, t

[Qemu-devel] [PATCH 0/5] AREG0 patches v6

2012-03-11 Thread Blue Swirl
In this version I rebased the series on REGPARM removal, without splitting i386 and x86_64. I've also made some simple performance tests on i386. It looks like REGPARM removal accounts for 2.5% performance loss and the full series 7.5%, in total 10% loss in this test. I'd like to move on with the

Re: [Qemu-devel] [PATCH 4/6] acpi_piix4: Track PCI hotplug status and allow non-ACPI remove path

2012-03-11 Thread Michael S. Tsirkin
On Tue, Mar 06, 2012 at 05:14:51PM -0700, Alex Williamson wrote: > When a guest probes a device, clear the "up" bit in the hotplug > register. This allows us to enable a non-ACPI remove path for > devices added, but never accessed by the guest. This is useful > when a guest does not have ACPI PCI

Re: [Qemu-devel] [Bug 950692] Re: High CPU usage in Host (revisited)

2012-03-11 Thread Mulyadi Santosa
On Sun, Mar 11, 2012 at 05:30, PetaMem wrote: > *Newsflash* > > We do have a "well-behaving" KVM Host with 3.2.9 kernel on machine C Note: I am not Qemu developer :) OK, I read your bug report many times. I think you need deeper profiling here. Perhaps "perf top" is the best bet. Just make sure

Re: [Qemu-devel] How to trace all the guest OS instructions and the micro-ops

2012-03-11 Thread Mulyadi Santosa
Hi On Sun, Mar 11, 2012 at 10:12, Yue Chen wrote: > I am doing some research based on the QEMU. Does anyone know how to get > (trace) all the instructions of the guest OS, and get all the intermediate > micro-ops ?  (Not in the 0.9.1 version) I believe it's "-d" option you're looking for. Pl

[Qemu-devel] GSoC - Tracepoint support for the gdbstub

2012-03-11 Thread Lyu Mitnick
Hello all, I am Mitnick Lyu, who want to contribute to QEMU and participate Google Summer of Code this year. I have some experience with tool-chain developing and I am highly interested in the project: Tracepoint support for the gdbstub. I am wondering to know whether there is someone working for

Re: [Qemu-devel] [PATCH 1/5] block: Virtual Bridges VERDE GOW disk image format documentation

2012-03-11 Thread Leonardo E. Reiter
On Fri, Mar 9, 2012 at 4:50 AM, Stefan Hajnoczi wrote: > The mmap(2) approach doesn't support QEMU's "protocol" concept where > an image format block driver is independent of the underlying storage > (host file system, NBD, HTTP, etc). In QEMU block layer terminology > NBD, HTTP, and the host fi

Re: [Qemu-devel] seamless migration with spice

2012-03-11 Thread Yonit Halperin
Hi. On 03/11/2012 05:36 PM, Anthony Liguori wrote: On 03/11/2012 10:25 AM, Alon Levy wrote: On Sun, Mar 11, 2012 at 09:18:17AM -0500, Anthony Liguori wrote: On 03/11/2012 08:16 AM, Yonit Halperin wrote: Hi, We would like to implement seamless migration for Spice, i.e., keeping the currently o

Re: [Qemu-devel] [PATCH 0/8] Add GTK UI to enable basic accessibility (v2)

2012-03-11 Thread François Revol
On -10/01/-28163 20:59, Stefan Weil wrote: > Am 27.02.2012 00:46, schrieb Anthony Liguori: >> I realize UIs are the third rail of QEMU development, but over the >> years I've >> gotten a lot of feedback from users about our UI. I think everyone >> struggles >> with the SDL interface and its lack of

[Qemu-devel] seamless migration with spice

2012-03-11 Thread Yonit Halperin
Hi, We would like to implement seamless migration for Spice, i.e., keeping the currently opened spice client session valid after migration. Today, the spice client establishes the connection to the destination before migration starts, and when migration completes, the client's session is moved

[Qemu-devel] [PATCH] Tracing documentation changes

2012-03-11 Thread Peter Teoh
I was trying out the tracing feature of QEMU after checking out the git tree at git://git.qemu.org/qemu.git, and managed to generate some traces, but the following are the changes needed to the documentation, in order to successfully generate the tracing. Some comments: qemu-system-i386 was used

Re: [Qemu-devel] [PATCH 0/4] fix qxl screendump using monitor_suspend

2012-03-11 Thread Alon Levy
On Sun, Mar 11, 2012 at 06:39:33PM +0200, Alon Levy wrote: > This patchset starts and ends with trace event additions that make it easier > to see the change. Self NACK to v1, see v2 on the same thread. > > It applies on top of > http://lists.gnu.org/archive/html/qemu-devel/2012-03/msg01784.ht

[Qemu-devel] [PATCH v2 0/5] fix qxl screendump using monitor_suspend

2012-03-11 Thread Alon Levy
v2 changes: rearranged and split the last patch: the console change to add Monitor to vga_hw_screen_dump can be moved past the qxl change, making it easier to see the changes, and adding an intermediate point where ppm_save happens after the update, but the do_screen_dump returns before pp

[Qemu-devel] [PATCH v2 4/5] console: pass Monitor to vga_hw_screen_dump/hw_vga_dump

2012-03-11 Thread Alon Levy
Passes the Monitor ptr to the screendump implementation to all for monitor suspend and resume for qxl to fix screendump regression. graphics_console_init signature change required touching every implemented of screen_dump. There is no change other then an added parameter. qxl will make use of it i

[Qemu-devel] [PATCH v2 3/5] qxl-render: call ppm_save on bh

2012-03-11 Thread Alon Levy
With this change ppm_save is called after rendering, and not before. There are two lose ends: hmp: monitor will be active before ppm_save is complete. qmp: return will be emitted before ppm_save is complete. Signed-off-by: Alon Levy --- hw/qxl-render.c| 76 +++

[Qemu-devel] [PATCH v2 5/5] qxl: screendump: use provided Monitor

2012-03-11 Thread Alon Levy
This fixes the hmp loose end by suspending the monitor and resuming it after ppm_save has been called. For qmp this is redundant, and actually wrong, since a qmp command ends up suspending the hmp monitor and then resuming it. On the other hand I'm not sure how much of a problem this is. The real

[Qemu-devel] [PATCH v2 1/5] qxl: switch qxl.c to trace-events

2012-03-11 Thread Alon Levy
dprint is still used for qxl_init_common one time prints. Signed-off-by: Alon Levy --- hw/qxl.c | 140 +++-- trace-events | 47 +++ 2 files changed, 113 insertions(+), 74 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c ind

[Qemu-devel] [PATCH v2 2/5] qxl/qxl_render.c: add trace events

2012-03-11 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/qxl-render.c | 13 - trace-events|6 ++ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/hw/qxl-render.c b/hw/qxl-render.c index 25857f6..74e7ea3 100644 --- a/hw/qxl-render.c +++ b/hw/qxl-render.c @@ -31,11 +31,10 @@ static

[Qemu-devel] [PATCH] alpha-user: Initialize FPCR with round-to-nearest.

2012-03-11 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-alpha/translate.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 1d2142b..fe78630 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -3513,7 +3513

Re: [Qemu-devel] [PATCH 2/2] Expose tsc deadline timer cpuid to guest

2012-03-11 Thread Liu, Jinsong
Jan Kiszka wrote: > On 2012-03-09 20:09, Liu, Jinsong wrote: >> Jan Kiszka wrote: >>> On 2012-03-09 19:27, Liu, Jinsong wrote: Jan Kiszka wrote: > On 2012-03-06 08:49, Liu, Jinsong wrote: >> Jan, >> >> Any comments? I feel some confused about your point 'disable >> cpuid f

Re: [Qemu-devel] [PATCH 0/8] Add GTK UI to enable basic accessibility (v2)

2012-03-11 Thread Stefan Weil
Am 11.03.2012 19:24, schrieb François Revol: On -10/01/-28163 20:59, Stefan Weil wrote: Am 27.02.2012 00:46, schrieb Anthony Liguori: I realize UIs are the third rail of QEMU development, but over the years I've gotten a lot of feedback from users about our UI. I think everyone struggles with t

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-11 Thread Gleb Natapov
On Sun, Mar 11, 2012 at 10:41:32AM -0500, Anthony Liguori wrote: > On 03/11/2012 10:12 AM, Gleb Natapov wrote: > >On Sun, Mar 11, 2012 at 09:16:49AM -0500, Anthony Liguori wrote: > >>>If libvirt assumes anything about what kvm actually supports it is > >>>working only by sheer luck. > >> > >>Well t

[Qemu-devel] [PATCH 4/4] qxl-render: call ppm_save on bh

2012-03-11 Thread Alon Levy
Uses the passed Monitor* to suspend and resume the monitor. Signed-off-by: Alon Levy --- hw/qxl-render.c| 82 +++ hw/qxl.c |5 +-- hw/qxl.h |2 +- trace-events |2 + ui/spice-display.h |3 ++ 5 files

[Qemu-devel] [PATCH 1/4] qxl: switch qxl.c to trace-events

2012-03-11 Thread Alon Levy
dprint is still used for qxl_init_common one time prints. Signed-off-by: Alon Levy --- hw/qxl.c | 140 +++-- trace-events | 47 +++ 2 files changed, 113 insertions(+), 74 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c ind

[Qemu-devel] [PATCH 3/4] console: pass Monitor to vga_hw_screen_dump/hw_vga_dump

2012-03-11 Thread Alon Levy
Passes the Monitor ptr to the screendump implementation to all for monitor suspend and resume for qxl to fix screendump regression. graphics_console_init signature change required touching every implemented of screen_dump. There is no change other then an added parameter. qxl will make use of it i

[Qemu-devel] [PATCH 2/4] qxl/qxl_render.c: add trace events

2012-03-11 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/qxl-render.c | 13 - trace-events|6 ++ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/hw/qxl-render.c b/hw/qxl-render.c index 25857f6..74e7ea3 100644 --- a/hw/qxl-render.c +++ b/hw/qxl-render.c @@ -31,11 +31,10 @@ static

[Qemu-devel] [PATCH 0/4] fix qxl screendump using monitor_suspend

2012-03-11 Thread Alon Levy
This patchset starts and ends with trace event additions that make it easier to see the change. It applies on top of http://lists.gnu.org/archive/html/qemu-devel/2012-03/msg01784.html due to trace-events. The problem addressed by this patchset is that after recent fixes (81fb6f) screendump with

Re: [Qemu-devel] [PATCH 0/8] Add GTK UI to enable basic accessibility (v2)

2012-03-11 Thread Stefan Weil
Am 27.02.2012 00:46, schrieb Anthony Liguori: I realize UIs are the third rail of QEMU development, but over the years I've gotten a lot of feedback from users about our UI. I think everyone struggles with the SDL interface and its lack of discoverability but it's worse than I think most peopl

Re: [Qemu-devel] GSoC - Tracepoint support for the gdbstub

2012-03-11 Thread Jan Kiszka
On 2012-03-11 15:04, Lyu Mitnick wrote: > Hello all, > > I am Mitnick Lyu, who want to contribute to QEMU and participate Google > Summer of Code this > year. I have some experience with tool-chain developing and I am highly > interested in the project: > Tracepoint support for the gdbstub. I am w

Re: [Qemu-devel] [PATCH 1/1] vmware_vga: stop crashing

2012-03-11 Thread Gerhard Wiesinger
Can confirm that this patch fixes a crash which also occoured here. Since window was out of the VNC window, crash was reproduceable and has been removed reproduceable. Tested-by: Gerhard Wiesinger Please apply ASAP. Ciao, Gerhard -- http://www.wiesinger.com/ On Mon, 5 Mar 2012, Serge Hall

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-11 Thread Gleb Natapov
On Sun, Mar 11, 2012 at 10:33:15AM -0500, Anthony Liguori wrote: > On 03/11/2012 09:56 AM, Gleb Natapov wrote: > >On Sun, Mar 11, 2012 at 09:12:58AM -0500, Anthony Liguori wrote: > >>-cpu best wouldn't solve this. You need a read/write configuration > >>file where QEMU probes the available CPU and

[Qemu-devel] [PATCH 2/2] vga: add trace event for ppm_save

2012-03-11 Thread Alon Levy
Signed-off-by: Alon Levy --- hw/vga.c |2 ++ trace-events |3 +++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/hw/vga.c b/hw/vga.c index 5994f43..6dc98f6 100644 --- a/hw/vga.c +++ b/hw/vga.c @@ -30,6 +30,7 @@ #include "pixel_ops.h" #include "qemu-timer.h" #include

[Qemu-devel] [PATCH 1/2] console: add some trace events

2012-03-11 Thread Alon Levy
Signed-off-by: Alon Levy --- console.h|3 +++ trace-events |4 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/console.h b/console.h index a95b581..4334db5 100644 --- a/console.h +++ b/console.h @@ -5,6 +5,7 @@ #include "qdict.h" #include "notify.h" #include "mo

Re: [Qemu-devel] [PATCH] Add missing const attributes for MemoryRegionOps

2012-03-11 Thread Blue Swirl
Thanks, applied. On Sat, Mar 10, 2012 at 19:15, Stefan Weil wrote: > Am 05.02.2012 21:19, schrieb Stefan Weil: >> >> Most MemoryRegionOps already had the const attribute. >> This patch adds it to the remaining ones. >> >> Signed-off-by: Stefan Weil >> --- >>  hw/cuda.c          |    2 +- >>  hw/i

Re: [Qemu-devel] [PATCH] tcg: Improve tcg_out_label and fix its usage for w64

2012-03-11 Thread Blue Swirl
Thanks, applied. On Sat, Mar 10, 2012 at 18:59, Stefan Weil wrote: > tcg_out_label is always called with a third argument of pointer type > which was casted to tcg_target_long. > > These casts can be avoided by changing the prototype of tcg_out_label. > > There was also a cast to long. For most h

Re: [Qemu-devel] [PATCH] configure: Test for libiberty.a (mingw32)

2012-03-11 Thread Blue Swirl
Thanks, applied. On Sat, Mar 10, 2012 at 10:14, Stefan Weil wrote: > MinGW-w64 and some versions of MinGW32 don't provide libiberty.a, > so add this library only if it was found. > > Signed-off-by: Stefan Weil > --- >  configure |    8 +++- >  1 files changed, 7 insertions(+), 1 deletions(-)

Re: [Qemu-devel] [PATCH] w64: Don't redefine lseek, ftruncate

2012-03-11 Thread Blue Swirl
Thanks, applied. On Sat, Mar 10, 2012 at 10:14, Stefan Weil wrote: > MinGW-w64 already defines lseek and ftruncate (and uses the 64 bit > variants). The conditional compilation avoids redefinitions > (which would be wrong) and compiler warnings. > > Signed-off-by: Stefan Weil > --- >  qemu-commo

Re: [Qemu-devel] [PATCH] cache-utils: Add missing include file for uintptr_t

2012-03-11 Thread Blue Swirl
Thanks, applied. On Mon, Mar 5, 2012 at 20:15, Stefan Weil wrote: > Commit 021ecd8b9db37927059f5d3234b51ed766706437 breaks the build for > PPC hosts because it uses uintptr_t without the necessary include file. > > uintptr_t is defined in stdint.h, so add this include. > > Cc: Alexander Graf > S

Re: [Qemu-devel] [PATCH] build: Include config-host.mak as soon as possible

2012-03-11 Thread Blue Swirl
Thanks, applied. On Tue, Mar 6, 2012 at 18:50, Lluís Vilanova wrote: > Current code depends on variables defined in config-host.mak before it is > actually included. > > Signed-off-by: Lluís Vilanova > Cc: Anthony Liguori > Cc: Paul Brook > --- >  Makefile |   15 --- >  1 files cha

Re: [Qemu-devel] [PATCH] gdbstub: Do not kill target in system emulation mode

2012-03-11 Thread Blue Swirl
Thanks, applied. I've been an accidental killer myself countless times. On Tue, Mar 6, 2012 at 17:32, Jan Kiszka wrote: > Too many VM kittens were killed since 7d03f82f81. Another one just died > under my fat fingers. > > When you quit a kgdb session, does the Linux kernel power off? Or when > yo

Re: [Qemu-devel] [PATCH v2] target-i386: Mask NX bit from cpu_get_phys_page_debug result

2012-03-11 Thread Blue Swirl
Thanks, applied. On Tue, Mar 6, 2012 at 14:22, Jan Kiszka wrote: > This was a long pending bug, now revealed by the assert in > phys_page_find that stumbled over the large page index returned by > cpu_get_phys_page_debug for NX-marked pages: We need to mask out NX and > all user-definable bits 52

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-11 Thread Anthony Liguori
On 03/11/2012 10:12 AM, Gleb Natapov wrote: On Sun, Mar 11, 2012 at 09:16:49AM -0500, Anthony Liguori wrote: If libvirt assumes anything about what kvm actually supports it is working only by sheer luck. Well the simple answer for libvirt is don't use -nodefconfig and then it can reuse the CPU

Re: [Qemu-devel] seamless migration with spice

2012-03-11 Thread Anthony Liguori
On 03/11/2012 10:25 AM, Alon Levy wrote: On Sun, Mar 11, 2012 at 09:18:17AM -0500, Anthony Liguori wrote: On 03/11/2012 08:16 AM, Yonit Halperin wrote: Hi, We would like to implement seamless migration for Spice, i.e., keeping the currently opened spice client session valid after migration. To

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-11 Thread Anthony Liguori
On 03/11/2012 09:56 AM, Gleb Natapov wrote: On Sun, Mar 11, 2012 at 09:12:58AM -0500, Anthony Liguori wrote: -cpu best wouldn't solve this. You need a read/write configuration file where QEMU probes the available CPU and records it to be used for the lifetime of the VM. That what I thought too

Re: [Qemu-devel] [PATCHv2 6/7] cleanup qemu_co_sendv(), qemu_co_recvv() and friends

2012-03-11 Thread Michael Tokarev
On 11.03.2012 19:01, Paolo Bonzini wrote: > Il 11/03/2012 02:49, Michael Tokarev ha scritto: >> The same as for non-coroutine versions in previous patches: >> rename arguments to be more obvious, change type of arguments >> from int to size_t where appropriate, and use common code for >> send and r

Re: [Qemu-devel] seamless migration with spice

2012-03-11 Thread Alon Levy
On Sun, Mar 11, 2012 at 09:18:17AM -0500, Anthony Liguori wrote: > On 03/11/2012 08:16 AM, Yonit Halperin wrote: > >Hi, > > > >We would like to implement seamless migration for Spice, i.e., keeping the > >currently opened spice client session valid after migration. > >Today, the spice client establ

Re: [Qemu-devel] [PATCHv2 5/7] Export qemu_sendv_recvv() and use it in qemu_sendv() and qemu_recvv()

2012-03-11 Thread Michael Tokarev
On 11.03.2012 19:00, Paolo Bonzini wrote: > Il 11/03/2012 02:49, Michael Tokarev ha scritto: >> Rename do_sendv_recvv() to qemu_sendv_recvv(), >> change its last arg (do_send) from int to bool, >> export it in qemu-common.h, and made the two >> callers of it (qemu_sendv() and qemu_recvv()) >> to be

Re: [Qemu-devel] [PATCH v3] VMXNET3 paravirtual NIC device implementation

2012-03-11 Thread Dmitry Fleytman
Antony, Thanks for you review. We'll go over it and prepare fixes and explanations soon. Best Regards, Dmitry Fleytman.

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-11 Thread Gleb Natapov
On Sun, Mar 11, 2012 at 09:16:49AM -0500, Anthony Liguori wrote: > >If libvirt assumes anything about what kvm actually supports it is > >working only by sheer luck. > > Well the simple answer for libvirt is don't use -nodefconfig and > then it can reuse the CPU definitions (including any that the

Re: [Qemu-devel] [PATCHv2 0/7] cleanup/consolidate some iovec functions

2012-03-11 Thread Paolo Bonzini
Il 11/03/2012 02:49, Michael Tokarev ha scritto: > This is a little cleanup/consolidation for some iovec-related > low-level routines in qemu. > > The plan is to make library functions more understandable, > consistent and useful. > > The patch changes prototypes of several iov and qiov functions

Re: [Qemu-devel] IRQ number, interrupt number, interrupt line & GPIO[in/out]

2012-03-11 Thread Shu Ming
IRQ number is actually a word coming from ancient time. When 8259 was popular at that time, we only have 0 ~ 15 interrupts when two 8259 are cascaded. The IRQ number mattered in that time, because 8259 put their vector number in the bus for CPU after the interrupt was delivered. The number

Re: [Qemu-devel] [PATCHv2 6/7] cleanup qemu_co_sendv(), qemu_co_recvv() and friends

2012-03-11 Thread Paolo Bonzini
Il 11/03/2012 02:49, Michael Tokarev ha scritto: > The same as for non-coroutine versions in previous patches: > rename arguments to be more obvious, change type of arguments > from int to size_t where appropriate, and use common code for > send and receive paths (with one extra argument) since the

Re: [Qemu-devel] [PATCHv2 5/7] Export qemu_sendv_recvv() and use it in qemu_sendv() and qemu_recvv()

2012-03-11 Thread Paolo Bonzini
Il 11/03/2012 02:49, Michael Tokarev ha scritto: > Rename do_sendv_recvv() to qemu_sendv_recvv(), > change its last arg (do_send) from int to bool, > export it in qemu-common.h, and made the two > callers of it (qemu_sendv() and qemu_recvv()) > to be trivial #defines just adding 5th arg. GCC is sm

Re: [Qemu-devel] [PATCHv2 3/7] consolidate qemu_iovec_copy() and qemu_iovec_concat() and make them consistent

2012-03-11 Thread Paolo Bonzini
Il 11/03/2012 02:49, Michael Tokarev ha scritto: > qemu_iovec_concat() is currently a wrapper for qemu_iovec_copy(), > use the former (with extra "0" arg) in a few places where it is used. > > Change skip argument of qemu_iovec_copy() from uint64_t to size_t, > since size of qiov itself is size_t,

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-11 Thread Gleb Natapov
On Sun, Mar 11, 2012 at 09:12:58AM -0500, Anthony Liguori wrote: > On 03/11/2012 08:27 AM, Gleb Natapov wrote: > >On Sat, Mar 10, 2012 at 12:24:47PM -0600, Anthony Liguori wrote: > >>Let's step back here. > >> > >>Why are you writing these patches? It's probably not because you > >>have a desire t

Re: [Qemu-devel] seamless migration with spice

2012-03-11 Thread Anthony Liguori
On 03/11/2012 08:16 AM, Yonit Halperin wrote: Hi, We would like to implement seamless migration for Spice, i.e., keeping the currently opened spice client session valid after migration. Today, the spice client establishes the connection to the destination before migration starts, and when migrat

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-11 Thread Anthony Liguori
On 03/11/2012 07:41 AM, Gleb Natapov wrote: On Sat, Mar 10, 2012 at 12:58:43PM -0300, Eduardo Habkost wrote: On Sat, Mar 10, 2012 at 12:42:46PM +, Daniel P. Berrange wrote: I could have sworn we had this discussion a year ago or so, and had decided that the default CPU models would be in s

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-11 Thread Anthony Liguori
On 03/11/2012 08:27 AM, Gleb Natapov wrote: On Sat, Mar 10, 2012 at 12:24:47PM -0600, Anthony Liguori wrote: Let's step back here. Why are you writing these patches? It's probably not because you have a desire to say -cpu Westmere when you run QEMU on your laptop. I'd wager to say that no huma

[Qemu-devel] [PATCH] virtio-serial-bus: use correct lengths in control_out() message

2012-03-11 Thread Michael Tokarev
In case of more than one control message, the code will use size of the largest message so far for all subsequent messages, instead of using size of current one. Fix it. Signed-off-by: Michael Tokarev --- hw/virtio-serial-bus.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) di

[Qemu-devel] SeaBIOS v1.6.3.2 release

2012-03-11 Thread Kevin O'Connor
A new stable release of SeaBIOS (version 1.6.3.2) has been tagged. This release has some minor bug fixes, mostly build related. The release is available via git: git clone git://git.seabios.org/seabios -b 1.6.3-stable -Kevin Kevin O'Connor (6): Add PYTHON definition to Makefile. Permit .rod

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-11 Thread Gleb Natapov
On Sat, Mar 10, 2012 at 12:24:47PM -0600, Anthony Liguori wrote: > Let's step back here. > > Why are you writing these patches? It's probably not because you > have a desire to say -cpu Westmere when you run QEMU on your laptop. > I'd wager to say that no human has ever done that or that if they

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-11 Thread Gleb Natapov
On Sat, Mar 10, 2012 at 12:58:43PM -0300, Eduardo Habkost wrote: > On Sat, Mar 10, 2012 at 12:42:46PM +, Daniel P. Berrange wrote: > > > > > > I could have sworn we had this discussion a year ago or so, and had > > > decided > > > that the default CPU models would be in something like > > >

Re: [Qemu-devel] [PATCH] ide: Adds "model=s" option, allowing the user to override the default disk model name "QEMU HARDDISK"

2012-03-11 Thread Andreas Färber
Am 10.03.2012 20:56, schrieb Floris Bos: > Some Linux distributions use the > /dev/disk/by-id/scsi-SATA_name-of-disk-model_serial addressing scheme > when refering to partitions in /etc/fstab and elsewhere. > This causes problems when starting a disk image taken from an existing > physical server

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-11 Thread Gleb Natapov
On Fri, Mar 09, 2012 at 03:15:26PM -0600, Anthony Liguori wrote: > On 03/09/2012 03:04 PM, Daniel P. Berrange wrote: > >On Fri, Mar 09, 2012 at 05:56:52PM -0300, Eduardo Habkost wrote: > >>Resurrecting an old thread: > >> > >>I didn't see any clear conclusion in this thread (this is why I am > >>re

[Qemu-devel] [PATCH 3/3] sparc64: implement PCI and ISA irqs

2012-03-11 Thread Blue Swirl
Generate correct trap for external interrupts. Map PCI and ISA IRQs to RIC/UltraSPARC-IIi interrupt vectors. Signed-off-by: Blue Swirl --- hw/apb_pci.c | 48 +++-- hw/apb_pci.h |3 +- hw/sun4u.c | 57

[Qemu-devel] [PATCH 2/3] sparc: reset CPU state on reset

2012-03-11 Thread Blue Swirl
Not strictly accurate for Sparc64 but avoid confusing Valgrind. Reported-by: Michael S. Tsirkin Signed-off-by: Blue Swirl --- target-sparc/cpu.h |5 +++-- target-sparc/cpu_init.c |1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/target-sparc/cpu.h b/target-sparc/

[Qemu-devel] [PATCH 1/3] apb: use normal PCI device header for PBM device

2012-03-11 Thread Blue Swirl
PBM has a normal PCI device header, fix. Signed-off-by: Blue Swirl --- hw/apb_pci.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/hw/apb_pci.c b/hw/apb_pci.c index 1d25da8..b10f31e 100644 --- a/hw/apb_pci.c +++ b/hw/apb_pci.c @@ -444,7 +444,6 @@ static void pbm_pci_hos

[Qemu-devel] [PATCH 2/2] memory: print aliased IO ranges in info mtree

2012-03-11 Thread Blue Swirl
Print also I/O ports behind bridges and other aliases. Signed-off-by: Blue Swirl --- memory.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/memory.c b/memory.c index 4c3dc49..0201392 100644 --- a/memory.c +++ b/memory.c @@ -1639,7 +1639,20 @@ void mtree_in

[Qemu-devel] [PATCH 1/2] ioport: use INT64_MAX for IO ranges

2012-03-11 Thread Blue Swirl
Expression UINT64_MAX + 1 will make the range bigger than what can be represented with a 64 bit type. This would trigger an assert in int128_get64() after the next patch. Signed-off-by: Blue Swirl --- ioport.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ioport.c b/i

Re: [Qemu-devel] Support for Nested Paging

2012-03-11 Thread Ankur Agrawal
Hi, Thanks for your reply. I am a graduate student at Stony Brook University and am working on design and implementation of hypervisors for OSCAR lab ( http://oscar.cs.stonybrook.edu/). Currently I am working on implementing emulation of Nested Page Tables in QEMU as present in AMD-V architecture

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-11 Thread Doug Goldstein
On Sat, Mar 10, 2012 at 12:24 PM, Anthony Liguori wrote: > On 03/10/2012 09:58 AM, Eduardo Habkost wrote: >> >> On Sat, Mar 10, 2012 at 12:42:46PM +, Daniel P. Berrange wrote: I could have sworn we had this discussion a year ago or so, and had decided that the default

Re: [Qemu-devel] [PATCH 2/2] Run pod2man with --utf8 option to enable utf8 in manpages

2012-03-11 Thread Michael Tokarev
Ping? It's been more than a month since this patch has been posted. Maybe it is a good candidate for -trivial queue? Thanks, /mjt On 02.02.2012 18:16, Michael Tokarev wrote: > This option makes no difference for manpages which contains only > ascii chars. But for manpages with actual UTF8 cha

Re: [Qemu-devel] [PATCH 1/2] Support @documentencoding in scripts/texi2pod.pl

2012-03-11 Thread Michael Tokarev
Ping? It's been more than a month since this patch has been posted. Maybe it is a good candidate for -trivial queue? Thanks, /mjt On 02.02.2012 18:16, Michael Tokarev wrote: > Currently our texi2pod ignores @documentencoding even if it is set > properly in *.texi files. This results in a moji

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2012-03-11 Thread Andrew Cathrow
- Original Message - > From: "Anthony Liguori" > To: "Daniel P. Berrange" , libvir-l...@redhat.com, > qemu-devel@nongnu.org, "Gleb Natapov" > , "Jiri Denemark" , "Avi Kivity" > , a...@ovirt.org > Sent: Saturday, March 10, 2012 1:24:47 PM > Subject: Re: [libvirt] [Qemu-devel] Modern CPU

[Qemu-devel] How to trace all the guest OS instructions and the micro-ops

2012-03-11 Thread Yue Chen
Hi! I am doing some research based on the QEMU. Does anyone know how to get (trace) all the instructions of the guest OS, and get all the intermediate micro-ops ? (Not in the 0.9.1 version) Additionally, how to get the whole memory or each process' memory data of the guest OS? I really apprecia

[Qemu-devel] [PATCH] ide: Adds "model=s" option, allowing the user to override the default disk model name "QEMU HARDDISK"

2012-03-11 Thread Floris Bos
Some Linux distributions use the /dev/disk/by-id/scsi-SATA_name-of-disk-model_serial addressing scheme when refering to partitions in /etc/fstab and elsewhere. This causes problems when starting a disk image taken from an existing physical server under qemu, because when running under qemu name-o