Re: [Qemu-devel] [PATCH 1.3?] multiboot: fix e801 memory map

2012-11-29 Thread Anthony Liguori
Paolo Bonzini writes: > Il 29/11/2012 20:24, Alexander Graf ha scritto: >>> > It is in hw/multiboot.c: >>> > >>> >stl_p(bootinfo + MBI_MEM_LOWER, 640); >> You want to remove that one then. > > I wasn't sure of what happens if the multiboot option ROM is old. Do we > support that to any ex

[Qemu-devel] [PATCHv5] rbd block driver fix race between aio completition and aio cancel

2012-11-29 Thread Stefan Priebe
This one fixes a race which qemu had also in iscsi block driver between cancellation and io completition. qemu_rbd_aio_cancel was not synchronously waiting for the end of the command. To archieve this it introduces a new status flag which uses -EINPROGRESS. Changes since PATCHv4: - removed unnec

Re: [Qemu-devel] [PATCHv4] rbd block driver fix race between aio completition and aio cancel

2012-11-29 Thread Stefan Priebe
Hi Paolo, Am 29.11.2012 16:23, schrieb Paolo Bonzini: +qemu_vfree(acb->bounce); This vfree is not needed, since the BH will run and do the free. new patch v5 sent. Greets, Stefan

[Qemu-devel] [PATCHv2] virtio: limit avail bytes lookahead

2012-11-29 Thread Michael S. Tsirkin
Commit 0d8d7690850eb0cf2b2b60933cf47669a6b6f18f introduced a regression in virtio-net performance because it looks into the ring aggressively while we really only care about a single packet worth of buffers. Reported as bugzilla 1066055 in launchpad. To fix, add parameters limiting lookahead, and

Re: [Qemu-devel] [PATCH] virtio: limit avail bytes lookahead

2012-11-29 Thread Michael S. Tsirkin
> I need a Signed-off-by so why don't you just go ahead and send a v2 and > I'll test that. OK I sent a v2 which is this fixup + the original patch smashed together.

Re: [Qemu-devel] [PATCH V5 2/2] Enabling IA32_TSC_ADJUST for KVM guest VM support

2012-11-29 Thread Auld, Will
Marcelo, My latest QEMU patch ([PATCH V5] target-i386: Enabling IA32_TSC_ADJUST for QEMU KVM guest VMs) seems to be OK with regards to reset. The tsc_adjust variable is being zeroed by the memset() in x86_cpu_reset(). Later code seems to write these values through kvm_put_msr() by way of cpu_s

[Qemu-devel] [PATCH v13 0/7] libqblock qemu block layer library

2012-11-29 Thread Wenchao Xia
These patches introduce libqblock API, make subdir-libqblock and make check-libqblock could build this library. Functionalities: 1 create a new image. 2 sync access of an image. 3 basic image information retrieving such as backing file. 4 detect if a sector is allocated in an image. Supported

[Qemu-devel] [PATCH v13 2/7] block export function path_has_protocol

2012-11-29 Thread Wenchao Xia
This function is needed in other module, so export it. There is already some patch on mail-list try export it, If that patch was applied, pls ignore this one. Signed-off-by: Wenchao Xia --- block.c |2 +- block.h |2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/blo

[Qemu-devel] [PATCH v13 1/7] Build system clean tests directory clearly

2012-11-29 Thread Wenchao Xia
Currently root Makefile try clean tests/tcg, hard to extend. This patch added command make check-clean, which clean all generated files used in tests. With this command root Makefile do not care tests clean method any more, it simply calls the command to do it, so any more clean script could be a

[Qemu-devel] [PATCH v13 6/7] libqblock API implement

2012-11-29 Thread Wenchao Xia
This patch contains implemention for APIs. Important APIs: 1 QBlockContext. This structure was used to retrieve errors, every thread must create one first. 2 QBlockImage. It stands for an block image object. 3 QBlockStaticInfo. It contains static information such as location, backing file,

[Qemu-devel] [PATCH v5 0/3] qemu-ga: add hook to quiesce the guest on fsfreeze-freeze/thaw

