Re: [Qemu-devel] [RFC PATCH 01/14] docs: block replication's description

2015-03-03 Thread Fam Zheng
On Tue, 03/03 15:53, Wen Congyang wrote: > I test qcow2_make_empty()'s performance. The result shows that it may > take about 100ms(normal sata disk). It is not acceptable for COLO. So > I think disk buff is necessary(just use it to replace qcow2). Why not tmpfs or ramdisk? Fam

[Qemu-devel] [Bug ?]Qemu segfault because of non-initial kvm_state variable

2015-03-03 Thread Gonglei (Arei)
Hi, I encountered a Qemu segfault problem in my environment. # ./qemu-system-x86_64 -enable-kvm -m 4096 -smp 4 -name redhat6.2 -drive file=/home/win2008_ent_r2_64_01,\ if=none,id=drive-ide0-0-0 -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -vnc :10 Segmentation fault Some

Re: [Qemu-devel] [PATCH RFC 1/1] s390x/pci: Extend pci representation by new zpci device

2015-03-03 Thread Frank Blaschka
On Thu, Feb 26, 2015 at 04:34:06PM +0100, Alexander Graf wrote: > > > On 26.02.15 16:27, Frank Blaschka wrote: > > On Thu, Feb 26, 2015 at 03:39:15PM +0100, Alexander Graf wrote: > >> > >> > >> On 26.02.15 12:59, Frank Blaschka wrote: > >>> This patch extends the current s390 pci implementation t

Re: [Qemu-devel] [PATCH V13 3/4] pc: add a Virtual Machine Generation ID device

2015-03-03 Thread Michael S. Tsirkin
On Tue, Mar 03, 2015 at 12:03:26PM +1100, David Gibson wrote: > On Mon, 2 Mar 2015 22:06:22 +0100 > "Michael S. Tsirkin" wrote: > > > On Mon, Mar 02, 2015 at 06:05:43PM +0100, Igor Mammedov wrote: > > > On Sun, 1 Mar 2015 16:09:33 +0100 > > > "Michael S. Tsirkin" wrote: > > > > > > > On Wed, Fe

[Qemu-devel] [PULL 0/1] xhci: generate a Transfer Event for each Transfer TRB with the IOC bit set

2015-03-03 Thread Gerd Hoffmann
) are available in the git repository at: git://git.kraxel.org/qemu tags/pull-usb-20150303-1 for you to fetch changes up to aa6857891df614c620e6e9fc4bc4af6e0e49cafd: xhci: generate a Transfer Event for each Transfer TRB with the IOC bit set (2015-

[Qemu-devel] [PULL 1/1] xhci: generate a Transfer Event for each Transfer TRB with the IOC bit set

2015-03-03 Thread Gerd Hoffmann
From: Laszlo Ersek At the moment, when the XHCI driver in edk2 (MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf) runs on QEMU, with the options -device nec-usb-xhci -device usb-kbd it crashes with: ASSERT MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c(1759): TrsRing != ((void*) 0) The crash hits in

[Qemu-devel] [PATCH] Add testcase for scsi-hd devices without drive property

2015-03-03 Thread Christian Borntraeger
CC: Max Reitz Suggested-by: Kevin Wolf Signed-off-by: Christian Borntraeger --- tests/qemu-iotests/051 |9 + tests/qemu-iotests/051.out |8 2 files changed, 17 insertions(+), 0 deletions(-) diff --git a/tests/qemu-iotests/051 b/tests/qemu-iotests/051 index 11c858f

[Qemu-devel] [PATCH] hmp: info spice: take out webdav

2015-03-03 Thread Gerd Hoffmann
Obvious suggestion for the next spice-protocol release: Add some way to #ifdef new stuff. Signed-off-by: Gerd Hoffmann --- hmp.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hmp.c b/hmp.c index eacfb1b..71c28bc 100644 --- a/hmp.c +++ b/hmp.c @@ -561,7 +561,12 @@ void hmp_info_spice(M

Re: [Qemu-devel] vmdk: improve streamOptimized vmdk support

