[Qemu-devel] [PATCH 1/2 v3] kvm: notify host when guest panicked

2012-03-08 Thread Wen Congyang
The implementation is the same as xen: register panic notifier, and call hypercall when the guest is paniced. Signed-off-by: Wen Congyang we...@cn.fujitsu.com --- arch/x86/kernel/kvm.c| 12 include/linux/kvm_para.h |1 + 2 files changed, 13 insertions(+), 0 deletions(-)

[Qemu-devel] [PATCH 2/2 v3] kvm: set exit_reason to KVM_EXIT_GUEST_PANICKED when guest panicked

2012-03-08 Thread Wen Congyang
This patch introduces new request bit KVM_REQ_GUEST_PANICEKD. If this bit is set, set vcpu's exit_reason to KVM_EXIT_GUEST_PANICKED. And then the user space can know the guest panicked. Signed-off-by: Wen Congyang we...@cn.fujitsu.com --- arch/x86/kvm/x86.c | 11 +++

[Qemu-devel] [PATCH 1/2 v3] update linux-headers

2012-03-08 Thread Wen Congyang
Signed-off-by: Wen Congyang we...@cn.fujitsu.com --- linux-headers/asm-s390/kvm.h |2 ++ linux-headers/linux/kvm.h |7 +++ linux-headers/linux/kvm_para.h |1 + 3 files changed, 10 insertions(+), 0 deletions(-) diff --git a/linux-headers/asm-s390/kvm.h

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

2012-03-08 Thread Wen Congyang
When the host knows the guest is panicked, it will set exit_reason to KVM_EXIT_GUEST_PANICKED. So if qemu receive this exit_reason, we can send a event to tell management application that the guest is panicked and set the guest status to RUN_STATE_PANICKED. Signed-off-by: Wen Congyang

Re: [Qemu-devel] questions about pci

2012-03-08 Thread 陳韋任
CC'ed to the list. On Wed, Mar 07, 2012 at 07:47:08PM +0800, WanPeng Li wrote: On Tue, Mar 06, 2012 at 06:10:16PM +0800, 陳韋任 wrote: I read pci code in qemu about i440fx, pci.c and so on. I think if guest os whose mainboard is based on x86, it will use IO instructions to access PCI

Re: [Qemu-devel] [PATCH 13/21] libcacard: fix reported ATR length

2012-03-08 Thread Alon Levy
On Thu, Mar 08, 2012 at 03:12:03PM +0800, Wen Congyang wrote: At 02/28/2012 06:20 PM, Gerd Hoffmann Wrote: From: Alon Levy al...@redhat.com Signed-off-by: Alon Levy al...@redhat.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- libcacard/vcardt.h |4 ++-- 1 files changed,

[Qemu-devel] [patch] correct tracing.txt

2012-03-08 Thread Jun Koi
this patch corrects the configure's trace option in docs/tracing.txt Signed-off-by: Jun Koi junkoi2...@gmail.com diff --git a/docs/tracing.txt b/docs/tracing.txt index ea29f2c..7b11d15 100644 --- a/docs/tracing.txt +++ b/docs/tracing.txt @@ -9,7 +9,7 @@ for debugging, profiling, and observing

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

2012-03-08 Thread Wen Congyang
At 03/07/2012 11:27 PM, HATAYAMA Daisuke Wrote: From: Wen Congyang we...@cn.fujitsu.com Subject: [RFC][PATCH 05/16 v8] Add API to get memory mapping Date: Fri, 02 Mar 2012 18:18:23 +0800 Add API to get all virtual address and physical address mapping. If there is no virtual address for some

Re: [Qemu-devel] [RFC][PATCH 00/16 v8] introducing a new, dedicated memory dump mechanism

2012-03-08 Thread Wen Congyang
At 03/08/2012 01:38 AM, Luiz Capitulino Wrote: On Mon, 5 Mar 2012 21:41:02 -0300 Luiz Capitulino lcapitul...@redhat.com wrote: On Mon, 05 Mar 2012 17:12:00 +0800 Wen Congyang we...@cn.fujitsu.com wrote: At 03/02/2012 05:59 PM, Wen Congyang Wrote: Hi, all 'virsh dump' can not work when

Re: [Qemu-devel] XP install cores with SCSI LSI 53C895A disks

2012-03-08 Thread Michael Tokarev
On 08.03.2012 11:44, Gerd Hoffmann wrote: On 03/07/12 20:58, Gerhard Wiesinger wrote: On Wed, 7 Mar 2012, Brian Jackson wrote: I think most people trying to use qemu for anything useful have given up on if=scsi. Some distros even disable support because they don't want to QA it. That should

Re: [Qemu-devel] Virtual FAT disk images error, can somebody help me , thank you !

2012-03-08 Thread Mark Wu
On 03/08/2012 02:11 PM, Zhi Hui Li wrote: when I use the command : 1: mkdir /my_directory 2: qemu linux.img -fda fat:floppy:/my_directory when I write to the floppy(just mkdir test.dir in the floppy), the error occur: FLOPPY ERROR: fdctrl_transfer_handler: writing sector 1 and nothing

[Qemu-devel] [RfC PATCH 1/2] usb: the big rename

