Re: [Qemu-devel] How to fix NEON of cortext-a9 on qemu

2010-09-21 Thread Juha.Riihimaki
On Sep 21, 2010, at 19:22, ext Pham Van Thiet wrote: > example for it please send it for me. Or if you have a patch file for NEON > instruction on qemu please send it for me? You could have a try with the MeeGo QEMU branch (meego.gitorious.org/qemu-maemo). We have a bunch of ARM patches on top

[Qemu-devel] [Bug 556560] Re: -S doesn't freeze CPU as expected

2010-09-21 Thread Matthew Davey
Actually you have read that incorrectly, the "-boot" was part of the argument to the "-kernel". Their command line states "~/Embedded/working/versatilepb/u-boot" which was broken over the end of line: qemu-system-arm -nographic -m 256 -M versatileab -kernel ~/Embedded/working/versatilepb/u-boot -s

[Qemu-devel] [PATCH] [V2] Copy snapshots out of QCOW2 disk

2010-09-21 Thread disheng . su
From: edison In order to backup snapshots, created from QCOW2 iamge, we want to copy snapshots out of QCOW2 disk to a seperate storage. The following patch adds a new option in "qemu-img": qemu-img convert -f qcow2 -O qcow2 -s snapshot_name src_img bck_img. Right now, it only supports to copy t

Re: [Qemu-devel] ACPI error when mapping a 2GB BAR w/ 4GB of RAM

2010-09-21 Thread Robert Hancock
On 09/19/2010 11:15 AM, Avi Kivity wrote: On 09/17/2010 10:00 PM, Cam Macdonell wrote: After fixing the resource_size_t return value with pci_resource_alignment, I see one other strange behaviour only when using 4GB of RAM and a 2GB BAR. I haven't found any other combination of RAM/BAR size that

Re: [Qemu-devel] [PULL 00/20] Block patches

2010-09-21 Thread Anthony Liguori
On 09/21/2010 10:21 AM, Kevin Wolf wrote: The following changes since commit a287916c712b0c57a97cd35c663c5e7ba061bc7e: Merge remote branch 'mst/for_anthony' into staging (2010-09-20 13:22:20 -0500) are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony

[Qemu-devel] Re: [HaikuPorts-devs] [FYI 7/8] qemu_malloc: Use areas on Haiku for sizes > 1 MiB

2010-09-21 Thread Andreas Färber
Hi, Am 20.09.2010 um 14:26 schrieb Oliver Tappe: On 2010-09-20 at 00:50:49 [+0200], Andreas Färber > wrote: Works around a calloc() SEGV in Haiku's libroot. Cf. http://dev.haiku-os.org/ticket/6637 Ported to HEAD based on a patch by Michael "mmlr" Lotz. Also consider the limit when reallocating

[Qemu-devel] Re: Caching modes

2010-09-21 Thread Anthony Liguori
On 09/21/2010 03:57 PM, Christoph Hellwig wrote: On Tue, Sep 21, 2010 at 10:13:01AM -0500, Anthony Liguori wrote: 1) make virtual WC guest controllable. If a guest enables WC,&= ~O_DSYNC. If it disables WC, |= O_DSYNC. Obviously, we can let a user specify the virtual WC mode but it has to

[Qemu-devel] Re: Caching modes

2010-09-21 Thread Christoph Hellwig
On Tue, Sep 21, 2010 at 10:13:01AM -0500, Anthony Liguori wrote: > 1) make virtual WC guest controllable. If a guest enables WC, &= > ~O_DSYNC. If it disables WC, |= O_DSYNC. Obviously, we can let a user > specify the virtual WC mode but it has to be changable during live > migration. I have

[Qemu-devel] Re: [HaikuPorts-devs] [PATCH 0/8] Add Haiku host support

2010-09-21 Thread Andreas Färber
Am 20.09.2010 um 21:04 schrieb Ingo Weinhold: On 2010-09-20 at 00:50:42 [+0200], Andreas Färber > wrote: The following patch series together with qemu_madvise() allows to build and run QEMU on Haiku, using GCC 4.x. Patches 1-5 add support for Haiku hosts to build ppc-softmmu. They are based o

[Qemu-devel] [PATCH] Move macros GCC_ATTR and GCC_FMT_ATTR to common header file