2015-03-03 Thread Milos Vyletel
On Sun, Mar 1, 2015 at 9:50 PM, Sunil Kumar wrote: > Any update on this Milos? > > Thanks. > I did look at this yesterday and unfortunately it will be harder to adapt to new head as previously thought. Since the addition of next_cluster_sector (which is one of last Fam's comments in v3) writing t

Re: [Qemu-devel] Announcement: Patchew server is online now

2015-03-03 Thread Gerd Hoffmann
Hi, > > Search by path (files touched by patch) would be nice, i.e. something > > like "path:ui/vnc*" to see all patches touching vnc code. > > Interesting. Any good python library or existing implementations in your mind? Sorry, no. I code next to nothing in python though, so that doesn't im

[Qemu-devel] [PATCH 1/1] gtk: bind to text terminal consoles too

2015-03-03 Thread Gerd Hoffmann
This way gtk has text terminal consoles even when building without vte. Most notably you'll get a monitor tab on windows now. Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 109 ++- 1 file changed, 73 insertions(+), 36 deletions(-) diff -

[Qemu-devel] [PATCH 0/1] gtk: bind to text terminal consoles too

2015-03-03 Thread Gerd Hoffmann
Hi, Resending. Caused problems on windows in testing a while back, qemu eating CPU IIRC. I'm not sure this was ever root-caused, whevener there is something wrong with this patch or whenever it just triggered some other bug. So, anyone with a windows setup, please give it a spin and report ba

Re: [Qemu-devel] vmdk: improve streamOptimized vmdk support

2015-03-03 Thread Fam Zheng
On Tue, 03/03 09:36, Milos Vyletel wrote: > On Sun, Mar 1, 2015 at 9:50 PM, Sunil Kumar > wrote: > > Any update on this Milos? > > > > Thanks. > > > > I did look at this yesterday and unfortunately it will be harder to > adapt to new head as previously thought. Since the addition of > next_clust

Re: [Qemu-devel] [PATCH v2] migration: Convert 'status' of MigrationInfo to use an enum type

2015-03-03 Thread Dr. David Alan Gilbert
* zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: > On 2015/3/2 23:56, Eric Blake wrote: > >On 02/27/2015 07:54 PM, zhanghailiang wrote: > >>On 2015/2/28 0:48, Eric Blake wrote: > >>>On 02/26/2015 11:19 PM, zhanghailiang wrote: > The original 'status' is an open-coded 'str' type, convert

Re: [Qemu-devel] Fedora FC21 - Bug: 100% CPU and hangs in gettimeofday(&tp, NULL); forever

2015-03-03 Thread Gerhard Wiesinger
On 02.03.2015 18:15, Gerhard Wiesinger wrote: On 02.03.2015 16:52, Gerhard Wiesinger wrote: On 02.03.2015 10:26, Paolo Bonzini wrote: On 01/03/2015 11:36, Gerhard Wiesinger wrote: So far it happened only the PostgreSQL database VM. Kernel is alive (ping works well). ssh is not working. consol

Re: [Qemu-devel] [PATCH RFC 5/5] savevm: Replace error_report() & error_free() with error_report_err()

2015-03-03 Thread Markus Armbruster
zhanghailiang writes: > On 2015/3/2 18:26, Markus Armbruster wrote: >> zhanghailiang writes: >> >>> Signed-off-by: zhanghailiang >>> --- >>> savevm.c | 3 +-- >>> 1 file changed, 1 insertion(+), 2 deletions(-) >>> >>> diff --git a/savevm.c b/savevm.c >>> index ce2b6a2..c4f8c39 100644 >>> ---

[Qemu-devel] commit 79e2b9aeccedbfd exec: RCUify AddressSpaceDispatch causes crashes

2015-03-03 Thread Christian Borntraeger
Paolo, guests with lots of threads crash after this patch commit 79e2b9aeccedbfde762b05da662132c7fda292be Author: Paolo Bonzini AuthorDate: Wed Jan 21 12:09:14 2015 +0100 Commit: Paolo Bonzini CommitDate: Mon Feb 16 17:30:19 2015 +0100 exec: RCUify AddressSpaceDispatch (gdb) bt #

Re: [Qemu-devel] [PATCH RFC 1/1] s390x/pci: Extend pci representation by new zpci device

2015-03-03 Thread Alexander Graf
> Am 03.03.2015 um 09:06 schrieb Frank Blaschka : > >> On Thu, Feb 26, 2015 at 04:34:06PM +0100, Alexander Graf wrote: >> >> >>> On 26.02.15 16:27, Frank Blaschka wrote: On Thu, Feb 26, 2015 at 03:39:15PM +0100, Alexander Graf wrote: > On 26.02.15 12:59, Frank Blaschka wr

Re: [Qemu-devel] [PATCH RFC 5/5] savevm: Replace error_report() & error_free() with error_report_err()

2015-03-03 Thread zhanghailiang
On 2015/3/3 17:19, Markus Armbruster wrote: zhanghailiang writes: On 2015/3/2 18:26, Markus Armbruster wrote: zhanghailiang writes: Signed-off-by: zhanghailiang --- savevm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/savevm.c b/savevm.c index ce2b6a2..c4f8c

Re: [Qemu-devel] commit 79e2b9aeccedbfd exec: RCUify AddressSpaceDispatch causes crashes

2015-03-03 Thread Paolo Bonzini
On 03/03/2015 10:28, Christian Borntraeger wrote: > > Paolo, > > guests with lots of threads crash after this patch > > commit 79e2b9aeccedbfde762b05da662132c7fda292be > Author: Paolo Bonzini > AuthorDate: Wed Jan 21 12:09:14 2015 +0100 > Commit: Paolo Bonzini > CommitDate: Mon Feb 16

[Qemu-devel] [virtio-net] why does the tx virtqueue have a timer?

2015-03-03 Thread Vasile Catalin-B50542
1. Why does virtio-net have a timer to handle tx virtqueue? 2. Why isn't the virtqueue kick enough? (I see that both are set to handle jobs from virtqueue.) 3. What is the difference between regular timers and bh (bottom halves)? Why would you choose one over another?

[Qemu-devel] [PATCH] error: Replace error_report() & error_free() with error_report_err()

2015-03-03 Thread zhanghailiang
Signed-off-by: zhanghailiang --- hw/arm/virt.c | 2 +- savevm.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 69f51ac..4732c12 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -768,7 +768,7 @@ static void machvirt_init(MachineSta

[Qemu-devel] [PULL 0/5] sdl patch queue.

2015-03-03 Thread Gerd Hoffmann
bkost/tags/x86-pull-request' into staging" (2015-03-03 00:29:17 +) are available in the git repository at: git://git.kraxel.org/qemu tags/pull-sdl-20150303-1 for you to fetch changes up to 32a2e5d184ffcc083288638a1b6fc6a05db22817: pixman: add a bunch of PIXMAN_BE_* defines for

[Qemu-devel] [PULL 3/5] configure: opengl overhaul

2015-03-03 Thread Gerd Hoffmann
Rename config option from "glx" to "opengl", glx will not be the only option for opengl in near future. Also switch over to pkg-config for opengl support detection. Signed-off-by: Gerd Hoffmann Reviewed-by: Max Reitz --- configure| 39 +--

[Qemu-devel] [PULL 2/5] sdl: Fix crash when calling sdl_switch() with NULL surface

2015-03-03 Thread Gerd Hoffmann
From: Benjamin Herrenschmidt This happens for example when doing ctrl-alt-u and segfaults Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Gerd Hoffmann --- ui/sdl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/sdl.c b/ui/sdl.c index b89182a..8bdbf52 100644 ---

[Qemu-devel] [PULL 4/5] Allow the use of X11 from a non standard location.

2015-03-03 Thread Gerd Hoffmann
From: Jeremy White Signed-off-by: Jeremy White [ kraxel: solve opengl patch conflicts ] Signed-off-by: Gerd Hoffmann Reviewed-by: Max Reitz --- configure| 24 +++- hw/display/Makefile.objs | 1 + 2 files changed, 20 insertions(+), 5 deletions(-) diff --

[Qemu-devel] [PULL 5/5] pixman: add a bunch of PIXMAN_BE_* defines for 32bpp

2015-03-03 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Max Reitz --- include/ui/qemu-pixman.h | 16 1 file changed, 16 insertions(+) diff --git a/include/ui/qemu-pixman.h b/include/ui/qemu-pixman.h index 3dee576..5d7a9ac 100644 --- a/include/ui/qemu-pixman.h +++ b/include/ui/qemu-pixman.h @

[Qemu-devel] [PULL 1/5] sdl: Refresh debug statements

2015-03-03 Thread Gerd Hoffmann
From: Benjamin Herrenschmidt Put them under a #define similar to the VGA model and make them actually compile. Add a couple too. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Gerd Hoffmann --- ui/sdl.c | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) dif

Re: [Qemu-devel] [RFC] introduce bitmap to bdrv_commit to track dirty sector

2015-03-03 Thread Paolo Bonzini
On 03/03/2015 07:52, Zhang Haoyu wrote: > Hi, > If introducing bitmap to bdrv_commit to track dirty sector, > could we implement guest non-disruption while performing commit? That is already implemented. It uses the same code that implements storage migration (block/mirror.c). Paolo

Re: [Qemu-devel] [PULL 00/13] QemuOpts: Convert various setters to Error

2015-03-03 Thread Peter Maydell
On 26 February 2015 at 23:07, Markus Armbruster wrote: > Bonus: improve qemu-img error reporting slightly. > > Changes since v1: > * Straightforward rebase > * Whitespace fix in PATCH 6 [Eric] > * Comment polished in PATCH 9 [Eric] > Because they're trivial, I'm requesting a pull without another r

Re: [Qemu-devel] [Xen-devel] [v2][PATCH] libxl: add one machine property to support IGD GFX passthrough

2015-03-03 Thread Chen, Tiejun
Campbell, Are you free to look at my reply? Thanks Tiejun On 2015/3/2 9:20, Chen, Tiejun wrote: Here I just mean when Qemu realizes IGD is passed through but without that appropriate option set, Qemu can post something to explicitly notify user that this option is needed in his case. But it ma

Re: [Qemu-devel] [Bug ?]Qemu segfault because of non-initial kvm_state variable

2015-03-03 Thread Paolo Bonzini
On 03/03/2015 09:01, Gonglei (Arei) wrote: > Hi, > > I encountered a Qemu segfault problem in my environment. > > # ./qemu-system-x86_64 -enable-kvm -m 4096 -smp 4 -name redhat6.2 -drive > file=/home/win2008_ent_r2_64_01,\ > if=none,id=drive-ide0-0-0 -device > ide-hd,bus=ide.0,unit=0,drive=

Re: [Qemu-devel] Fedora FC21 - Bug: 100% CPU and hangs in gettimeofday(&tp, NULL); forever

2015-03-03 Thread Paolo Bonzini
On 03/03/2015 10:12, Gerhard Wiesinger wrote: > > virsh dump vm file.core > error: Failed to core dump domain vm to file.core > error: internal error: unable to execute QEMU command 'migrate': State > blocked by non-migratable device ':00:09.0/ich9_ahci' > > Removed the SATA controller, dum

Re: [Qemu-devel] [Bug ?]Qemu segfault because of non-initial kvm_state variable

2015-03-03 Thread Peter Maydell
On 3 March 2015 at 19:11, Paolo Bonzini wrote: > > > On 03/03/2015 09:01, Gonglei (Arei) wrote: >> Hi, >> >> I encountered a Qemu segfault problem in my environment. >> >> # ./qemu-system-x86_64 -enable-kvm -m 4096 -smp 4 -name redhat6.2 -drive >> file=/home/win2008_ent_r2_64_01,\ >> if=none,id=

Re: [Qemu-devel] [Bug ?]Qemu segfault because of non-initial kvm_state variable

2015-03-03 Thread Paolo Bonzini
On 03/03/2015 11:11, Paolo Bonzini wrote: > > > On 03/03/2015 09:01, Gonglei (Arei) wrote: >> Hi, >> >> I encountered a Qemu segfault problem in my environment. >> >> # ./qemu-system-x86_64 -enable-kvm -m 4096 -smp 4 -name redhat6.2 -drive >> file=/home/win2008_ent_r2_64_01,\ >> if=none,id=d

[Qemu-devel] [PATCH] vl: take iothread lock very early

2015-03-03 Thread Paolo Bonzini
If the iothread lock isn't taken by the main thread, the RCU callbacks might run concurrently with the main thread. QEMU's not ready for that. Signed-off-by: Paolo Bonzini --- vl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vl.c b/vl.c index 09693f5..d743727 10064

Re: [Qemu-devel] [Bug ?]Qemu segfault because of non-initial kvm_state variable

2015-03-03 Thread Paolo Bonzini
On 03/03/2015 11:21, Peter Maydell wrote: > On 3 March 2015 at 19:11, Paolo Bonzini wrote: >> >> >> On 03/03/2015 09:01, Gonglei (Arei) wrote: >>> Hi, >>> >>> I encountered a Qemu segfault problem in my environment. >>> >>> # ./qemu-system-x86_64 -enable-kvm -m 4096 -smp 4 -name redhat6.2 -drive

[Qemu-devel] [PATCH v2 3/5] block/vpc: make calculate_geometry spec conform

2015-03-03 Thread Peter Lieven
The VHD spec [1] allows for total_sectors of 65535 x 16 x 255 (~127GB) represented by a CHS geometry. If total_sectors is greater than 65535 x 16 x 255 this geometry is set as a maximum. Qemu, Hyper-V and disk2vhd use this special geometry as an indicator to use the image current size from the foo

[Qemu-devel] [PATCH v2 0/5] block/vpc optimizations

2015-03-03 Thread Peter Lieven
This series covers VPC format changes discussed during the last weeks. Peter v1->v2: Patch 1: added comment why we can exit after the first allocated sector [Max] Patch 2: Fixed gemotry in commit msg [Max] Patch 3: Fixed comparision from > to >= [Max] Fixed exit in case of -EFBIG

[Qemu-devel] [PATCH v2 4/5] block/vpc: rename footer->size -> footer->current_size

2015-03-03 Thread Peter Lieven
the field is named current size in the spec. Name it accordingly. Signed-off-by: Peter Lieven Reviewed-by: Max Reitz --- block/vpc.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/block/vpc.c b/block/vpc.c index 7e99a69..226be02 100644 --- a/block/vpc.c +++ b/block

[Qemu-devel] [PATCH v2 2/5] vpc: Ignore geometry for large images

2015-03-03 Thread Peter Lieven
From: Kevin Wolf The CHS calculation as done per the VHD spec imposes a maximum image size of ~127 GB. Real VHD images exist that are larger than that. Apparently there are two separate non-standard ways to achieve this: You could use more heads than the spec does - this is the option that qemu-

[Qemu-devel] [PATCH v2 1/5] block/vpc: optimize vpc_co_get_block_status

2015-03-03 Thread Peter Lieven
*pnum can't be greater than s->block_size / BDRV_SECTOR_SIZE for allocated sectors since there is always a bitmap in between. Signed-off-by: Peter Lieven Reviewed-by: Max Reitz --- block/vpc.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/block/vpc.c b/

[Qemu-devel] [PATCH v2 5/5] block/vpc: remove disabled code from get_sector_offset

2015-03-03 Thread Peter Lieven
The code to check the bitmap for the allocation status of each sector has been "disabled by reason" ever since the vpc driver existed. The reason might be that we might end up reading sector by sector in vpc_read if we really used it. This would be a performance desaster. The current code would f

Re: [Qemu-devel] [PATCH v3 01/16] Introduce probe mode for machine type none

2015-03-03 Thread Michael Mueller
On Mon, 02 Mar 2015 17:57:01 +0100 Andreas Färber wrote: > Am 02.03.2015 um 17:43 schrieb Michael Mueller: > > On Mon, 02 Mar 2015 14:57:21 +0100 > > Andreas Färber wrote: > > > >>> int configure_accelerator(MachineState *ms) > >>> { > >>> -const char *p; > >>> +const char *p, *name;

Re: [Qemu-devel] [PATCH 1/6] target-arm: kvm: save/restore mp state

2015-03-03 Thread Alex Bennée
Peter Maydell writes: > On 26 February 2015 at 01:02, Alex Bennée wrote: >> This adds the saving and restore of the current Multi-Processing state >> of the machine. While the KVM_GET/SET_MP_STATE API exposes a number of >> potential states for x86 we only use two for ARM. Either the process is

Re: [Qemu-devel] [PATCH v3 01/16] Introduce probe mode for machine type none

2015-03-03 Thread Michael Mueller
On Mon, 2 Mar 2015 16:17:33 -0300 Eduardo Habkost wrote: > > +if (probe_mode) { > > +/* Use these accelerators in probe mode, tcg should be last */ > > +p = probe_mode_accels; > > I don't fully understand the purpose of this patch yet (I will discuss > it in a r

Re: [Qemu-devel] [PATCH V13 3/4] pc: add a Virtual Machine Generation ID device

2015-03-03 Thread Igor Mammedov
On Tue, 3 Mar 2015 12:03:26 +1100 David Gibson wrote: > On Mon, 2 Mar 2015 22:06:22 +0100 > "Michael S. Tsirkin" wrote: > > > On Mon, Mar 02, 2015 at 06:05:43PM +0100, Igor Mammedov wrote: > > > On Sun, 1 Mar 2015 16:09:33 +0100 > > > "Michael S. Tsirkin" wrote: > > > > > > > On Wed, Feb 25,

Re: [Qemu-devel] [PATCH 1/6] target-arm: kvm: save/restore mp state

2015-03-03 Thread Paolo Bonzini
On 03/03/2015 11:56, Alex Bennée wrote: > > > This adds the saving and restore of the current Multi-Processing state > > > of the machine. While the KVM_GET/SET_MP_STATE API exposes a number of > > > potential states for x86 we only use two for ARM. Either the process is > > > running or not. > >

Re: [Qemu-devel] [PATCH] vl: take iothread lock very early

2015-03-03 Thread Christian Borntraeger
Am 03.03.2015 um 11:36 schrieb Paolo Bonzini: > If the iothread lock isn't taken by the main thread, the RCU callbacks > might run concurrently with the main thread. QEMU's not ready for that. > > Signed-off-by: Paolo Bonzini Tested-by: Christian Borntraeger > --- > vl.c | 6 +++--- > 1 file

Re: [Qemu-devel] [PATCH 5/6] target-arm/kvm64: fix save/restore of SPSR regs

2015-03-03 Thread Alex Bennée
Christoffer Dall writes: > Hi Alex, > > Seems like you accidentally sent out two copies of this patch, hopefully > I'm reviewing the right one... Oops, perils of not wiping your output directory. I think it was just a title tweak! > On Wed, Feb 25, 2015 at 04:02:38PM +, Alex Bennée wrote:

Re: [Qemu-devel] [PATCH] vl: take iothread lock very early

2015-03-03 Thread Gonglei
On 2015/3/3 18:36, Paolo Bonzini wrote: > If the iothread lock isn't taken by the main thread, the RCU callbacks > might run concurrently with the main thread. QEMU's not ready for that. > > Signed-off-by: Paolo Bonzini > --- > vl.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-)

Re: [Qemu-devel] [PATCH 1/6] target-arm: kvm: save/restore mp state

2015-03-03 Thread Peter Maydell
On 3 March 2015 at 20:06, Paolo Bonzini wrote: > > > On 03/03/2015 11:56, Alex Bennée wrote: >> > > This adds the saving and restore of the current Multi-Processing state >> > > of the machine. While the KVM_GET/SET_MP_STATE API exposes a number of >> > > potential states for x86 we only use two f

Re: [Qemu-devel] Fedora FC21 - Bug: 100% CPU and hangs in gettimeofday(&tp, NULL); forever

2015-03-03 Thread Gonglei
On 2015/3/3 17:12, Gerhard Wiesinger wrote: > 3b.) Still happened again at the nightly backup with same configuration as in > 3.) configuration 384MB, kvm_clock, 2VCPU, vm.overcommit_memory = 1, > pc-i440fx-2.2: no OOM problem, ping ok, no reaction, BUT CRASHED again > > SYSRQ: no reaction of th

[Qemu-devel] [PATCH 0/4] sdl2: opengl rendering

2015-03-03 Thread Gerd Hoffmann
Hi, Finally getting back to work on opengl support. So here is the next round of the sdl2 opengl patches. Series applies cleanly on top of the sdl pull request sent earlier today. please review, Gerd Gerd Hoffmann (4): opengl: some shader infrastructure console-gl: add opengl rendering

[Qemu-devel] [PATCH 2/4] console-gl: add opengl rendering helper functions

2015-03-03 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- Makefile| 3 + configure | 2 +- include/ui/console.h| 31 ++ ui/Makefile.objs| 5 + ui/console-gl.c | 253 ui/shader/texture-blit.frag |

[Qemu-devel] [PATCH 3/4] sdl2: move SDL_* includes to sdl2.h

2015-03-03 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Max Reitz --- include/ui/sdl2.h | 6 ++ ui/sdl2-2d.c | 6 -- ui/sdl2-input.c | 6 -- ui/sdl2.c | 6 -- 4 files changed, 6 insertions(+), 18 deletions(-) diff --git a/include/ui/sdl2.h b/include/ui/sdl2.h index 51fff2e..e21

[Qemu-devel] [PATCH 1/4] opengl: some shader infrastructure

2015-03-03 Thread Gerd Hoffmann
--- Makefile | 14 ++ scripts/shaderinclude.pl | 16 2 files changed, 30 insertions(+) create mode 100644 scripts/shaderinclude.pl diff --git a/Makefile b/Makefile index 6817c6f..285eb27 100644 --- a/Makefile +++ b/Makefile @@ -292,6 +292,7 @@ clean:

Re: [Qemu-devel] [RFC PATCH 01/14] docs: block replication's description

2015-03-03 Thread Wen Congyang
On 03/03/2015 03:59 PM, Fam Zheng wrote: > On Tue, 03/03 15:53, Wen Congyang wrote: >> I test qcow2_make_empty()'s performance. The result shows that it may >> take about 100ms(normal sata disk). It is not acceptable for COLO. So >> I think disk buff is necessary(just use it to replace qcow2). > >

[Qemu-devel] [PATCH 4/4] sdl2: add support for display rendering using opengl.

2015-03-03 Thread Gerd Hoffmann
Add new sdl2-gl.c file, with display rendering functions using opengl. Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 1 + include/ui/sdl2.h| 11 + ui/Makefile.objs | 3 ++ ui/sdl.c | 10 + ui/sdl2-2d.c | 7 ui/sdl2-gl.c | 112 +++

Re: [Qemu-devel] Fedora FC21 - Bug: 100% CPU and hangs in gettimeofday(&tp, NULL); forever

2015-03-03 Thread Gerhard Wiesinger
On 03.03.2015 10:12, Gerhard Wiesinger wrote: On 02.03.2015 18:15, Gerhard Wiesinger wrote: On 02.03.2015 16:52, Gerhard Wiesinger wrote: On 02.03.2015 10:26, Paolo Bonzini wrote: On 01/03/2015 11:36, Gerhard Wiesinger wrote: So far it happened only the PostgreSQL database VM. Kernel is aliv

[Qemu-devel] [PATCH] Introduce machine specific default memory size

2015-03-03 Thread Nikunj A Dadhania
Qemu default memory of 128MB is not enough to boot spapr guest. Introduce a property in the machine class to override the default memory size enforced by qemu. Signed-off-by: Nikunj A Dadhania --- hw/ppc/spapr.c | 1 + include/hw/boards.h| 1 + include/hw/ppc/spapr.h | 3 +++ vl.c

Re: [Qemu-devel] [PATCH 1/2] qemu-options.hx: improve -m description

2015-03-03 Thread Igor Mammedov
On Mon, 2 Mar 2015 17:14:47 -0500 Luiz Capitulino wrote: > Add memory hotplug options to the command-line format. Also, > add a complete command-line example and improve description. > > Signed-off-by: Luiz Capitulino > --- > qemu-options.hx | 23 ++- > 1 file changed, 18

Re: [Qemu-devel] [PULL 00/15] Misc changes for 2015-03-02

2015-03-03 Thread Peter Maydell
On 2 March 2015 at 19:08, Paolo Bonzini wrote: > The following changes since commit 041ccc922ee474693a2869d4e3b59e920c739bc0: > > Merge remote-tracking branch 'remotes/qmp-unstable/queue/qmp' into staging > (2015-02-26 12:16:46 +) > > are available in the git repository at: > > git://gith

Re: [Qemu-devel] Delaying -rc0?

2015-03-03 Thread Marcel Apfelbaum
On 03/02/2015 03:11 PM, Paolo Bonzini wrote: On 02/03/2015 13:44, Peter Maydell wrote: On 2 March 2015 at 21:33, Paolo Bonzini wrote: Looks like there are still a few pull requests pending, and Peter is on vacation. Should we really enter hard feature freeze tomorrow? The 2.3 planning page

Re: [Qemu-devel] Fedora FC21 - Bug: 100% CPU and hangs in gettimeofday(&tp, NULL); forever

2015-03-03 Thread Gerhard Wiesinger
On 03.03.2015 13:28, Gerhard Wiesinger wrote: On 03.03.2015 10:12, Gerhard Wiesinger wrote: On 02.03.2015 18:15, Gerhard Wiesinger wrote: On 02.03.2015 16:52, Gerhard Wiesinger wrote: On 02.03.2015 10:26, Paolo Bonzini wrote: On 01/03/2015 11:36, Gerhard Wiesinger wrote: So far it happened

Re: [Qemu-devel] [PATCH 2/2] docs: add memory-hotplug.txt

2015-03-03 Thread Igor Mammedov
On Mon, 2 Mar 2015 17:14:48 -0500 Luiz Capitulino wrote: > This document describes how to use memory hotplug in QEMU. > > Signed-off-by: Luiz Capitulino > --- > docs/memory-hotplug.txt | 76 > + > 1 file changed, 76 insertions(+) > create mode

Re: [Qemu-devel] [PATCH RFC 1/1] s390x/pci: Extend pci representation by new zpci device

2015-03-03 Thread Frank Blaschka
On Tue, Mar 03, 2015 at 10:33:05AM +0100, Alexander Graf wrote: > > > > > Am 03.03.2015 um 09:06 schrieb Frank Blaschka : > > > >> On Thu, Feb 26, 2015 at 04:34:06PM +0100, Alexander Graf wrote: > >> > >> > >>> On 26.02.15 16:27, Frank Blaschka wrote: > On Thu, Feb 26, 2015 at 03:39:15PM

Re: [Qemu-devel] [PATCH 1/2] qemu-options.hx: improve -m description

2015-03-03 Thread Paulo Ricardo Paz Vital
On Tue, 2015-03-03 at 14:06 +0100, Igor Mammedov wrote: > On Mon, 2 Mar 2015 17:14:47 -0500 > Luiz Capitulino wrote: > > > Add memory hotplug options to the command-line format. Also, > > add a complete command-line example and improve description. > > > > Signed-off-by: Luiz Capitulino > > --

Re: [Qemu-devel] Delaying -rc0?

2015-03-03 Thread Michael S. Tsirkin
On Mon, Mar 02, 2015 at 01:33:23PM +0100, Paolo Bonzini wrote: > Looks like there are still a few pull requests pending, and Peter is on > vacation. Should we really enter hard feature freeze tomorrow? The 2.3 > planning page in the end never got out the "draft" state. I think at this point we b

Re: [Qemu-devel] [PATCH] vl: take iothread lock very early

2015-03-03 Thread Peter Maydell
On 3 March 2015 at 19:36, Paolo Bonzini wrote: > If the iothread lock isn't taken by the main thread, the RCU callbacks > might run concurrently with the main thread. QEMU's not ready for that. > > Signed-off-by: Paolo Bonzini Applied, thanks. -- PMM

[Qemu-devel] [PATCH] virtio-pci: make pci bar layout more flexible.

2015-03-03 Thread Gerd Hoffmann
This patch makes the bar layout for virtio pci devices configurable. This is used to (a) create different layouts for legacy/transitional vs. modern devices. (b) make sure we use unused pci bars, by checking PCIDevice->io_regions VirtIOPCIProxy subclasses which need additional pci

Re: [Qemu-devel] [PATCH 00/10] s390x: move sigp handling to user space

2015-03-03 Thread Christian Borntraeger
Am 24.02.2015 um 14:15 schrieb Jens Freimann: > Cornelia, Alex, Christian, > > these patches move large parts of SIGP handling from kernel > to user space. > > Please note: This series needs a linux-headers sync with v4.0-rc1 > to work and should be applied only after Michael Tsirkin's series >

Re: [Qemu-devel] [PATCH v2 0/3] fix bug about balloon working incorrectly when hotplug memeory

2015-03-03 Thread Luiz Capitulino
On Mon, 17 Nov 2014 13:11:07 +0800 zhanghailiang wrote: > Hi, > > Patch 1 and 2 mainly fix bug about balloon not working correctly when we do > hotplug memory. It takes 'ram_size' as VM's real RAM size which is wrong > after we hotplug memory. > > This bug exists since we begin to support hotpl

Re: [Qemu-devel] [PATCH v3 02/10] acpi, mem-hotplug: Add acpi_memory_slot_status() to get MemStatus.

2015-03-03 Thread Michael S. Tsirkin
On Tue, Mar 03, 2015 at 10:18:12AM +0800, Zhu Guihua wrote: > > On 03/02/2015 01:31 AM, Michael S. Tsirkin wrote: > >On Thu, Feb 26, 2015 at 09:16:44AM +0800, Zhu Guihua wrote: > >>From: Tang Chen > >> > >>Add a new API named acpi_memory_slot_status() to obtain a single memory > >>slot status. Do

Re: [Qemu-devel] [PATCH] Add testcase for scsi-hd devices without drive property

2015-03-03 Thread Christian Borntraeger
Am 03.03.2015 um 09:15 schrieb Christian Borntraeger: > CC: Max Reitz > Suggested-by: Kevin Wolf > Signed-off-by: Christian Borntraeger > --- > tests/qemu-iotests/051 |9 + > tests/qemu-iotests/051.out |8 > 2 files changed, 17 insertions(+), 0 deletions(-) > > di

Re: [Qemu-devel] [PATCH 1/2] qemu-options.hx: improve -m description

2015-03-03 Thread Luiz Capitulino
On Tue, 03 Mar 2015 14:32:43 +0100 Paulo Ricardo Paz Vital wrote: > On Tue, 2015-03-03 at 14:06 +0100, Igor Mammedov wrote: > > On Mon, 2 Mar 2015 17:14:47 -0500 > > Luiz Capitulino wrote: > > > > > Add memory hotplug options to the command-line format. Also, > > > add a complete command-line

Re: [Qemu-devel] [PATCH] Add testcase for scsi-hd devices without drive property

2015-03-03 Thread Max Reitz
On 2015-03-03 at 09:17, Christian Borntraeger wrote: Am 03.03.2015 um 09:15 schrieb Christian Borntraeger: CC: Max Reitz Suggested-by: Kevin Wolf Signed-off-by: Christian Borntraeger --- tests/qemu-iotests/051 |9 + tests/qemu-iotests/051.out |8 2 files chang

Re: [Qemu-devel] [PATCH 2/2] docs: add memory-hotplug.txt

2015-03-03 Thread Luiz Capitulino
On Tue, 3 Mar 2015 14:20:11 +0100 Igor Mammedov wrote: > On Mon, 2 Mar 2015 17:14:48 -0500 > Luiz Capitulino wrote: > > > This document describes how to use memory hotplug in QEMU. > > > > Signed-off-by: Luiz Capitulino > > --- > > docs/memory-hotplug.txt | 76 > > +

Re: [Qemu-devel] [PULL v2] pci, pc, virtio fixes and cleanups

2015-03-03 Thread Peter Maydell
On 27 February 2015 at 01:59, Michael S. Tsirkin wrote: > Exactly the same thing as v1 but rebased to master to > help Peter resolve conflicts, so I'm not bothering > with resending all patches. > > A huge patchset, but the scariest part is Igor's patches, > and these have been used by multiple pe

[Qemu-devel] [PATCH] iotests: Fix 051's reference output

2015-03-03 Thread Max Reitz
Commit c4bacafb717de55538311b80a185ce9166b8daa2 changed (improved) qdev_init_nofail()'s error reporting, which affects iotest 051. Fix the reference output. Signed-off-by: Max Reitz --- tests/qemu-iotests/051.out | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/

Re: [Qemu-devel] Delaying -rc0?

2015-03-03 Thread Paolo Bonzini
On 03/03/2015 14:12, Marcel Apfelbaum wrote: > On 03/02/2015 03:11 PM, Paolo Bonzini wrote: >> >> >> On 02/03/2015 13:44, Peter Maydell wrote: >>> On 2 March 2015 at 21:33, Paolo Bonzini wrote: Looks like there are still a few pull requests pending, and Peter is on vacation. Should we

Re: [Qemu-devel] [PULL v2] pci, pc, virtio fixes and cleanups

2015-03-03 Thread Paolo Bonzini
On 03/03/2015 15:37, Peter Maydell wrote: > Doesn't build with our minimum glib requirement, I'm afraid: > > /home/petmay01/linaro/qemu-for-merges/hw/acpi/aml-build.c:313: > undefined reference to `g_ptr_array_new_with_free_func' > > (that function only appeared in glib 2.22.) >From a few week

[Qemu-devel] [PATCH v3 0/2] improve memory hotplug documentation

2015-03-03 Thread Luiz Capitulino
Hi, I started playing with memory hotplug the other day and missed some good documentation explaining how to use the feature. I figured I could contribute some documentation myself, although I'm new to the feature so the chances of making mistakes is high. Review is very appreciated. v3 - Addr

[Qemu-devel] [PATCH 2/2] docs: add memory-hotplug.txt

2015-03-03 Thread Luiz Capitulino
This document describes how to use memory hotplug in QEMU. Signed-off-by: Luiz Capitulino --- docs/memory-hotplug.txt | 76 + 1 file changed, 76 insertions(+) create mode 100644 docs/memory-hotplug.txt diff --git a/docs/memory-hotplug.txt b/docs/

[Qemu-devel] [PATCH 1/2] qemu-options.hx: improve -m description

2015-03-03 Thread Luiz Capitulino
Add memory hotplug options to the command-line format. Also, add a complete command-line example and improve description. Signed-off-by: Luiz Capitulino --- qemu-options.hx | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/qemu-options.hx b/qemu-options.

Re: [Qemu-devel] [PULL v2 00/11] Net patches

2015-03-03 Thread Peter Maydell
On 28 February 2015 at 02:07, Stefan Hajnoczi wrote: > v2: > * Squash in Jiri's fix for rocker format string specifiers [Peter] > * Squash in Windows build fix [Peter] > * Both build fixes are described in "rocker: add new rocker switch device" Still hasn't fixed all the build errors, I'm afra

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

2015-03-03 Thread Peter Maydell
On 28 February 2015 at 03:57, Stefan Hajnoczi wrote: > On Fri, Feb 27, 2015 at 6:17 PM, Stefan Hajnoczi wrote: >> Ekaterina Tumanova (5): >> block: add bdrv functions for geometry and blocksize >> raw-posix: Factor block size detection out of raw_probe_alignment() >> block: Add driver metho

Re: [Qemu-devel] [PATCH v2 2/5] vpc: Ignore geometry for large images

2015-03-03 Thread Max Reitz
On 2015-03-03 at 05:41, Peter Lieven wrote: From: Kevin Wolf The CHS calculation as done per the VHD spec imposes a maximum image size of ~127 GB. Real VHD images exist that are larger than that. Apparently there are two separate non-standard ways to achieve this: You could use more heads than

[Qemu-devel] [PATCHv2] Add testcase for scsi-hd devices without drive property

2015-03-03 Thread Christian Borntraeger
Lets add a test for scsi devices without a drive. This was broken by a recent block patch, thus indicating that we need a testcase. Suggested-by: Kevin Wolf Signed-off-by: Christian Borntraeger --- tests/qemu-iotests/051 |6 ++ tests/qemu-iotests/051.out |8 2 files cha

[Qemu-devel] QEMU etc/e820 and fw_cfg

2015-03-03 Thread Gordan Bobic
I need to pass a custom e820 map to a virtual machine for troubleshooting purposes and working around IOMMU hardware bugs. I have found references to a custom map being providable via an external file, mentioned as "etc/e820" and "fw_cfg". Unfortunately, I have not found any documentation that ex

Re: [Qemu-devel] [PULL v2] pci, pc, virtio fixes and cleanups

2015-03-03 Thread Igor Mammedov
On Tue, 03 Mar 2015 15:44:29 +0100 Paolo Bonzini wrote: > > > On 03/03/2015 15:37, Peter Maydell wrote: > > Doesn't build with our minimum glib requirement, I'm afraid: > > > > /home/petmay01/linaro/qemu-for-merges/hw/acpi/aml-build.c:313: > > undefined reference to `g_ptr_array_new_with_free_

Re: [Qemu-devel] [PULL v2] pci, pc, virtio fixes and cleanups

2015-03-03 Thread Paolo Bonzini
On 03/03/2015 16:03, Igor Mammedov wrote: >> > Maybe we have a candidate now. That function doesn't seem easy to >> > replace, and it is pretty useful. > Looking at git history there were a number of followup fixes > where 2.13-2.22 function couldn't be used, if we switch to 2.24 > we could clea

Re: [Qemu-devel] Delaying -rc0?

2015-03-03 Thread Marcel Apfelbaum
On 03/03/2015 03:57 PM, Paolo Bonzini wrote: On 03/03/2015 14:12, Marcel Apfelbaum wrote: On 03/02/2015 03:11 PM, Paolo Bonzini wrote: On 02/03/2015 13:44, Peter Maydell wrote: On 2 March 2015 at 21:33, Paolo Bonzini wrote: Looks like there are still a few pull requests pending, and Pete

Re: [Qemu-devel] [PULL v2] pci, pc, virtio fixes and cleanups

2015-03-03 Thread Peter Maydell
On 4 March 2015 at 00:05, Paolo Bonzini wrote: > On 03/03/2015 16:03, Igor Mammedov wrote: >>> > Maybe we have a candidate now. That function doesn't seem easy to >>> > replace, and it is pretty useful. >> Looking at git history there were a number of followup fixes >> where 2.13-2.22 function co

Re: [Qemu-devel] [PATCH 2/2] docs: add memory-hotplug.txt

2015-03-03 Thread Paulo Ricardo Paz Vital
On Tue, 2015-03-03 at 09:47 -0500, Luiz Capitulino wrote: > This document describes how to use memory hotplug in QEMU. > > Signed-off-by: Luiz Capitulino > --- > docs/memory-hotplug.txt | 76 > + > 1 file changed, 76 insertions(+) > create mode 1

Re: [Qemu-devel] Delaying -rc0?

2015-03-03 Thread Peter Maydell
On 4 March 2015 at 00:07, Marcel Apfelbaum wrote: > In the mean time this series depends on Igor's ACPI dynamic series that took > a lot of time to review and even Michael's PULL request with it is not yet > in master. You can view this as an argument against enormous pull requests with nearly a

Re: [Qemu-devel] [PATCHv2] Add testcase for scsi-hd devices without drive property

2015-03-03 Thread Max Reitz
On 2015-03-03 at 09:59, Christian Borntraeger wrote: Lets add a test for scsi devices without a drive. This was broken by a recent block patch, thus indicating that we need a testcase. Suggested-by: Kevin Wolf Signed-off-by: Christian Borntraeger --- tests/qemu-iotests/051 |6 ++

Re: [Qemu-devel] [PATCH 1/2] qemu-options.hx: improve -m description

2015-03-03 Thread Igor Mammedov
On Tue, 3 Mar 2015 09:47:25 -0500 Luiz Capitulino wrote: > Add memory hotplug options to the command-line format. Also, > add a complete command-line example and improve description. > > Signed-off-by: Luiz Capitulino > --- > qemu-options.hx | 22 +- > 1 file changed, 17 i

Re: [Qemu-devel] [PATCH v2 3/5] block/vpc: make calculate_geometry spec conform

2015-03-03 Thread Max Reitz
On 2015-03-03 at 05:41, Peter Lieven wrote: The VHD spec [1] allows for total_sectors of 65535 x 16 x 255 (~127GB) represented by a CHS geometry. If total_sectors is greater than 65535 x 16 x 255 this geometry is set as a maximum. Qemu, Hyper-V and disk2vhd use this special geometry as an indica

[Qemu-devel] [PATCH] configure: require glib 2.22

2015-03-03 Thread Paolo Bonzini
This provides g_ptr_array_new_with_free_func, as well as a few other functions that we've been hacking around in glib-compat.h. Cleaning up the compatibility headers will come later. Signed-off-by: Paolo Bonzini --- configure |8 +--- 1 files changed, 1 insertions(+), 7 deletions(-) dif

  1   2   3   >