2012-03-08 Thread Gerd Hoffmann
Reorganize usb source files. Create a new hw/usb/ directory and move all usb source code to that place. Also make filenames a bit more descriptive. Host adapters are prefixed with hch- now, usb device emulations are prefixed with dev-. Fixup paths Makefile and include paths to make it compile.

[Qemu-devel] [RfC PATCH 2/2] usb: zap hw/ush-{ohic, uhci}.h + init wrappers

2012-03-08 Thread Gerd Hoffmann
Remove the uhci and ohci init wrappers, which all wrapped a pci_create_simple() one-liner. Switch callsites to call pci_create_simple directly. Remove the header files where the wrappers where declared. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/alpha_sys.h|1 - hw/pc_piix.c

[Qemu-devel] [RfC PATCH 0/2] usb: reorganize source files.

2012-03-08 Thread Gerd Hoffmann
Hi, Plan is basically to move all usb stuff to hw/usb/ Comments? cheers, Gerd Gerd Hoffmann (2): usb: the big rename usb: zap hw/ush-{ohic,uhci}.h + init wrappers Makefile.objs | 22 -- Makefile.target|2 +-

Re: [Qemu-devel] [RfC PATCH 1/2] usb: the big rename

2012-03-08 Thread Alon Levy
On Thu, Mar 08, 2012 at 10:16:21AM +0100, Gerd Hoffmann wrote: Reorganize usb source files. Create a new hw/usb/ directory and move all usb source code to that place. Also make filenames a bit more descriptive. Host adapters are prefixed with hch- now, usb device emulations are prefixed

Re: [Qemu-devel] Interpretation of key symbols in QEMU's VNC server

2012-03-08 Thread Fabian Holler
Hello Gerhard, On Thu, Mar 08, 2012 at 06:54:46AM +0100, Gerhard Wiesinger wrote: I'm having also isssues with german keymappings. E.g. Under DOS when pressing shift keys will always be uppercase. Also ALT-GR doesn't work. If I start qemu with -k de and the layout in the Client OS is also

Re: [Qemu-devel] Virtual FAT disk images error, can somebody help me , thank you !

2012-03-08 Thread Stefan Hajnoczi
On Thu, Mar 08, 2012 at 02:11:33PM +0800, Zhi Hui Li wrote: when I use the command : 1: mkdir /my_directory 2: qemu linux.img -fda fat:floppy:/my_directory when I write to the floppy(just mkdir test.dir in the floppy), the error occur: FLOPPY ERROR: fdctrl_transfer_handler: writing

Re: [Qemu-devel] Virtual FAT disk images error, can somebody help me , thank you !

2012-03-08 Thread Stefan Hajnoczi
On Thu, Mar 08, 2012 at 04:57:34PM +0800, Mark Wu wrote: On 03/08/2012 02:11 PM, Zhi Hui Li wrote: when I use the command : 1: mkdir /my_directory 2: qemu linux.img -fda fat:floppy:/my_directory when I write to the floppy(just mkdir test.dir in the floppy), the error occur:

Re: [Qemu-devel] [PATCH 08/20] memory: store MemoryRegionSection pointers in phys_map

2012-03-08 Thread Avi Kivity
On 03/07/2012 09:32 PM, Peter Maydell wrote: On 7 March 2012 17:49, Peter Maydell peter.mayd...@linaro.org wrote: git bisect blames this commit (5312bd8b3) for causing a Linux kernel on spitz to produce a bunch of pxa2xx_i2c warnings that weren't being emitted before: What seems to happen

Re: [Qemu-devel] XP install cores with SCSI LSI 53C895A disks