2012-11-29 Thread Tomoki Sekiyama
Hi, This is version 5 of the qemu-ga fsfreeze hook patchset. *Changes from v4: ( http://patchwork.ozlabs.org/patch/200924/ ) 1/3: Improve error messages when fsfreeze hook is not executable. Make fsfreeze-hook disabled by default, and enabled only if --fsfreeze-hook option is specifi

Re: [Qemu-devel] [PATCH v5 1/3] qemu-ga: execute hook to quiesce the guest on fsfreeze-freeze/thaw

2012-11-29 Thread Tomoki Sekiyama
To use the online disk snapshot for online-backup, application-level consistency of the snapshot image is required. However, currently the guest agent can provide only filesystem-level consistency, and the snapshot may contain dirty data, for example, incomplete transactions. This patch provides th

Re: [Qemu-devel] [PATCH v5 2/3] qemu-ga: sample fsfreeze hooks

2012-11-29 Thread Tomoki Sekiyama
Adds sample hook scripts for --fsfreeze-hook option of qemu-ga. - fsfreeze-hook : execute scripts in fsfreeze-hook.d/ - fsfreeze-hook.d.sample/mysql-flush.sh : quiesce MySQL before snapshot Signed-off-by: Tomoki Sekiyama --- docs/qemu-guest-agent/fsfreeze-hook| 33 +

Re: [Qemu-devel] [PATCH v5 3/3] [for 1.4] qemu-ga: Improve error reporting in execute_fsfreeze_hook()

2012-11-29 Thread Tomoki Sekiyama
Improve error reporting in execute_fsfreeze_hook() using ga_wait_child(). This patch depends on patchset to improve error reporting by Luiz Capitulino, especially on http://patchwork.ozlabs.org/patch/202208/ . Signed-off-by: Tomoki Sekiyama --- qga/commands-posix.c | 23 +-

[Qemu-devel] [PATCH v13 4/7] libqblock build system

2012-11-29 Thread Wenchao Xia
Libqblock was placed in new directory ./libqblock, libtool will build dynamic library there, source files of block layer remains in ./block. So block related source code will generate 3 sets of binary, first is old ones used in qemu, second and third are non PIC and PIC ones in ./libqblock. GCC

[Qemu-devel] [PATCH v13 7/7] libqblock test example

2012-11-29 Thread Wenchao Xia
In this example, first it will create some qcow2 images, then try get information including backing file relationship, then it will do sync IO on the image. v11: Use only gtester option -k, to avoid silent fail for segment fault. Little change according to API. v12: Little change accordin

[Qemu-devel] [PATCH v13 5/7] libqblock API design and type defines

2012-11-29 Thread Wenchao Xia
Public API design header files: libqblock.h, libqblock-error.h. Public type define header files: libqblock-types.h. Private internal used header files: libqblock-internal, libqblock-aio.h. For ABI some reserved bytes are used in structure defines. v11: Moved API design into this patch.

[Qemu-devel] [PATCH v13 3/7] stubs add set_fd_handler and signalfd_available

2012-11-29 Thread Wenchao Xia
These functions are needed by libqblock, so add them into stubs. Signed-off-by: Wenchao Xia --- stubs/Makefile.objs|1 + stubs/set-fd-handler.c |8 stubs/signalfd.c |7 +++ 3 files changed, 16 insertions(+), 0 deletions(-) create mode 100644 stubs/signalfd.c

Re: [Qemu-devel] [PATCH] net: Allow specifying ifname for qemu-bridge-helper

2012-11-29 Thread Mike Lovell
On 10/12/2012 12:49 AM, Mike Lovell wrote: This makes a few changes to allow ifname to be specified when using qemu-bridge-helper with both the bridge and tap network interfaces. It adds the --ifname option to qemu-bridge-helper, removes the restriction that ifname cannot be specified with helper

[Qemu-devel] [PATCH] Modified OpenRisc fpu exception

2012-11-29 Thread Feng Gao
Add OpenRisc fpu excepiton. When an exception raised, CPU can save right PC. Signed-off-by: Feng Gao --- target-openrisc/exception.c| 31 +-- target-openrisc/exception.h|8 -- target-openrisc/exception_helper.c |2 +- target-openrisc/fpu_helper.c

[Qemu-devel] lsi scsi driver is broken

2012-11-29 Thread Dietmar Maurer
The lsi driver simply hangs at startup. Try the following to reproduce: # ./x86_64-softmmu/qemu-system-x86_64 -monitor stdio -device lsi The monitor is blocked, and VM shows black screen. But it works perfectly when I use 'megasas' instead of 'lsi'. And ideas?

[Qemu-devel] OBSCURE technical question for qemu devs....

2012-11-29 Thread Alan Jacobs
Hello: I am Alan Jacobs in Green Bay Wisconsin USA ( north of Chicago). I have a difficult emulation question regarding interrupt driven bidirectional parallel port communication on a Celeron 220 Intel processor with 2GB RAM ( but no hardware KVM extension I can find ), but with bios option to b

[Qemu-devel] slow HD performance in mingw

2012-11-29 Thread Roy Tam
Hello all, I noticed that QEMU(both 1.2.1 and git head) acts very slow when accessing HD. I wonder if it is a fault in my build environment? Spec: Windows XP SP3 gcc-4.6.2 binutils-2.22.51.20120114 SDL-1.2.14 glib-2.28.8 (configure line: CFLAGS="-Os -I/mingw/include" LDFLAGS=-s ./configure --pref

<    1   2