2010-09-21 Thread Stefan Weil
By moving the definition of GCC_ATTR and GCC_FMT_ATTR from audio_int.h to qemu-common.h these macros are now generally available for further patches which add the gcc format attribute. Newer gcc versions support format gnu_printf which is better suited for use in QEMU than format printf (QEMU alwa

[Qemu-devel] Re: [PATCH 2/2] mips_malta: Fix format strings

2010-09-21 Thread Blue Swirl
Thanks, applied. On Mon, Sep 20, 2010 at 8:18 PM, Stefan Weil wrote: > Fix two compiler warnings (when format attribute is applied). > > Cc: Aurelien Jarno > Cc: Blue Swirl > Signed-off-by: Stefan Weil > --- >  hw/mips_malta.c |    4 ++-- >  1 files changed, 2 insertions(+), 2 deletions(-) > >

[Qemu-devel] Re: [PATCH 1/2] mips_fulong2e: Fix format strings

2010-09-21 Thread Blue Swirl
Thanks, applied. On Mon, Sep 20, 2010 at 8:18 PM, Stefan Weil wrote: > Fix two compiler warnings (when format attribute is applied) > and one error (missing %) in format strings. > > Cc: Aurelien Jarno > Cc: Blue Swirl > Signed-off-by: Stefan Weil > --- >  hw/mips_fulong2e.c |    6 +++--- >  1

Re: [Qemu-devel] [PATCH] trace: Fix user emulator dependency on trace objects

2010-09-21 Thread Blue Swirl
Thanks, applied. On Sun, Sep 19, 2010 at 9:28 AM, Andreas Färber wrote: > Am 12.09.2010 um 17:21 schrieb Andreas Färber: > >> On a clean build, after generating trace.h, make would recurse into >> *-*-user >> without a clue how to build ../trace.o (added to $(obj-y) in >> Makefile.target) >> sinc

[Qemu-devel] Re: RFC: Monitor high-level design

2010-09-21 Thread Anthony Liguori
On 09/21/2010 01:46 PM, Luiz Capitulino wrote: Hi there, I was working on a detailed writeup about monitor's internals so that I could get some guidance regarding monitor's internal design, but after today's call I realized that we should discuss the general design first. I think we have two op

Re: [Qemu-devel] Win2k host problem with {get,free}{addr,name}info()

2010-09-21 Thread Anthony Liguori
On 09/21/2010 01:32 PM, Blue Swirl wrote: On Mon, Sep 20, 2010 at 8:21 PM, Anthony Liguori wrote: On 09/20/2010 03:03 PM, Blue Swirl wrote: On Mon, Sep 20, 2010 at 6:41 PM, Blue Swirlwrote: On Mon, Sep 20, 2010 at 6:26 PM, Anthony Liguori wrote: On 09/19/2

[Qemu-devel] RFC: Monitor high-level design

2010-09-21 Thread Luiz Capitulino
Hi there, I was working on a detailed writeup about monitor's internals so that I could get some guidance regarding monitor's internal design, but after today's call I realized that we should discuss the general design first. I think we have two options: the first (and better known) is to make HM

Re: [Qemu-devel] Win2k host problem with {get,free}{addr,name}info()

2010-09-21 Thread Blue Swirl
On Mon, Sep 20, 2010 at 8:21 PM, Anthony Liguori wrote: > On 09/20/2010 03:03 PM, Blue Swirl wrote: >> >> On Mon, Sep 20, 2010 at 6:41 PM, Blue Swirl  wrote: >> >>> >>> On Mon, Sep 20, 2010 at 6:26 PM, Anthony Liguori >>>  wrote: >>> On 09/19/2010 11:16 AM, Blue Swirl wrote: > >

[Qemu-devel] Re: KVM call minutes for Sept 21

2010-09-21 Thread Anthony Liguori
On 09/21/2010 01:05 PM, Chris Wright wrote: Nested VMX - looking for forward progress and better collaboration between the Intel and IBM teams - needs more review (not a new issue) - use cases - work todo - merge baseline patch - looks pretty good - review is finding mostly small

[Qemu-devel] Re: [PATCH] Move macros GCC_ATTR and GCC_FMT_ATTR to common header file

2010-09-21 Thread Blue Swirl
On Tue, Sep 21, 2010 at 5:48 PM, Stefan Weil wrote: > By moving the definition of GCC_ATTR and GCC_FMT_ATTR > from audio_int.h to qemu-common.h these macros are > now generally available for further patches which add > the gcc format attribute. > > Newer gcc versions support format gnu_printf whic

[Qemu-devel] [PATCH] Move macros GCC_ATTR and GCC_FMT_ATTR to common header file

2010-09-21 Thread Stefan Weil
By moving the definition of GCC_ATTR and GCC_FMT_ATTR from audio_int.h to qemu-common.h these macros are now generally available for further patches which add the gcc format attribute. Newer gcc versions support format gnu_printf which is better suited for use in QEMU than format printf (QEMU alwa

[Qemu-devel] KVM call minutes for Sept 21

2010-09-21 Thread Chris Wright
Nested VMX - looking for forward progress and better collaboration between the Intel and IBM teams - needs more review (not a new issue) - use cases - work todo - merge baseline patch - looks pretty good - review is finding mostly small things at this point - need some correctness v

[Qemu-devel] Re: [PATCH] Move macros GCC_ATTR and GCC_FMT_ATTR to common header file

2010-09-21 Thread Stefan Weil
Please ignore this patch. It's wrong (= instead of ==). I'll send a fixed version. Sorry, Stefan Am 20.09.2010 23:05, schrieb Stefan Weil: By moving the definition of GCC_ATTR and GCC_FMT_ATTR from audio_int.h to qemu-common.h these macros are now generally available for further patches which a

[Qemu-devel] [PATCH REPOST 1/3] Add new vgabios binaries to blobs list.

2010-09-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- Makefile |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f95cc2f..867e038 100644 --- a/Makefile +++ b/Makefile @@ -154,8 +154,9 @@ ar de en-us fi fr-be hr it lv nl pl ru th \

[Qemu-devel] [VGABIOS PATCH 10/11] Add qemu vmware vga pci bios

2010-09-21 Thread Gerd Hoffmann
Add PCI vgabios for the qemu vmeare vga (15ad:0405). Name it vgabios-vmware.bin. Signed-off-by: Gerd Hoffmann --- Makefile | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 58f064e..2a093e8 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +1

[Qemu-devel] [VGABIOS PATCH 01/11] - use VBE LFB address from PCI base address if present (rewrite of the cirrus specific function in main vgabios code) - removed unnecessary spaces

2010-09-21 Thread Gerd Hoffmann
From: Volker Ruppert Signed-off-by: Gerd Hoffmann --- clext.c | 51 ++- vbe.c | 59 --- vgabios.c | 58 ++ 3 files changed

[Qemu-devel] [PATCH REPOST 3/3] switch vmware_vga to pci vgabios

2010-09-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/vmware_vga.c |7 +-- 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c index 12bff48..682f287 100644 --- a/hw/vmware_vga.c +++ b/hw/vmware_vga.c @@ -114,14 +114,12 @@ struct pci_vmsvga_state_s { # define

[Qemu-devel] [PATCH REPOST 2/3] switch stdvga to pci vgabios

2010-09-21 Thread Gerd Hoffmann
Make stdvga provide the new vgabios binary (with pcibios support) using the PCI option rom bar. Seabios will happily load it from there. The new vga bios will also lookup the framebuffer address in pci config space, so the magic bochs lfb @ 0xe000 is not needed any more -> zap it. Without th

[Qemu-devel] [PATCH REPOST 0/3] use new vgabios.

2010-09-21 Thread Gerd Hoffmann
Hi, This patch series will put the new vgabios (patches just re-posted) into use for stdvga and vmware_vga. For obvious reasons it depends on the new vgabios binaries being present, i.e. vgabios patches being committed to vgabios.git, subtree being updated and vgabios binaries being recompiled

[Qemu-devel] [VGABIOS PATCH 07/11] Add defines for PCI IDs.

2010-09-21 Thread Gerd Hoffmann
This patch allows to set PCI vendor and device IDs using defines (PCI_VID and PCI_DID). Use it for vgabios.bin. Signed-off-by: Gerd Hoffmann --- Makefile |4 ++-- vbe.c |6 +- vgabios.c |5 + 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Makefile b/Mak

[Qemu-devel] [VGABIOS PATCH 11/11] Add qemu qxl vga pci bios

2010-09-21 Thread Gerd Hoffmann
Add PCI vgabios for the qemu qxl vga (1b36:0100). Name it vgabios-qxl.bin. Signed-off-by: Gerd Hoffmann --- Makefile | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 2a093e8..578721a 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@

[Qemu-devel] [VGABIOS PATCH 00/11] vgabios update

2010-09-21 Thread Gerd Hoffmann
Hi, This patch series updates the vgabios. The first five patches are taken from the vgabios cvs and update the vgabios.git tree @ qemu.org to vgabios release 0.6c. As this update depends on a newer bochs API it fully works on qemu 0.13 and master only. When using this vgabios version on qemu

[Qemu-devel] [VGABIOS PATCH 03/11] - preparing for release 0.6c

2010-09-21 Thread Gerd Hoffmann
From: Volker Ruppert Signed-off-by: Gerd Hoffmann --- ChangeLog | 35 +++ README|6 ++ 2 files changed, 41 insertions(+), 0 deletions(-) diff --git a/ChangeLog b/ChangeLog index 75be5bd..35bf00a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,38

[Qemu-devel] [VGABIOS PATCH 09/11] update pci_get_lfb_addr for vmware vga

2010-09-21 Thread Gerd Hoffmann
vmware vga has the framebuffer at pci region 1 not 0. This patch makes pci_get_lfb_addr check region 1 too. It also gives names to the numbered labels to make the code more readable. Signed-off-by: Gerd Hoffmann --- vgabios.c | 23 ++- 1 files changed, 14 insertions(+), 9

[Qemu-devel] [VGABIOS PATCH 06/11] Makefile cleanup

2010-09-21 Thread Gerd Hoffmann
Use a single rule for building bios binaries. Use target specific variables to set compile flags. This makes it more obvious what the differences between the versions are. It also makes it easier to add new bios binaries with slightly different settings. Signed-off-by: Gerd Hoffmann --- Makefi

[Qemu-devel] [VGABIOS PATCH 05/11] - updates for release 0.6c

2010-09-21 Thread Gerd Hoffmann
From: Volker Ruppert Signed-off-by: Gerd Hoffmann --- ChangeLog | 12 README|3 ++- 2 files changed, 14 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index 35bf00a..dbaed5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2009-04-07 20:18 vru

[Qemu-devel] [VGABIOS PATCH 04/11] - biosfn_write_teletype: fixed attribute when scrolling in text mode

2010-09-21 Thread Gerd Hoffmann
From: Volker Ruppert Signed-off-by: Gerd Hoffmann --- vgabios.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/vgabios.c b/vgabios.c index fbc3588..ea3aae8 100644 --- a/vgabios.c +++ b/vgabios.c @@ -2039,7 +2039,9 @@ Bit8u car;Bit8u page;Bit8u attr;Bit8u flag;

[Qemu-devel] [VGABIOS PATCH 02/11] - added support for a lot more non-standard VBE modes (e.g. widescreen modes) - requires latest Bochs VBE code (16 MB video memory, VBE_DISPI_ID5, VRAM size in 64k p

2010-09-21 Thread Gerd Hoffmann
From: Volker Ruppert Signed-off-by: Gerd Hoffmann --- vbe.c | 31 ++-- vbe.h | 70 -- vbetables-gen.c | 43 + 3 files changed, 91 insertions(+), 53 deletions(-) di

[Qemu-devel] [VGABIOS PATCH 08/11] Add qemu stdvga pci bios

2010-09-21 Thread Gerd Hoffmann
Add PCI vgabios for the qemu standard vga (1234:). Name it vgabios-stdvga.bin. Signed-off-by: Gerd Hoffmann --- Makefile | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index d440b93..58f064e 100644 --- a/Makefile +++ b/Makefile @@ -14,12

[Qemu-devel] [PATCH v6 08/10] spice: add mouse

2010-09-21 Thread Gerd Hoffmann
Open mouse channel. Now you can move the guests mouse pointer. No tablet / absolute positioning (yet) though. Signed-off-by: Gerd Hoffmann --- ui/spice-input.c | 52 1 files changed, 52 insertions(+), 0 deletions(-) diff --git a/ui/spice-i

[Qemu-devel] [PATCH v6 09/10] spice: simple display

2010-09-21 Thread Gerd Hoffmann
With that patch applied you'll actually see the guests screen in the spice client. This does *not* bring qxl and full spice support though. This is basically the qxl vga mode made more generic, so it plays together with any qemu-emulated gfx card. You can display stdvga or cirrus via spice client

[Qemu-devel] [PATCH v6 01/10] Use display types for local display only.

2010-09-21 Thread Gerd Hoffmann
This patch drops DT_VNC. The display types are only used to select select the local display (i.e. curses, sdl, coca, ...). Remote displays (for now only vnc, spice will follow) can be enabled independently. Signed-off-by: Gerd Hoffmann --- sysemu.h |1 - vl.c | 24 +--

[Qemu-devel] [PATCH v6 02/10] Use machine_init() to register virtfs config options.

2010-09-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- fsdev/qemu-fsdev.c |9 + vl.c |5 - 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/fsdev/qemu-fsdev.c b/fsdev/qemu-fsdev.c index ad69b0e..280b8f5 100644 --- a/fsdev/qemu-fsdev.c +++ b/fsdev/qemu-fsdev.c @@ -16,6 +

[Qemu-devel] [PATCH v6 10/10] spice: add tablet support

2010-09-21 Thread Gerd Hoffmann
Add support for the spice tablet interface. The tablet interface will be registered (and then used by the spice client) as soon as a absolute pointing device is available and used by the guest, i.e. you'll have to configure your guest with '-usbdevice tablet'. Signed-off-by: Gerd Hoffmann --- u

[Qemu-devel] [PATCH v6 05/10] add spice into the configure file

2010-09-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- configure | 35 +++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 66b1d0b..695a632 100755 --- a/configure +++ b/configure @@ -325,6 +325,7 @@ user_pie="no" zero_malloc="" trace_back

[Qemu-devel] [PATCH v6 06/10] spice: core bits

2010-09-21 Thread Gerd Hoffmann
Add -spice command line switch. Has support setting passwd and port for now. With this patch applied the spice client can successfully connect to qemu. You can't do anything useful yet though. Signed-off-by: Gerd Hoffmann --- Makefile.objs |2 + qemu-config.c | 18 + qemu-config

[Qemu-devel] [PATCH v6 07/10] spice: add keyboard

2010-09-21 Thread Gerd Hoffmann
Open keyboard channel. Now you can type into the spice client and the keyboard events are sent to your guest. You'll need some other display like vnc to actually see the guest responding to them though. Signed-off-by: Gerd Hoffmann --- Makefile.objs|2 +- ui/qemu-spice.h |1 + ui/

[Qemu-devel] [PATCH v6 03/10] add pflib: PixelFormat conversion library.

2010-09-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- Makefile.objs |1 + pflib.c | 213 + pflib.h | 20 ++ 3 files changed, 234 insertions(+), 0 deletions(-) create mode 100644 pflib.c create mode 100644 pflib.h diff --git a/Makefile.

[Qemu-devel] [PATCH v6 04/10] configure: add logging

2010-09-21 Thread Gerd Hoffmann
Write compile commands and messages to config.log. Useful for debugging configure. Signed-off-by: Gerd Hoffmann --- configure |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 3bfc5e9..66b1d0b 100755 --- a/configure +++ b/configure @@ -16,

[Qemu-devel] [PATCH v6 00/10] initial spice support.

2010-09-21 Thread Gerd Hoffmann
Hi, Here comes v6 of the iniial spice support patch series which is largely a repost of v5. * Detect spice in configure, Makefile windup. * Support for keyboard, mouse and tablet. * Support for simple display output (works as DisplayChangeListener, plays with any gfx card, sends simple dr

[Qemu-devel] How to fix NEON of cortext-a9 on qemu

2010-09-21 Thread Pham Van Thiet
Hello everybody, Some days ago, I read a topic about "QEMU state of ARM NEON support" from address: http://comments.gmane.org/gmane.comp.emulators.qemu/65999 I dowloaded test file anh run it on QEMU for cortex-a8 because the reference test file is written for cortex-a8 and I also listed some ins

[Qemu-devel] [PATCH 03/20] vvfat: Use cache=unsafe

2010-09-21 Thread Kevin Wolf
From: Kevin Wolf The qcow file used for write support in vvfat is a temporary file, so we can use cache=unsafe there. Without this, write support is just too slow to be of any use. Signed-off-by: Kevin Wolf --- block/vvfat.c | 14 ++ 1 files changed, 10 insertions(+), 4 deletions

[Qemu-devel] kvm networking todo wiki

2010-09-21 Thread Michael S. Tsirkin
I've put up a wiki page with a kvm networking todo list, mainly to avoid effort duplication, but also in the hope to draw attention to what I think we should try addressing in KVM: http://www.linux-kvm.org/page/NetworkingTodo This page could cover all networking related activity in KVM, currently

[Qemu-devel] [PATCH 17/20] qcow2: Avoid bounce buffers for AIO write requests

2010-09-21 Thread Kevin Wolf
qcow2 used to use bounce buffers for any AIO requests. This does not only imply unnecessary copying, but also unbounded allocations which should be avoided. This patch removes bounce buffers from the normal AIO write path. Encrypted images continue to use a bounce buffer, however with constant siz

[Qemu-devel] [PATCH 18/20] scsi-generic: add missing reset handler

2010-09-21 Thread Kevin Wolf
From: Bernhard Kohl Ensure that pending requests of a SCSI generic device are purged on system reset. This also avoids calling a NULL function in lsi53c895a. The lsi code was recently changed to call the .qdev.reset function. Signed-off-by: Bernhard Kohl Signed-off-by: Kevin Wolf --- hw/scsi-

[Qemu-devel] [PULL 00/20] Block patches

2010-09-21 Thread Kevin Wolf
The following changes since commit a287916c712b0c57a97cd35c663c5e7ba061bc7e: Merge remote branch 'mst/for_anthony' into staging (2010-09-20 13:22:20 -0500) are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony Bernhard Kohl (2): scsi-generic: add missing

Re: [Qemu-devel] Re: [PATCH] new parameter boot=on|off for "-net nic" and "-device" NIC devices

2010-09-21 Thread Michael S. Tsirkin
On Tue, Sep 21, 2010 at 10:16:29AM -0500, Anthony Liguori wrote: > On 09/19/2010 11:07 AM, Michael S. Tsirkin wrote: > >On Tue, Sep 14, 2010 at 05:46:55PM +0200, Bernhard Kohl wrote: > >>This patch was motivated by the following use case: In our system > >>the VMs usually have 4 NICs, any combinati

[Qemu-devel] [PATCH 09/20] qcow2: Move sync out of update_refcount

2010-09-21 Thread Kevin Wolf
Note that the flush is omitted intentionally in qcow2_free_clusters. If anything, we can leak clusters here if we lose the writes. Signed-off-by: Kevin Wolf --- block/qcow2-refcount.c | 13 +++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/block/qcow2-refcount.c b/b

[Qemu-devel] [PATCH 15/20] cutils: qemu_iovec_copy and qemu_iovec_memset

2010-09-21 Thread Kevin Wolf
This adds two functions that work on QEMUIOVectors and will be used by the next qcow2 patches. Signed-off-by: Kevin Wolf --- cutils.c | 50 +- qemu-common.h |3 +++ 2 files changed, 44 insertions(+), 9 deletions(-) diff --git a/cutils.c

[Qemu-devel] [PATCH 14/20] ide: propagate the required alignment

2010-09-21 Thread Kevin Wolf
From: Christoph Hellwig IDE is a bit ugly in this respect. For one it doesn't really keep track of a sector size - most of the protocol is in units of 512 bytes, and we assume 2048 bytes for CDROMs which is correct most of the time. Second IDE allocates an I/O buffer long before we know if we'r

[Qemu-devel] [PATCH 12/20] virtio-blk: propagate the required alignment

2010-09-21 Thread Kevin Wolf
From: Christoph Hellwig Signed-off-by: Christoph Hellwig Signed-off-by: Kevin Wolf --- hw/virtio-blk.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index bd6bbe6..a1df26d 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -540,6

[Qemu-devel] [PATCH 08/20] qcow2: Move sync out of write_refcount_block_entries

2010-09-21 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- block/qcow2-refcount.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index 4c19e7e..7dc75d1 100644 --- a/block/qcow2-refcount.c +++ b/block/qcow2-refcount.c @@ -444,7 +444,7 @@ static int w

[Qemu-devel] [PATCH 16/20] qcow2: Avoid bounce buffers for AIO read requests

2010-09-21 Thread Kevin Wolf
qcow2 used to use bounce buffers for any AIO requests. This does not only imply unnecessary copying, but also unbounded allocations which should be avoided. This patch removes bounce buffers from the normal AIO read path, and constrains them to a constant size for encrypted images. Signed-off-by:

[Qemu-devel] [PATCH 20/20] blkverify: Add block driver for verifying I/O

2010-09-21 Thread Kevin Wolf
From: Stefan Hajnoczi The blkverify block driver makes investigating image format data corruption much easier. A raw image initialized with the same contents as the test image (e.g. qcow2 file) must be provided. The raw image mirrors read/write operations and is used to verify that data read fr

[Qemu-devel] [PATCH 13/20] scsi-disk: propagate the required alignment

2010-09-21 Thread Kevin Wolf
From: Christoph Hellwig Signed-off-by: Christoph Hellwig Signed-off-by: Kevin Wolf --- hw/scsi-disk.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index ee20e8f..9628b39 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -1178,6 +117

[Qemu-devel] [PATCH 07/20] nbd: correctly manage default port

2010-09-21 Thread Kevin Wolf
From: Laurent Vivier block/nbd.c: use default port number when none is specified qemu-nbd.c: use IANA-assigned port number: 10809 Signed-off-by: Laurent Vivier Signed-off-by: Kevin Wolf --- block/nbd.c |2 -- qemu-nbd.c |6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) di

[Qemu-devel] [PATCH 04/20] use qemu_blockalign consistently

2010-09-21 Thread Kevin Wolf
From: Christoph Hellwig Use qemu_blockalign for all allocations in the block layer. This allows increasing the required alignment, which is need to support O_DIRECT on devices with large block sizes. Signed-off-by: Christoph Hellwig Signed-off-by: Kevin Wolf --- hw/scsi-disk.c |9 +++

[Qemu-devel] [PATCH 19/20] scsi_bus: fix length and xfer_mode for RESERVE and RELEASE commands

2010-09-21 Thread Kevin Wolf
From: Bernhard Kohl For the RESERVE and RELEASE commands the length must be zero and xfer_mode must be SCSI_XFER_NONE. Signed-off-by: Bernhard Kohl Signed-off-by: Kevin Wolf --- hw/scsi-bus.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/scsi-bus.c b/hw/scsi-bu

[Qemu-devel] [PATCH 11/20] qcow2: Get rid of additional sync on COW

2010-09-21 Thread Kevin Wolf
We always have a sync for the refcount update when a new cluster is allocated. If we move this past the COW, we can save an additional sync. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/block/qcow2-cluster.c

[Qemu-devel] [PATCH 02/20] vvfat: Fix double free for opening the image rw

2010-09-21 Thread Kevin Wolf
From: Kevin Wolf Allocation and deallocation of bs->opaque is not in the control of a block driver. Therefore it should not set bs->opaque to a data structure used by another bs, or closing the image will lead to a double free. Signed-off-by: Kevin Wolf --- block/vvfat.c |7 --- 1 file

[Qemu-devel] [PATCH 10/20] qcow2: Move sync out of qcow2_alloc_clusters

2010-09-21 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c |3 +++ block/qcow2-refcount.c |4 ++-- block/qcow2-snapshot.c |2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index f562b16..818c0db 100644 --- a/block/qcow2-clust

[Qemu-devel] [PATCH 06/20] Improve qemu-nbd performance by 4400 %

2010-09-21 Thread Kevin Wolf
From: Laurent Vivier This patch allows to reduce the boot time from an NBD server from 225 seconds to 5 seconds (time between the "boot cd:0" and the kernel init) for the following command lines: ./qemu-nbd -t ../ISO/debian-500-powerpc-netinst.iso and ./ppc-softmmu/qemu-system-ppc -cdrom nbd:loc

[Qemu-devel] [PATCH 05/20] raw-posix: handle > 512 byte alignment correctly

2010-09-21 Thread Kevin Wolf
From: Christoph Hellwig Replace the hardcoded handling of 512 byte alignment with bs->buffer_alignment to handle larger sector size devices correctly. Note that we can not rely on it to be initialize in bdrv_open, so deal with the worst case there. Signed-off-by: Christoph Hellwig Signed-off-b

[Qemu-devel] [PATCH 01/20] vvfat: Fix segfault on write to read-only disk

2010-09-21 Thread Kevin Wolf
From: Kevin Wolf vvfat tries to set the readonly flag in its open function, but nowadays this is overwritted with the readonly=... command line option. Check in bdrv_write if the vvfat was opened read-only and return an error in this case. Without this check, vvfat tries to access the qcow bs, w

Re: [Qemu-devel] Re: [PATCH] new parameter boot=on|off for "-net nic" and "-device" NIC devices

2010-09-21 Thread Anthony Liguori
On 09/21/2010 09:18 AM, Bernhard Kohl wrote: Am 19.09.2010 18:07, schrieb ext Michael S. Tsirkin: On Tue, Sep 14, 2010 at 05:46:55PM +0200, Bernhard Kohl wrote: > This patch was motivated by the following use case: In our system > the VMs usually have 4 NICs, any combination of virtio-net-pci

[Qemu-devel] Re: Caching modes

2010-09-21 Thread Anthony Liguori
On 09/21/2010 09:26 AM, Christoph Hellwig wrote: On Mon, Sep 20, 2010 at 07:18:14PM -0500, Anthony Liguori wrote: O_DIRECT alone to a pre-allocated file on a normal file system should result in the data being visible without any additional metadata transactions. Anthony, for the third

Re: [Qemu-devel] Re: [PATCH] new parameter boot=on|off for "-net nic" and "-device" NIC devices

2010-09-21 Thread Anthony Liguori
On 09/19/2010 11:07 AM, Michael S. Tsirkin wrote: On Tue, Sep 14, 2010 at 05:46:55PM +0200, Bernhard Kohl wrote: This patch was motivated by the following use case: In our system the VMs usually have 4 NICs, any combination of virtio-net-pci and pci-assign NIC devices. The VMs boot via gPXE

[Qemu-devel] Re: [PATCH] new parameter boot=on|off for "-net nic" and "-device" NIC devices

2010-09-21 Thread Michael S. Tsirkin
On Tue, Sep 21, 2010 at 04:18:56PM +0200, Bernhard Kohl wrote: > Am 19.09.2010 18:07, schrieb ext Michael S. Tsirkin: > >On Tue, Sep 14, 2010 at 05:46:55PM +0200, Bernhard Kohl wrote: > >>> This patch was motivated by the following use case: In our system > >>> the VMs usually have 4 NICs, any co

[Qemu-devel] [PATCH v5] blkverify: Add block driver for verifying I/O

2010-09-21 Thread Stefan Hajnoczi
The blkverify block driver makes investigating image format data corruption much easier. A raw image initialized with the same contents as the test image (e.g. qcow2 file) must be provided. The raw image mirrors read/write operations and is used to verify that data read from the test image is cor

Re: [Qemu-devel] Re: [PATCH v4] blkverify: Add block driver for verifying I/O

2010-09-21 Thread Stefan Hajnoczi
On Tue, Sep 21, 2010 at 3:26 PM, Kevin Wolf wrote: > Am 21.09.2010 14:44, schrieb Stefan Hajnoczi: >> The blkverify block driver makes investigating image format data >> corruption much easier.  A raw image initialized with the same contents >> as the test image (e.g. qcow2 file) must be provided.

[Qemu-devel] Re: Caching modes

2010-09-21 Thread Christoph Hellwig
On Mon, Sep 20, 2010 at 07:18:14PM -0500, Anthony Liguori wrote: > O_DIRECT alone to a pre-allocated file on a normal file system should > result in the data being visible without any additional metadata > transactions. Anthony, for the third time: no. O_DIRECT is a non-portable extension in Li

[Qemu-devel] Re: [PATCH v4] blkverify: Add block driver for verifying I/O

2010-09-21 Thread Kevin Wolf
Am 21.09.2010 14:44, schrieb Stefan Hajnoczi: > The blkverify block driver makes investigating image format data > corruption much easier. A raw image initialized with the same contents > as the test image (e.g. qcow2 file) must be provided. The raw image > mirrors read/write operations and is us

[Qemu-devel] Re: [PATCH] new parameter boot=on|off for "-net nic" and "-device" NIC devices

2010-09-21 Thread Bernhard Kohl
Am 19.09.2010 18:07, schrieb ext Michael S. Tsirkin: On Tue, Sep 14, 2010 at 05:46:55PM +0200, Bernhard Kohl wrote: > This patch was motivated by the following use case: In our system > the VMs usually have 4 NICs, any combination of virtio-net-pci and > pci-assign NIC devices. The VMs bo

[Qemu-devel] [PATCH] qemu-virtio-9p: Implement TREADLINK operation for 9p2000.L

2010-09-21 Thread M. Mohan Kumar
Synopsis size[4] TReadlink tag[2] fid[4] size[4] RReadlink tag[2] target[s] Description Readlink is used to return the contents of the symoblic link referred by fid. Contents of symboic link is returned as a response. target[s] - Contents of the sy

[Qemu-devel] NetBSD qemu block device support

2010-09-21 Thread haad
Hi, On Mar,Thursday 18 2010, at 9:32 PM, Blue Swirl wrote: > On 3/17/10, haad wrote: >> Hi folks, >> >> This patch at [1] add support for NetBSD block ioctl calls to qemu >> block-raw.c file. It was written for xen version of qemu but basically >> it will work with vanilla qemu, too. Would anyone

[Qemu-devel] Re: [PATCH v4] blkverify: Add block driver for verifying I/O

2010-09-21 Thread Kevin Wolf
Am 21.09.2010 14:44, schrieb Stefan Hajnoczi: > The blkverify block driver makes investigating image format data > corruption much easier. A raw image initialized with the same contents > as the test image (e.g. qcow2 file) must be provided. The raw image > mirrors read/write operations and is us

[Qemu-devel] Re: [PATCH] scsi_bus: fix length and xfer_mode for RESERVE and RELEASE commands

2010-09-21 Thread Kevin Wolf
Am 06.09.2010 16:58, schrieb Bernhard Kohl: > For the RESERVE and RELEASE commands the length must be zero > and xfer_mode must be SCSI_XFER_NONE. > > Signed-off-by: Bernhard Kohl Thanks, applied to the block branch. Kevin

Re: [Qemu-devel] [PATCH 00/18] Monitor: split HMP and QMP dispatch tables

2010-09-21 Thread Anthony Liguori
On 09/16/2010 03:20 PM, Luiz Capitulino wrote: The subject says it all: with this series applied we'll get different dispatch tables for HMP and QMP, which has the side effect of making QMP commands (such as qmp_capabilities) disappear from HMP's scope. This is also the beginning of the Monitor'

[Qemu-devel] Re: [PATCH v2] qemu-io: New command map

2010-09-21 Thread Stefan Hajnoczi
On Tue, Sep 21, 2010 at 1:40 PM, Kevin Wolf wrote: > The new map command in qemu-io lists all allocated/unallocated areas in an > image file. > > Signed-off-by: Kevin Wolf > --- >  qemu-io.c |   39 +++ >  1 files changed, 39 insertions(+), 0 deletions(-) Looks

Re: [Qemu-devel] Re: [PATCH] net: delay peer host device delete

2010-09-21 Thread Anthony Liguori
On 09/21/2010 04:20 AM, Michael S. Tsirkin wrote: OK, that's clear enough. One note though: you won't be able to create another backend with the same name until the frontend is gone. If you remove it from the linked list, you'll be able to create another backend just fine. Regards, Ant

[Qemu-devel] [PATCH v4] blkverify: Add block driver for verifying I/O

2010-09-21 Thread Stefan Hajnoczi
The blkverify block driver makes investigating image format data corruption much easier. A raw image initialized with the same contents as the test image (e.g. qcow2 file) must be provided. The raw image mirrors read/write operations and is used to verify that data read from the test image is cor

[Qemu-devel] Re: [PATCH] net: delay peer host device delete

2010-09-21 Thread Anthony Liguori
On 09/21/2010 04:18 AM, Michael S. Tsirkin wrote: No, netdev_del should remove the VLANClientState from the non_vlan_clients list. It's no longer enumerable and it's no longer lookup-able. The only reason it stays around it so that the device doesn't have a reference to a free pointer. The onl

[Qemu-devel] [PATCH v2] qemu-io: New command map

2010-09-21 Thread Kevin Wolf
The new map command in qemu-io lists all allocated/unallocated areas in an image file. Signed-off-by: Kevin Wolf --- qemu-io.c | 39 +++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/qemu-io.c b/qemu-io.c index b4e5cc8..ff353eb 100644 --- a

[Qemu-devel] Re: [PATCH] scsi-generic: add missing reset handler

2010-09-21 Thread Kevin Wolf
Am 06.09.2010 16:07, schrieb Bernhard Kohl: > Ensure that pending requests of a SCSI generic device are purged on > system reset. This also avoids calling a NULL function in lsi53c895a. > The lsi code was recently changed to call the .qdev.reset function. > > Signed-off-by: Bernhard Kohl Thanks,

[Qemu-devel] Re: KVM call agenda for Sept 21

2010-09-21 Thread Avi Kivity
On 09/21/2010 05:37 AM, Nakajima, Jun wrote: Avi Kivity wrote on Mon, 20 Sep 2010 at 09:50:55: >On 09/20/2010 06:44 PM, Chris Wright wrote: >> Please send in any agenda items you are interested in covering. >> > nested vmx: the resurrection. Nice to see it progressing again, but > ther

Re: [Qemu-devel] [PATCH] qemu-io: New command map

2010-09-21 Thread Stefan Hajnoczi
On Tue, Sep 21, 2010 at 12:01 PM, Kevin Wolf wrote: > The new map command in qemu-io lists all allocated/unallocated areas in an > image file. > > Signed-off-by: Kevin Wolf > --- >  qemu-io.c |   38 ++ >  1 files changed, 38 insertions(+), 0 deletions(-) > > di

[Qemu-devel] [PATCH] qemu-io: New command map

2010-09-21 Thread Kevin Wolf
The new map command in qemu-io lists all allocated/unallocated areas in an image file. Signed-off-by: Kevin Wolf --- qemu-io.c | 38 ++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/qemu-io.c b/qemu-io.c index b4e5cc8..169dd51 100644 --- a/

Re: [Qemu-devel] [PATCH 5/5] ide: propagate the required alignment

2010-09-21 Thread Kevin Wolf
Am 12.09.2010 23:44, schrieb Christoph Hellwig: > IDE is a bit ugly in this respect. For one it doesn't really keep track > of a sector size - most of the protocol is in units of 512 bytes, and we > assume 2048 bytes for CDROMs which is correct most of the time. > > Second IDE allocates an I/O bu

Re: [Qemu-devel] Re: [PATCH] blkverify: Handle overlapping I/O vector buffers

2010-09-21 Thread Stefan Hajnoczi
On Tue, Sep 21, 2010 at 11:06 AM, Kevin Wolf wrote: > Am 20.09.2010 15:31, schrieb Stefan Hajnoczi: >> When blkverify clones an I/O vector in order to perform mirrored reads >> and then compare their contents, it does not take into account the >> layout of individual buffers.  It turns out this is

Re: [Qemu-devel] Re: Win2k host problem with {get, free}{addr, name}info()

2010-09-21 Thread Bastien ROUCARIES
On Tue, Sep 21, 2010 at 10:09 AM, Paolo Bonzini wrote: Does gnulib have a similar replacement function? >>> >>> Very similar, in fact that must be the source. >>> The nice thing about gnulib is that in the long term, we could potentially use gnulib for compatibility and make su

[Qemu-devel] Reminder about your invitation from Georgios Portokalidis

2010-09-21 Thread Georgios Portokalidis (LinkedIn Invitations)
LinkedIn This is a reminder that on September 16, Georgios Portokalidis sent you an invitation to become part of his or her professional network at LinkedIn. Follow this link to accept Georgios Portokalidis's invitation. https://www.linkedin.com/e/-kkb1ec-geclpv9v-3t/doi/167719

  1   2   >