2012-03-08 Thread Gerd Hoffmann
On 03/08/12 09:54, Michael Tokarev wrote: On 08.03.2012 11:44, Gerd Hoffmann wrote: OK, but SAS (Serial attached SCSI) is technology in the area of storage interface technology where all big storage vendors see future (e.g. they give up: FC and SATA drives, SATA drives are replaced by MDL SATA

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

2012-03-08 Thread Jan Kiszka
On 2012-03-08 09:07, Wen Congyang wrote: When the host knows the guest is panicked, it will set exit_reason to KVM_EXIT_GUEST_PANICKED. So if qemu receive this exit_reason, we can send a event to tell management application that the guest is panicked and set the guest status to

Re: [Qemu-devel] [PATCH 08/20] memory: store MemoryRegionSection pointers in phys_map

2012-03-08 Thread Peter Maydell
On 8 March 2012 09:50, Avi Kivity a...@redhat.com wrote: On 03/07/2012 09:32 PM, Peter Maydell wrote: Are we running into the mapping devices at non-page-offsets isn't supported issue here? It wasn't supported? Well, you used to run into the issue noted in the comment above

Re: [Qemu-devel] QEMU RX offload issues with net device frontend that does not support virtio extensions

2012-03-08 Thread Stefan Hajnoczi
On Wed, Mar 7, 2012 at 4:32 PM, Dmitry Fleytman dmitry.fleyt...@ravellosystems.com wrote: It looks like there is a problem in QEMU related to usage of frontends without virtio extensions. Normally on RX path QEMU receives packet metadata with offloads information in virtio header. Have you

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

2012-03-08 Thread Wen Congyang
At 03/08/2012 06:08 PM, Jan Kiszka Wrote: On 2012-03-08 09:07, Wen Congyang wrote: When the host knows the guest is panicked, it will set exit_reason to KVM_EXIT_GUEST_PANICKED. So if qemu receive this exit_reason, we can send a event to tell management application that the guest is panicked

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

2012-03-08 Thread Wen Congyang
When the host knows the guest is panicked, it will set exit_reason to KVM_EXIT_GUEST_PANICKED. So if qemu receive this exit_reason, we can send a event to tell management application that the guest is panicked and set the guest status to RUN_STATE_PANICKED. Signed-off-by: Wen Congyang

[Qemu-devel] [PATCH] add bochs dispi interface framebuffer driver

2012-03-08 Thread Gerd Hoffmann
This patchs adds a frame buffer driver for (virtual/emulated) vga cards implementing the bochs dispi interface. Supported hardware are the bochs vga card with vbe extension and the qemu standard vga. The driver uses a fixed depth of 32bpp. Otherwise it supports the full (but small) feature set

Re: [Qemu-devel] [PATCH v2 0/3] New sigaltstack backend for coroutine

2012-03-08 Thread Stefan Hajnoczi
On Wed, Mar 7, 2012 at 10:44 PM, Alex Barcelo abarc...@ac.upc.edu wrote: On Wed, Mar 7, 2012 at 23:17, Peter Maydell peter.mayd...@linaro.org wrote: On 7 March 2012 22:01, Alex Barcelo abarc...@ac.upc.edu wrote: Is this patch okay? The first version had some comments, and now the v2 has been a

[Qemu-devel] [PATCH] implement vnc_dpy_setdata

2012-03-08 Thread Gerd Hoffmann
The comment is wrong, we have to do something in the setdata callback. Changing the framebuffer backing storage (happens when the guest pans the display) renders the whole screen content invalid. Trigger #1: cirrus vga + 32bit linux guest + vesafb with ypan enabled. Trigger #2: std vga +

Re: [Qemu-devel] [PATCH 1/2 v7] block: add-cow file format

2012-03-08 Thread Stefan Hajnoczi
On Thu, Mar 8, 2012 at 2:27 AM, Dong Xu Wang wdon...@linux.vnet.ibm.com wrote: On Wed, Mar 7, 2012 at 00:59, Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, Mar 1, 2012 at 2:56 AM, Dong Xu Wang wdon...@linux.vnet.ibm.com wrote: +static int add_cow_update_bitmap(BlockDriverState *bs, int64_t

Re: [Qemu-devel] [PATCH 2/2] block: add-cow support snapshot_blkdev

2012-03-08 Thread Stefan Hajnoczi
On Thu, Mar 8, 2012 at 1:50 AM, Dong Xu Wang wdon...@linux.vnet.ibm.com wrote: image file will be created automaticly, file name is formated as: sprintf(image_file, %s.raw, snapshot_file); I just add .raw to the file name of #1 in you comments as file name of #2. Oops, I looked at the if

Re: [Qemu-devel] [PATCH 08/20] memory: store MemoryRegionSection pointers in phys_map

2012-03-08 Thread Avi Kivity
On 03/08/2012 12:09 PM, Peter Maydell wrote: On 8 March 2012 09:50, Avi Kivity a...@redhat.com wrote: On 03/07/2012 09:32 PM, Peter Maydell wrote: Are we running into the mapping devices at non-page-offsets isn't supported issue here? It wasn't supported? Well, you used to run into

Re: [Qemu-devel] [PATCH 0/2 v3] kvm: notify host when guest panicked

2012-03-08 Thread Avi Kivity
On 03/08/2012 09:57 AM, Wen Congyang wrote: We can know the guest is paniced when the guest runs on xen. But we do not have such feature on kvm. Another purpose of this feature is: management app(for example: libvirt) can do auto dump when the guest is crashed. If management app does not do

Re: [Qemu-devel] [PATCH 08/20] memory: store MemoryRegionSection pointers in phys_map

2012-03-08 Thread Peter Maydell
On 8 March 2012 11:11, Avi Kivity a...@redhat.com wrote: On 03/08/2012 12:09 PM, Peter Maydell wrote: Is that exec.c comment now out of date? For subpage, I think so.  It's still broken for page aligned regions that have low bits set in their offset:  memory_region_init_io(foo, ..., 4097)  

[Qemu-devel] [PATCH 0/2] make check: Add qemu-iotests subset

2012-03-08 Thread Kevin Wolf
Kevin Wolf (2): qemu-iotests: Mark some tests as quick make check: Add qemu-iotests subset tests/Makefile |1 + tests/qemu-iotests.sh| 18 ++ tests/qemu-iotests/group | 24 3 files changed, 31 insertions(+), 12 deletions(-)

[Qemu-devel] [PATCH 1/2] qemu-iotests: Mark some tests as quick

2012-03-08 Thread Kevin Wolf
This creates a new test group 'quick' for some test case that take at most a couple of seconds each, so that the group can be run during a quick 'make check' Signed-off-by: Kevin Wolf kw...@redhat.com --- tests/qemu-iotests/group | 24 1 files changed, 12

[Qemu-devel] [PATCH v3 4/5] slirp: Remove unneeded if_queued

2012-03-08 Thread Jan Kiszka
There is now a trivial check on entry of if_start for pending packets, so we can drop the additional tracking via if_queued. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- slirp/if.c| 11 +-- slirp/slirp.c |7 +-- slirp/slirp.h |1 - 3 files changed, 2

[Qemu-devel] [PATCH v3 0/5] slirp: Fix for requeuing crash, cleanups

2012-03-08 Thread Jan Kiszka
Well, this requeuing bug seems to have a long breath. Previous attempts to fix it (mine included) neglected the fact that we need to walk the queue of pending packets, not just restart from the beginning after a requeue. This version should get it Right(TM). This also comes with a fix for

[Qemu-devel] [PATCH v3 1/5] slirp: Keep next_m always valid

2012-03-08 Thread Jan Kiszka
Make sure that next_m always points to a packet if batchq is non-empty. This will simplify walking the queues in if_start. CC: Fabien Chouteau chout...@adacore.com CC: Zhi Yong Wu wu...@linux.vnet.ibm.com CC: Stefan Weil s...@weilnetz.de Signed-off-by: Jan Kiszka jan.kis...@siemens.com ---

[Qemu-devel] [PATCH v3 3/5] slirp: Fix queue walking in if_start

2012-03-08 Thread Jan Kiszka
Another attempt to get this right: We need to carefully walk both the fastq and the batchq in if_start while trying to send packets to possibly not yet resolved hosts on the virtual network. So far we just requeued a delayed packet where it was and then started walking the queues from the top

[Qemu-devel] [PATCH v3 5/5] slirp: Cleanup resources on instance removal

2012-03-08 Thread Jan Kiszka
Close free sockets when shutting down a slirp instance, also release all buffers. CC: Michael S. Tsirkin m...@redhat.com Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- slirp/ip_icmp.c |7 +++ slirp/ip_icmp.h |1 + slirp/ip_input.c |7 +++ slirp/mbuf.c | 21

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

2012-03-08 Thread Daniel P. Berrange
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 knows the guest is panicked, it will set exit_reason to KVM_EXIT_GUEST_PANICKED. So if qemu receive this exit_reason, we can send a event to tell management application

[Qemu-devel] [PATCH 2/2] make check: Add qemu-iotests subset

2012-03-08 Thread Kevin Wolf
Run the 'quick' group from qemu-iotests during 'make check'. Signed-off-by: Kevin Wolf kw...@redhat.com --- tests/Makefile|1 + tests/qemu-iotests.sh | 18 ++ 2 files changed, 19 insertions(+), 0 deletions(-) create mode 100755 tests/qemu-iotests.sh diff --git

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

2012-03-08 Thread Avi Kivity
On 03/08/2012 12:15 PM, Wen Congyang wrote: When the host knows the guest is panicked, it will set exit_reason to KVM_EXIT_GUEST_PANICKED. So if qemu receive this exit_reason, we can send a event to tell management application that the guest is panicked and set the guest status to

[Qemu-devel] [PATCH v3 2/5] slirp: Prevent recursion of if_start

2012-03-08 Thread Jan Kiszka
if_start can be called recursively via if_encap. Avoid this as our scheme of dequeuing packets is not compatible with this. CC: Fabien Chouteau chout...@adacore.com CC: Zhi Yong Wu wu...@linux.vnet.ibm.com CC: Stefan Weil s...@weilnetz.de Signed-off-by: Jan Kiszka jan.kis...@siemens.com ---

Re: [Qemu-devel] [RFC] Future goals for autotest and virtualization tests

2012-03-08 Thread Stefan Hajnoczi
On Thu, Mar 8, 2012 at 4:00 AM, Lucas Meneghel Rodrigues l...@redhat.com wrote: One of our main goals is to provide useful tools for the qemu community, since we have a good number of tests and libraries written to perform integration/QA testing for that tool, being successfuly used by a

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

2012-03-08 Thread Avi Kivity
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 knows the guest is panicked, it will set exit_reason to KVM_EXIT_GUEST_PANICKED. So if qemu receive this exit_reason,

Re: [Qemu-devel] [RFC] Future goals for autotest and virtualization tests

2012-03-08 Thread Stefan Hajnoczi
On Thu, Mar 8, 2012 at 11:44 AM, Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, Mar 8, 2012 at 4:00 AM, Lucas Meneghel Rodrigues l...@redhat.com wrote: One of our main goals is to provide useful tools for the qemu community, since we have a good number of tests and libraries written to

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

2012-03-08 Thread Daniel P. Berrange
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 knows the guest is panicked, it will set exit_reason to

Re: [Qemu-devel] [patch] make trace_thread_create() use its function arg

2012-03-08 Thread Stefan Hajnoczi
On Thu, Mar 08, 2012 at 02:20:37PM +0800, Jun Koi wrote: this patch makes trace_thread_create() to use its function arg to initialize thread. the other choice is to make this a function to use void arg, but i prefer this way. Signed-off-by: Jun Koi junkoi2...@gmail.com Thanks, applied to

Re: [Qemu-devel] [patch] correct tracing.txt

2012-03-08 Thread Stefan Hajnoczi
On Thu, Mar 08, 2012 at 04:24:52PM +0800, Jun Koi wrote: this patch corrects the configure's trace option in docs/tracing.txt Signed-off-by: Jun Koi junkoi2...@gmail.com diff --git a/docs/tracing.txt b/docs/tracing.txt index ea29f2c..7b11d15 100644 --- a/docs/tracing.txt +++

Re: [Qemu-devel] QAPI conversion status and async commands support

2012-03-08 Thread Kevin Wolf
Am 07.03.2012 18:36, schrieb Anthony Liguori: On 03/07/2012 11:29 AM, Paolo Bonzini wrote: Il 07/03/2012 17:36, Luiz Capitulino ha scritto: Hi there, In the last few weeks we've had some proposals for new QMP commands that need to be asynchronous. As we lack a standard asynchronous API

Re: [Qemu-devel] [PATCH 0/6] PCI hotplug improvements

2012-03-08 Thread Gleb Natapov
On Wed, Mar 07, 2012 at 03:46:40PM -0700, Alex Williamson wrote: On Thu, 2012-03-08 at 00:17 +0200, Gleb Natapov wrote: On Wed, Mar 07, 2012 at 02:44:13PM -0700, Alex Williamson wrote: On Wed, 2012-03-07 at 23:00 +0200, Gleb Natapov wrote: On Wed, Mar 07, 2012 at 12:51:48PM -0700, Alex

Re: [Qemu-devel] [libvirt] Qemu, libvirt, and CPU models

2012-03-08 Thread Lee Schermerhorn
On Wed, 2012-03-07 at 16:07 -0700, Eric Blake wrote: On 03/07/2012 03:26 PM, Eduardo Habkost wrote: Thanks a lot for the explanations, Daniel. Comments about specific items inline. - How can we make sure there is no confusion between libvirt and Qemu about the CPU models?

Re: [Qemu-devel] [RFC] Future goals for autotest and virtualization tests

2012-03-08 Thread Stefan Hajnoczi
On Thu, Mar 8, 2012 at 12:28 PM, Cleber Rosa cr...@redhat.com wrote: On 03/08/2012 08:54 AM, Stefan Hajnoczi wrote: On Thu, Mar 8, 2012 at 11:44 AM, Stefan Hajnoczistefa...@gmail.com  wrote: On Thu, Mar 8, 2012 at 4:00 AM, Lucas Meneghel Rodriguesl...@redhat.com  wrote: One of our main

Re: [Qemu-devel] [RFC] Future goals for autotest and virtualization tests

2012-03-08 Thread Anthony Liguori
On 03/07/2012 10:00 PM, Lucas Meneghel Rodrigues wrote: Hi guys. For a while we have been discussing ways to make the virtualization tests written on top of autotest useful for development level testing. One of our main goals is to provide useful tools for the qemu community, since we have a

Re: [Qemu-devel] [PATCH 2/2] cache-utils.h needs stdint.h for uintptr_t

2012-03-08 Thread David Gibson
On Thu, Mar 08, 2012 at 07:10:38AM +0100, Stefan Weil wrote: Am 08.03.2012 02:09, schrieb David Gibson: cache-utils.h uses the C99 standard uintptr_t type. However, that type comes from stdint.h which is not #included before cache-utils.h in all configurations. This patch adds the necessary

[Qemu-devel] [PATCH 3/5] kvm: Add kvm_has_pit_state2 helper

2012-03-08 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com To be used for in-kernel PIT emulation. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Avi Kivity a...@redhat.com --- kvm-all.c | 10 ++ kvm-stub.c |5 + kvm.h |1 + 3 files changed, 16 insertions(+), 0

[Qemu-devel] [PATCH 2/5] i8254: Open-code timer restore

2012-03-08 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com Same as for the APIC: To enable migration between accelerated and non-accelerated models, we need to arm the channel 0 timer only inside the emulated PIT model. The common code just saves/restores that timer to the the next_transition_time field.

[Qemu-devel] [PATCH 4/5] kvm: x86: Add user space part for in-kernel i8254

2012-03-08 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com This provides the required user space stubs to enable the in-kernel i8254 emulation of KVM. The in-kernel model supports lost tick compensation according to the delay policy. This is enabled by default and can be switched off via a device property.

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

2012-03-08 Thread Luiz Capitulino
On Wed, 7 Mar 2012 06:31:31 -0800 (PST) Alain Ribière alain_ribi...@yahoo.com wrote: I ran qemu 1.0.1 and the latest SeaBIOS (from the git) with the following options : What's the git HEAD? Coincidentally, I was playing with MS-DOS 6.22 yesterday and hit an issue right during bootup. After

[Qemu-devel] [PATCH] ARM: Remove unnecessary subpage workarounds

2012-03-08 Thread Peter Maydell
In the ARM per-CPU peripherals (GIC, private timers, SCU, etc), remove workarounds for subpage memory region read/write functions being passed offsets from the start of the page rather than the start of the region. Following commit 5312bd8b3 the masking off of high bits of the address offset is

[Qemu-devel] [PATCH] hw/pxa2xx.c: Fix handling of pxa2xx_i2c variable offset within region

2012-03-08 Thread Peter Maydell
The pxa2xx I2C controller can be at an arbitrary offset within its region (this is used because one of the controllers starts at offset 0x1600 into an 0x1 sized region). The previous implementation of this included an adjustment which worked around the fact that memory region read/write

Re: [Qemu-devel] [libvirt] Qemu, libvirt, and CPU models

2012-03-08 Thread Eduardo Habkost
On Wed, Mar 07, 2012 at 04:07:06PM -0700, Eric Blake wrote: (Do we have any case of capability-querying being made using QMP before starting any actual VM, today?) Right now, we have two levels of queries - the 'qemu -help' and 'qemu -device ?' output is gathered up front (we really

Re: [Qemu-devel] [RFC] Future goals for autotest and virtualization tests

2012-03-08 Thread Lucas Meneghel Rodrigues
On 03/08/2012 10:36 AM, Anthony Liguori wrote: Virt/qemu tests: Minimal guest images - In order to make development level test possible, we need the tests to run fast. In order to do that, a set of minimal guest images is being developed and we have a

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

2012-03-08 Thread Kevin O'Connor
On Thu, Mar 08, 2012 at 10:56:01AM -0300, Luiz Capitulino wrote: On Wed, 7 Mar 2012 06:31:31 -0800 (PST) Alain Ribière alain_ribi...@yahoo.com wrote: I ran qemu 1.0.1 and the latest SeaBIOS (from the git) with the following options : What's the git HEAD? Coincidentally, I was

Re: [Qemu-devel] [RFC] Future goals for autotest and virtualization tests

2012-03-08 Thread Alon Levy
On Thu, Mar 08, 2012 at 01:00:27AM -0300, Lucas Meneghel Rodrigues wrote: [snip] https://github.com/autotest/buildroot-autotest Thanks, it was relatively easy to add qxl to this. [snip]

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

2012-03-08 Thread Daniel P. Berrange
On Thu, Mar 08, 2012 at 09:01:12AM -0500, Kevin O'Connor wrote: On Thu, Mar 08, 2012 at 10:56:01AM -0300, Luiz Capitulino wrote: On Wed, 7 Mar 2012 06:31:31 -0800 (PST) Alain Ribière alain_ribi...@yahoo.com wrote: I ran qemu 1.0.1 and the latest SeaBIOS (from the git) with the following

Re: [Qemu-devel] QAPI conversion status and async commands support

2012-03-08 Thread Paolo Bonzini
Il 08/03/2012 13:34, Kevin Wolf ha scritto: I'm not really sure about drive mirroring. Is the work already done such that we just need to talk about merging it? There are patches, but they still need review. I think it's doable for 1.1. But in any case I don't think there's any

[Qemu-devel] [PATCH 0/5] [PULL] qemu-kvm.git uq/master queue

2012-03-08 Thread Marcelo Tosatti
The following changes since commit e32605062cd62c2a958ad28a6ad7de4eeab12027: xilinx_zynq: machine model initial version (2012-03-07 02:20:19 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master Jan Kiszka (4): i8254: Factor out

Re: [Qemu-devel] QAPI conversion status and async commands support

2012-03-08 Thread Kevin Wolf
Am 08.03.2012 15:12, schrieb Paolo Bonzini: Il 08/03/2012 13:34, Kevin Wolf ha scritto: I'm not really sure about drive mirroring. Is the work already done such that we just need to talk about merging it? There are patches, but they still need review. I think it's doable for 1.1. But in

Re: [Qemu-devel] [PATCH 0/2] linux-user: Support prctl PR_GET/SET_NAME

2012-03-08 Thread Peter Maydell
Ping^2 ? -- PMM On 22 February 2012 22:55, Peter Maydell peter.mayd...@linaro.org wrote: Ping? On 3 February 2012 13:53, Peter Maydell peter.mayd...@linaro.org wrote: These patches add support for the prctl options PR_GET_NAME and PR_SET_NAME. In particular, perl 5.14 will use PR_SET_NAME

[Qemu-devel] [PATCH 5/5] kvm: fill in padding to help valgrind

2012-03-08 Thread Marcelo Tosatti
From: Michael S. Tsirkin m...@redhat.com valgrind warns about padding fields which are passed to vcpu ioctls uninitialized. This is not an error in practice because kvm ignored padding. Since the ioctls in question are off data path and the cost is zero anyway, initialize padding to 0 to suppress

[Qemu-devel] [PATCH 1/5] i8254: Factor out base class for KVM reuse

2012-03-08 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com Applying the concept used for the *PICs once again: establish a base class for the i8254 that can be used both by the current user space emulation and the upcoming KVM in-kernel version. We share most of the public interface of the i8254, specifically to

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

2012-03-08 Thread Luiz Capitulino
On Thu, 8 Mar 2012 14:09:05 + Daniel P. Berrange berra...@redhat.com wrote: On Thu, Mar 08, 2012 at 09:01:12AM -0500, Kevin O'Connor wrote: On Thu, Mar 08, 2012 at 10:56:01AM -0300, Luiz Capitulino wrote: On Wed, 7 Mar 2012 06:31:31 -0800 (PST) Alain Ribière alain_ribi...@yahoo.com

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

2012-03-08 Thread Peter Stuge
Luiz Capitulino wrote: Using latest seabios makes it go away, didn't try re-building 1.6.3.1 though. Try it, if your toolchain is not broken it should work. //Peter

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

2012-03-08 Thread Daniel P. Berrange
On Thu, Mar 08, 2012 at 11:28:25AM -0300, Luiz Capitulino wrote: On Thu, 8 Mar 2012 14:09:05 + Daniel P. Berrange berra...@redhat.com wrote: On Thu, Mar 08, 2012 at 09:01:12AM -0500, Kevin O'Connor wrote: On Thu, Mar 08, 2012 at 10:56:01AM -0300, Luiz Capitulino wrote: On Wed, 7

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

2012-03-08 Thread Luiz Capitulino
On Thu, 8 Mar 2012 14:37:47 + Daniel P. Berrange berra...@redhat.com wrote: On Thu, Mar 08, 2012 at 11:28:25AM -0300, Luiz Capitulino wrote: On Thu, 8 Mar 2012 14:09:05 + Daniel P. Berrange berra...@redhat.com wrote: On Thu, Mar 08, 2012 at 09:01:12AM -0500, Kevin O'Connor

Re: [Qemu-devel] [PATCH] ARM: Remove unnecessary subpage workarounds

2012-03-08 Thread Andreas Färber
Am 08.03.2012 14:56, schrieb Peter Maydell: In the ARM per-CPU peripherals (GIC, private timers, SCU, etc), remove workarounds for subpage memory region read/write functions being passed offsets from the start of the page rather than the start of the region. Following commit 5312bd8b3 the

Re: [Qemu-devel] [RFC] Future goals for autotest and virtualization tests

2012-03-08 Thread Anthony Liguori
On 03/08/2012 08:01 AM, Lucas Meneghel Rodrigues wrote: On 03/08/2012 10:36 AM, Anthony Liguori wrote: Virt/qemu tests: Minimal guest images - In order to make development level test possible, we need the tests to run fast. In order to do that, a set of

Re: [Qemu-devel] [RFC] Future goals for autotest and virtualization tests

2012-03-08 Thread Anthony Liguori
On 03/08/2012 08:49 AM, Ademar Reis wrote: On Thu, Mar 08, 2012 at 07:36:11AM -0600, Anthony Liguori wrote: On 03/07/2012 10:00 PM, Lucas Meneghel Rodrigues wrote: Virt/qemu tests: Minimal guest images - In order to make development level test possible, we

Re: [Qemu-devel] Add support for new image type

2012-03-08 Thread Kevin Wolf
(Sorry, missed the rest of this thread as I was expecting to be kept in the CC list) Am 01.03.2012 20:45, schrieb Kai Meyer: On 03/01/2012 08:03 AM, Kevin Wolf wrote: Am 29.02.2012 22:52, schrieb Kai Meyer: Is it possible to extend qemu to support a new image type? I have an image type that

Re: [Qemu-devel] [RFC] Future goals for autotest and virtualization tests

2012-03-08 Thread Anthony Liguori
On 03/08/2012 09:07 AM, Ademar Reis wrote: On Thu, Mar 08, 2012 at 08:56:23AM -0600, Anthony Liguori wrote: On 03/08/2012 08:49 AM, Ademar Reis wrote: On Thu, Mar 08, 2012 at 07:36:11AM -0600, Anthony Liguori wrote: On 03/07/2012 10:00 PM, Lucas Meneghel Rodrigues wrote: Virt/qemu tests:

Re: [Qemu-devel] [RFC] Future goals for autotest and virtualization tests

2012-03-08 Thread Lucas Meneghel Rodrigues
Before I forget, I'd like to ask you about this: On 03/08/2012 10:36 AM, Anthony Liguori wrote: I'm really not a fan of buildroot. Note that in order to ship binaries, full source needs to be provided in order to comply with the GPL. The FSF at least states that referring to another website for

Re: [Qemu-devel] [PATCH] PPC: Fix large page support in TCG

2012-03-08 Thread Nathan Whitehorn
On Mar 7, 2012, at 7:25 PM, David Gibson wrote: On Sat, Mar 03, 2012 at 10:39:34AM -0600, Nathan Whitehorn wrote: Fix large page support in TCG. The old code would overwrite the large page table entry with the fake 4 KB one generated here whenever the ref/change bits were updated, causing it

Re: [Qemu-devel] [PATCH] vnc: Fix packed boolean struct members

2012-03-08 Thread Stefan Hajnoczi
On Sat, Feb 25, 2012 at 1:35 PM, Stefan Weil s...@weilnetz.de wrote: This patch fixes warnings reported by splint: For variables which are packed in a single bit, a signed data type like 'int' does not make much sense. There is no obvious reason why the two values should be packed, so I

[Qemu-devel] [PATCH 06/11] libcacard: Use format specifier %u instead of %d for unsigned values

2012-03-08 Thread Stefan Hajnoczi
From: Stefan Weil s...@weilnetz.de splint reported warnings for those code statements. Signed-off-by: Stefan Weil s...@weilnetz.de Signed-off-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- libcacard/vscclient.c | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-)

[Qemu-devel] [PATCH 10/11] osdep: Remove local definition of macro offsetof

2012-03-08 Thread Stefan Hajnoczi
From: Stefan Weil s...@weilnetz.de The macro offsetof is defined in stddef.h. It is conforming to the standards C89, C99 and POSIX.1-2001 (see man page), so it is a sufficiently old standard. Therefore chances are very high that QEMU never needs a local definition of this macro. osdep.h already

[Qemu-devel] [PATCH 07/11] vnc: Add break statement

2012-03-08 Thread Stefan Hajnoczi
From: Stefan Weil s...@weilnetz.de This was not a bug, but it is not common practice to omit the break statement from the last case statement before an empty default case. Any change of the default case would introduce a bug. This was reported as a warning by splint. Signed-off-by: Stefan Weil

Re: [Qemu-devel] [RFC] Future goals for autotest and virtualization tests

2012-03-08 Thread Kevin Wolf
Am 08.03.2012 15:56, schrieb Anthony Liguori: I particularly agreed with basically everything you said on that discussion regarding test simplification (I had just joined the team back then). To me, autotest has been focusing on QE-level, leaving the developer-level test requirements out. Now

[Qemu-devel] [PATCH 11/11] configure: Quote the configure args printed in config.log

2012-03-08 Thread Stefan Hajnoczi
From: Peter Maydell peter.mayd...@linaro.org Use the same mechanism we use for printing the configure command line to config-host.mak to print it to config.log. This fixes a bug where the config.log version didn't quote arguments with spaces. Signed-off-by: Peter Maydell peter.mayd...@linaro.org

[Qemu-devel] [PATCH 08/11] Spelling fixes in comments (it's - its)

2012-03-08 Thread Stefan Hajnoczi
From: Stefan Weil s...@weilnetz.de * it's - its (fixed for all files) * dont - don't (only fixed in a line which was touched by the previous fix) * distrub - disturb (fixed in the same line) Reviewed-by: Andreas Färber afaer...@suse.de Signed-off-by: Stefan Weil s...@weilnetz.de Signed-off-by:

Re: [Qemu-devel] [PATCH 2/2] make check: Add qemu-iotests subset

2012-03-08 Thread Stefan Hajnoczi
On Thu, Mar 8, 2012 at 11:32 AM, Kevin Wolf kw...@redhat.com wrote: Run the 'quick' group from qemu-iotests during 'make check'. Signed-off-by: Kevin Wolf kw...@redhat.com ---  tests/Makefile        |    1 +  tests/qemu-iotests.sh |   18 ++ I think

Re: [Qemu-devel] [PATCH] qcow2: Add some tracing

2012-03-08 Thread Stefan Hajnoczi
On Fri, Mar 2, 2012 at 1:41 PM, Kevin Wolf kw...@redhat.com wrote: Signed-off-by: Kevin Wolf kw...@redhat.com ---  block/qcow2-cache.c   |   18 ++  block/qcow2-cluster.c |   15 ++-  block/qcow2.c         |    9 +  trace-events          |   24

[Qemu-devel] [PATCH 09/11] libcacard: Spelling and grammar fixes in documentation

2012-03-08 Thread Stefan Hajnoczi
From: Stefan Weil s...@weilnetz.de * it's - its * it's - it is (that's no fix, but makes future checks easier) * this functions - this function * replacable - replaceable * reader's - readers * logins into - logs into v2: Also replace 'aid' by 'AID' (thanks to Peter Maydell for this hint).

[Qemu-devel] Xen, mapcache: Fix the compute of the size of bucket.

2012-03-08 Thread Anthony PERARD
Because the size of a mapping is wrong when there is an offset and a size = bucket_size. Signed-off-by: Anthony PERARD anthony.per...@citrix.com --- xen-mapcache.c | 12 +++- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/xen-mapcache.c b/xen-mapcache.c index

[Qemu-devel] [PULL v2 00/11] Trivial patches for 25 February to 7 March 2012

2012-03-08 Thread Stefan Hajnoczi
There were two hickups which caused me to respin this. v2: * Drop ppc patch which Alexander Graf already has in his queue with his Signed-off-by: * Drop vnc bitfield to bool patch which triggers a compiler warning on some gccs The following changes since commit

Re: [Qemu-devel] [PATCH] vnc: Fix packed boolean struct members

2012-03-08 Thread Paolo Bonzini
Il 08/03/2012 16:26, Stefan Hajnoczi ha scritto: I had to drop this patch from the trivial patches tree, it tickles a new gcc warning. Please resend with the necessary change. I cannot reproduce it on my build host here with gcc Debian 4.6.2-12 but Anthony reports the following

Re: [Qemu-devel] [RFC] Future goals for autotest and virtualization tests

2012-03-08 Thread Anthony Liguori
On 03/08/2012 09:46 AM, Kevin Wolf wrote: Am 08.03.2012 15:56, schrieb Anthony Liguori: I particularly agreed with basically everything you said on that discussion regarding test simplification (I had just joined the team back then). To me, autotest has been focusing on QE-level, leaving the

Re: [Qemu-devel] [PATCH 2/2] make check: Add qemu-iotests subset

2012-03-08 Thread Kevin Wolf
Am 08.03.2012 16:51, schrieb Stefan Hajnoczi: On Thu, Mar 8, 2012 at 11:32 AM, Kevin Wolf kw...@redhat.com wrote: Run the 'quick' group from qemu-iotests during 'make check'. Signed-off-by: Kevin Wolf kw...@redhat.com --- tests/Makefile|1 + tests/qemu-iotests.sh | 18

Re: [Qemu-devel] [RFC] Future goals for autotest and virtualization tests

2012-03-08 Thread Anthony Liguori
On 03/08/2012 09:57 AM, Ademar Reis wrote: On Thu, Mar 08, 2012 at 04:46:09PM +0100, Kevin Wolf wrote: Am 08.03.2012 15:56, schrieb Anthony Liguori: I particularly agreed with basically everything you said on that discussion regarding test simplification (I had just joined the team back then).

  1   2   3   >