Re: [Qemu-devel] [PULL 00/28] ppc-for-2.6 queue 20160125

2016-01-26 Thread Peter Maydell
On 26 January 2016 at 05:37, David Gibson wrote: > Good grief. And this would be why I don't generally test 32-bit > builds... 32-bit on 64-bit host is a special case of a cross-compile, and cross-compiling is always pain... (My test 32-bit builds are just done on a

Re: [Qemu-devel] [PATCH 0/8] nbd: Fix failed assertion on negotiation error

2016-01-26 Thread Kevin Wolf
Am 25.01.2016 um 19:41 hat Max Reitz geschrieben: > An error during negotiation, e.g. by the client trying to open an export > that does not exist, should not lead to a crash of the server process. > > The middle six patches of this series are taken from my series > "block: Rework

[Qemu-devel] [RFC PATCH 05/16] block: Make bdrv_get_cluster_size public

2016-01-26 Thread Fam Zheng
Signed-off-by: Fam Zheng --- block/io.c| 2 +- include/block/block.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/block/io.c b/block/io.c index b964e7e..15e461f 100644 --- a/block/io.c +++ b/block/io.c @@ -425,7 +425,7 @@ void

[Qemu-devel] [RFC PATCH 06/16] block: Introduce bdrv_dirty_bitmap_set_persistent

2016-01-26 Thread Fam Zheng
By implementing bdrv_dirty_bitmap_set_persistent, a driver can support the persistent dirty bitmap feature. Once a dirty bitmap is made persistent, the driver is responsible for saving the dirty bitmap when appropriate, for example before close; if a persistent bitmap is removed or made

[Qemu-devel] [RFC PATCH 02/16] block: Set dirty before doing write

2016-01-26 Thread Fam Zheng
So that driver can write the dirty bits into persistent dirty bitmaps in the write callback. Signed-off-by: Fam Zheng --- block/io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/io.c b/block/io.c index 343ff1f..b964e7e 100644 --- a/block/io.c

[Qemu-devel] [RFC PATCH 07/16] block: Only swap non-persistent dirty bitmaps

2016-01-26 Thread Fam Zheng
Persistent dirty bitmaps are special because they're tightly associated with, or even belonging to the driver, swapping them doesn't make much sense. Because this has nothing to do with backward compatibility, it's okay to just let them stay with the old BDS. Signed-off-by: Fam Zheng

Re: [Qemu-devel] [PATCH v3] Add optionrom compatible with fw_cfg DMA version

2016-01-26 Thread Gerd Hoffmann
On Di, 2016-01-26 at 12:20 +0100, Marc Marí wrote: > On Tue, 26 Jan 2016 11:11:54 + > Stefan Hajnoczi wrote: > > > On Mon, Jan 25, 2016 at 02:17:48PM +0100, Marc Marí wrote: > > > +linuxboot_dma.img: linuxboot_dma.o > > > + $(call quiet-command,$(LD) $(LDFLAGS_NOPIE) -m

Re: [Qemu-devel] [PATCH] gtk: use qemu_chr_alloc() to allocate CharDriverState

2016-01-26 Thread Gerd Hoffmann
On Do, 2016-01-21 at 11:56 +, Daniel P. Berrange wrote: > The gd_vc_handler() callback is using g_malloc0() to > allocate the CharDriverState struct. As a result the > logfd field is getting initialized to 0, instead of > -1 when no logfile is requested. added to patch queue. thanks, Gerd

Re: [Qemu-devel] trace in arch/x86/kernel/apic/apic.c:1309 setup_local_APIC

2016-01-26 Thread Yang Zhang
On 2016/1/26 18:43, Stefan Priebe - Profihost AG wrote: Am 26.01.2016 um 11:13 schrieb Yang Zhang: On 2016/1/26 15:22, Stefan Priebe - Profihost AG wrote: Hi, Am 26.01.2016 um 02:46 schrieb Han, Huaitong: What is the host kernel version and host dmesg information? And does the problem exist

Re: [Qemu-devel] [PATCH 1/8] nbd: client_close on error in nbd_co_client_start

2016-01-26 Thread Paolo Bonzini
On 26/01/2016 10:32, Kevin Wolf wrote: > Am 25.01.2016 um 19:41 hat Max Reitz geschrieben: >> > Use client_close() if an error in nbd_co_client_start() occurs instead >> > of manually inlining parts of it. This fixes an assertion error on the >> > server side if nbd_negotiate() fails. >> > >> >

Re: [Qemu-devel] [PULL 00/13] IDE & FDC patches

2016-01-26 Thread Peter Maydell
On 25 January 2016 at 19:41, John Snow wrote: > The following changes since commit 6ee06cc3dc7e8eb238e2f60cfd04f094d5c6b948: > > Merge remote-tracking branch 'remotes/lalrae/tags/mips-20160125' into > staging (2016-01-25 10:42:52 +) > > are available in the git repository

[Qemu-devel] [RFC PATCH 09/16] qmp: Add block-dirty-bitmap-set-persistent

2016-01-26 Thread Fam Zheng
Signed-off-by: Fam Zheng --- blockdev.c | 20 qapi/block-core.json | 22 ++ qmp-commands.hx | 31 +++ 3 files changed, 73 insertions(+) diff --git a/blockdev.c b/blockdev.c index

[Qemu-devel] [RFC PATCH 12/16] iotests: Add qbm format to 041

2016-01-26 Thread Fam Zheng
Though a number of test cases dosn't apply because of cluster size and blkdebug limitation, mirroring qbm can be covered by all other cases. Signed-off-by: Fam Zheng --- tests/qemu-iotests/041 | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git

Re: [Qemu-devel] trace in arch/x86/kernel/apic/apic.c:1309 setup_local_APIC

2016-01-26 Thread Stefan Priebe - Profihost AG
Am 26.01.2016 um 11:13 schrieb Yang Zhang: > On 2016/1/26 15:22, Stefan Priebe - Profihost AG wrote: >> Hi, >> >> Am 26.01.2016 um 02:46 schrieb Han, Huaitong: >>> What is the host kernel version and host dmesg information? And does >>> the problem exist when you use latest kernel and QEMU to

[Qemu-devel] [PATCH 0/4] usb: hotplug support for usb-bot and usb-uas

2016-01-26 Thread Gerd Hoffmann
Hi, Composite device hotplug is a long-standing issue in qemu. PCI multifunction hotplug has been solved recently in a pci-specific way, by simply not showing hot-plugged functions to the guest until function #0 is plugged. So I figured we maybe should check whenever we can apply a simliar

[Qemu-devel] [PATCH] net/traffic-mirrorer:Add traffic-mirroer

2016-01-26 Thread Zhang Chen
From: ZhangChen Traffic-mirrorer is a plugin of netfilter. It make qemu has ability to copy and mirror guest's net packet. we output packet to chardev. usage: -netdev tap,id=hn0 -chardev socket,id=mirrorer0,host=ip_primary,port=X,server,nowait

Re: [Qemu-devel] [PATCH v2 1/3] linux-user/mmap.c: Set prot page flags for the correct region in mmap_frag()

2016-01-26 Thread Peter Maydell
On 26 January 2016 at 02:58, Chen Gang wrote: > The related comments for "if (prot1 == 0)" code block is "no page was > there, so we allocate one". > > So I guess this code block is not only allocate page for guest, but also > for host. So prot1 is not only for the

Re: [Qemu-devel] Linux vhost-user interrupt management fixes

2016-01-26 Thread Didier Pallard
On 01/25/2016 10:22 AM, Victor Kaplansky wrote: On Thu, Dec 03, 2015 at 10:53:16AM +0100, Didier Pallard wrote: Hi, I recently did some stress tests of a vhost-user interface using an UDP traffic generator. Traffic generator was connected to 2 physical ports that are in turn connected to 2

Re: [Qemu-devel] [PATCH] iotests: Limit supported formats for 118

2016-01-26 Thread Kevin Wolf
Am 26.01.2016 um 08:09 hat Markus Armbruster geschrieben: > Max Reitz writes: > > > Image formats used in test 118 need to support image creation. > > > > Reported-by: Markus Armbruster > > Signed-off-by: Max Reitz > > --- > >

Re: [Qemu-devel] [PATCH v2 1/3] linux-user/mmap.c: Set prot page flags for the correct region in mmap_frag()

2016-01-26 Thread Chen Gang
On 2016年01月26日 17:11, Peter Maydell wrote: > On 26 January 2016 at 02:58, Chen Gang wrote: >> The related comments for "if (prot1 == 0)" code block is "no page was >> there, so we allocate one". >> >> So I guess this code block is not only allocate page for guest, but

Re: [Qemu-devel] VFIO based vGPU(was Re: [Announcement] 2015-Q3 release of XenGT - a Mediated ...)

2016-01-26 Thread Neo Jia
On Mon, Jan 25, 2016 at 09:45:14PM +, Tian, Kevin wrote: > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > Sent: Tuesday, January 26, 2016 5:30 AM > > > > [cc +Neo @Nvidia] > > > > Hi Jike, > > > > On Mon, 2016-01-25 at 19:34 +0800, Jike Song wrote: > > > On 01/20/2016 05:05

[Qemu-devel] [RFC PATCH 14/16] iotests: Add qbm to applicable test cases

2016-01-26 Thread Fam Zheng
Signed-off-by: Fam Zheng --- tests/qemu-iotests/004 | 2 +- tests/qemu-iotests/017 | 2 +- tests/qemu-iotests/018 | 2 +- tests/qemu-iotests/019 | 2 +- tests/qemu-iotests/020 | 2 +- tests/qemu-iotests/024 | 2 +- tests/qemu-iotests/025 | 2 +- tests/qemu-iotests/027 | 2 +-

[Qemu-devel] [PATCH 4/4] usb-uas: hotplug support

2016-01-26 Thread Gerd Hoffmann
Make attached property settable and turns off auto-attach in case the device was hotplugged. Hotplugging works simliar to usb-bot now. Signed-off-by: Gerd Hoffmann --- hw/usb/dev-uas.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/usb/dev-uas.c

Re: [Qemu-devel] [PATCH v3] Add optionrom compatible with fw_cfg DMA version

2016-01-26 Thread Stefan Hajnoczi
On Mon, Jan 25, 2016 at 02:17:48PM +0100, Marc Marí wrote: > +linuxboot_dma.img: linuxboot_dma.o > + $(call quiet-command,$(LD) $(LDFLAGS_NOPIE) -m elf_i386 -Ttext 0 -e > _start -s -o $@ $<," Building $(TARGET_DIR)$@") > + > %.img: %.o > $(call quiet-command,$(LD) $(LDFLAGS_NOPIE)

Re: [Qemu-devel] [PATCH] audio: Clean up includes

2016-01-26 Thread Gerd Hoffmann
On Mo, 2016-01-18 at 17:33 +, Peter Maydell wrote: > Clean up includes so that osdep.h is included first and headers > which it implies are not included manually. > > This commit was created with scripts/clean-includes. > > Signed-off-by: Peter Maydell added to

[Qemu-devel] [RFC PATCH 16/16] iotests: Add persistent bitmap test case 141

2016-01-26 Thread Fam Zheng
For now it merely invokes block-dirty-bitmap-{add,set-persistent}. Verification of the bitmap data and user data to be added in the future. Signed-off-by: Fam Zheng --- tests/qemu-iotests/141 | 62 ++ tests/qemu-iotests/141.out |

[Qemu-devel] [RFC PATCH 11/16] qapi: Add "qbm" as a generic cow format driver

2016-01-26 Thread Fam Zheng
Signed-off-by: Fam Zheng --- qapi/block-core.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qapi/block-core.json b/qapi/block-core.json index 52689ed..97dc0cd 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -1599,7 +1599,7 @@ {

[Qemu-devel] [PATCH 2/4] usb: add attached property

2016-01-26 Thread Gerd Hoffmann
USB devices in attached state are visible to the guest. This patch adds a QOM property for this. Write access is opt-in per device. Some devices manage attached state automatically (usb-host, usb-serial), so we can't enable write access universally but have to do it on a case by case base.

[Qemu-devel] [RFC PATCH 04/16] block: Move filename_decompose to block.c

2016-01-26 Thread Fam Zheng
With the return value decoupled from VMDK, it can be reused by other block code. Signed-off-by: Fam Zheng --- block.c | 40 block/vmdk.c | 40 include/block/block.h | 2 ++

Re: [Qemu-devel] [PULL 00/28] ppc-for-2.6 queue 20160125

2016-01-26 Thread Gerd Hoffmann
Hi, > Just set up a 32bit vm and maybe configure it to automatically test your git > branch? ;) Container works even better as you can kick the build right from the (host) command line, without boot vm, login, ... sudo systemd-nspawn \ --directory /path/to/32bit-distro-root \ --bind

Re: [Qemu-devel] [PATCH v3] Add optionrom compatible with fw_cfg DMA version

2016-01-26 Thread Marc Marí
On Tue, 26 Jan 2016 11:11:54 + Stefan Hajnoczi wrote: > On Mon, Jan 25, 2016 at 02:17:48PM +0100, Marc Marí wrote: > > +linuxboot_dma.img: linuxboot_dma.o > > + $(call quiet-command,$(LD) $(LDFLAGS_NOPIE) -m elf_i386 > > -Ttext 0 -e _start -s -o $@ $<," Building

Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/13] cuda: misc fixes and cleanups

2016-01-26 Thread BALATON Zoltan
On Mon, 25 Jan 2016, Hervé Poussineau wrote: Do you have a Linux/NetBSD/... image, where I can run some command line tool to probe the I2C bus? Have you tried the iso from www.finnix.org? When booting it you may see a boot prompt on black screen with dark gray text first which is hard to

[Qemu-devel] [PATCH 2/4] fpu: Use plain 'int' rather than 'int_fast16_t' for shift counts

2016-01-26 Thread Peter Maydell
Use the plain 'int' type rather than 'int_fast16_t' for shift counts in the various shift related functions, since we don't actually care about the size of the integer at all here, and using int16_t would be confusing. This should be a safe change because int_fast16_t semantics permit use of

Re: [Qemu-devel] [PATCH] vmdk: Fix converting to streamOptimized

2016-01-26 Thread Kevin Wolf
Am 26.01.2016 um 04:16 hat Fam Zheng geschrieben: > On Mon, 01/25 12:16, Kevin Wolf wrote: > > Am 25.01.2016 um 03:26 hat Fam Zheng geschrieben: > > > Commit d62d9dc4b8 lifted streamOptimized images's version to 3, but we > > > now refuse to open version 3 images read-write. We need to make > > >

Re: [Qemu-devel] [PATCH 0/3] merge SSDT into DSDT

2016-01-26 Thread Igor Mammedov
On Mon, 25 Jan 2016 15:01:36 +0200 "Michael S. Tsirkin" wrote: > On Mon, Jan 25, 2016 at 12:57:28PM +0100, Igor Mammedov wrote: > > On Sun, 24 Jan 2016 08:32:23 +0200 > > "Michael S. Tsirkin" wrote: > > > > > On Fri, Jan 22, 2016 at 03:36:05PM +0100, Igor

Re: [Qemu-devel] [libvirt] Call for mentors and project ideas for Google Summer of Code 2016

2016-01-26 Thread Michal Privoznik
On 25.01.2016 18:28, Stefan Hajnoczi wrote: > The QEMU wiki page for Google Summer of Code 2016 is now available here: > > http://qemu-project.org/Google_Summer_of_Code_2016 > > QEMU will apply for Google Summer of Code 2016 (https://g.co/gsoc/). > If QEMU is accepted there will be funding for

Re: [Qemu-devel] trace in arch/x86/kernel/apic/apic.c:1309 setup_local_APIC

2016-01-26 Thread Yang Zhang
On 2016/1/26 15:22, Stefan Priebe - Profihost AG wrote: Hi, Am 26.01.2016 um 02:46 schrieb Han, Huaitong: What is the host kernel version and host dmesg information? And does the problem exist when you use latest kernel and QEMU to replace old binary file? Guest and Host is both 4.1.15. You

[Qemu-devel] [RFC PATCH 01/16] doc: Add QBM format specification

2016-01-26 Thread Fam Zheng
Signed-off-by: Fam Zheng --- docs/specs/qbm.md | 118 ++ 1 file changed, 118 insertions(+) create mode 100644 docs/specs/qbm.md diff --git a/docs/specs/qbm.md b/docs/specs/qbm.md new file mode 100644 index 000..b91910b

[Qemu-devel] [PATCH 3/4] usb-bot: hotplug support

2016-01-26 Thread Gerd Hoffmann
This patch marks usb-bot as hot-pluggable device, makes attached property settable and turns off auto-attach in case the device was hotplugged. Hot-plugging a usb-bot device with one or more scsi devices can be done this way now: (1) device-add usb-bot,id=foo (2) device-add

Re: [Qemu-devel] [RFC PATCH 0/3] (Resend) TranslationBlock annotation mechanism

2016-01-26 Thread Bastian Koppelmann
Hi Peter, thank you for your feedback. > (2) it feels a bit unpolished at the moment (lack of documentation, > doesn't have any existing analysis tools that produce the format that > the code reads that would make it immediately usable by an end-user) > Sure this is unpolished but we wanted to

Re: [Qemu-devel] [PATCH 2/2] nbd: add missed aio_context_acquire in nbd_export_new

2016-01-26 Thread Paolo Bonzini
On 20/01/2016 08:12, Denis V. Lunev wrote: > blk_invalidate_cache() can call qcow2_invalidate_cache which performs > IO inside. > > Signed-off-by: Denis V. Lunev > CC: Kevin Wolf > CC: Paolo Bonzini > --- > nbd.c | 2 ++ > 1 file

Re: [Qemu-devel] trace in arch/x86/kernel/apic/apic.c:1309 setup_local_APIC

2016-01-26 Thread Yang Zhang
On 2016/1/26 19:40, Stefan Priebe - Profihost AG wrote: Am 26.01.2016 um 12:39 schrieb Yang Zhang: On 2016/1/26 18:43, Stefan Priebe - Profihost AG wrote: Am 26.01.2016 um 11:13 schrieb Yang Zhang: On 2016/1/26 15:22, Stefan Priebe - Profihost AG wrote: Hi, Am 26.01.2016 um 02:46 schrieb

Re: [Qemu-devel] [Qemu-arm] Does QEMU support AArch64 Big Endian emulation on x86-64 host?

2016-01-26 Thread Ruslan Bilovol
On Mon, Jan 25, 2016 at 6:07 PM, Peter Maydell wrote: > On 25 January 2016 at 13:51, Ruslan Bilovol wrote: >>> I'm trying to run AArch64 Big Endian image under QEMU that I built for >>> my x86-64 Ubuntu host from latest master branch and when

Re: [Qemu-devel] [PATCH 1/8] nbd: client_close on error in nbd_co_client_start

2016-01-26 Thread Kevin Wolf
Am 25.01.2016 um 19:41 hat Max Reitz geschrieben: > Use client_close() if an error in nbd_co_client_start() occurs instead > of manually inlining parts of it. This fixes an assertion error on the > server side if nbd_negotiate() fails. > > Signed-off-by: Max Reitz Paolo, if

Re: [Qemu-devel] [PATCH v2 0/5] q35: Remove old machines and unused compat code

2016-01-26 Thread Igor Mammedov
On Mon, 25 Jan 2016 12:27:47 +0100 Laszlo Ersek wrote: > On 01/23/16 17:02, Eduardo Habkost wrote: > > This is another attempt to remove old q35 machine code. Now I am > > also removing unused compat code to demonstrate the benefit of > > throwing away the old code that nobody

Re: [Qemu-devel] [PATCH v2 1/1] nvdimm: disable balloon

2016-01-26 Thread Igor Mammedov
On Mon, 25 Jan 2016 19:50:31 +0300 "Denis V. Lunev" wrote: > From: Vladimir Sementsov-Ogievskiy > > NVDIMM for now is planned to use as a backing store for DAX filesystem > in the guest and thus this memory is excluded from guest memory management >

[Qemu-devel] [RFC PATCH 00/16] Qemu Bit Map (QBM) - an overlay format for persistent dirty bitmap

2016-01-26 Thread Fam Zheng
Hi all, This series introduces a simple format to enable support of persistence of block dirty bitmaps. Block dirty bitmap is the tool to achieve incremental backup, and persistence of block dirty bitmap makes incrememtal backup possible across VM shutdowns, where existing in-memory dirty bitmaps

Re: [Qemu-devel] [PATCH] net: set endianness on all backend devices

2016-01-26 Thread Laurent Vivier
On 22/01/2016 07:44, Jason Wang wrote: > > > On 01/21/2016 04:42 PM, Laurent Vivier wrote: >> ping >> >> [added Jason in cc:] >> >> On 13/01/2016 20:26, Laurent Vivier wrote: >>> commit 5be7d9f1b1452613b95c6ba70b8d7ad3d0797991 >>>vhost-net: tell tap backend about the vnet endianness

Re: [Qemu-devel] [PATCH 0/3] merge SSDT into DSDT

2016-01-26 Thread Michael S. Tsirkin
On Tue, Jan 26, 2016 at 10:55:04AM +0100, Igor Mammedov wrote: > On Mon, 25 Jan 2016 15:01:36 +0200 > "Michael S. Tsirkin" wrote: > > > On Mon, Jan 25, 2016 at 12:57:28PM +0100, Igor Mammedov wrote: > > > On Sun, 24 Jan 2016 08:32:23 +0200 > > > "Michael S. Tsirkin"

Re: [Qemu-devel] [PATCH] hmp: avoid redundant null termination of buffer

2016-01-26 Thread Michael Tokarev
18.01.2016 17:23, Markus Armbruster wrote: [...] > Applied to my monitor-next with these tweaks: > > diff --git a/hmp.c b/hmp.c > index 8be03df..9c571f5 100644 > --- a/hmp.c > +++ b/hmp.c > @@ -1739,7 +1739,7 @@ void hmp_sendkey(Monitor *mon, const QDict *qdict) > keyname_len = separator

Re: [Qemu-devel] [PATCH v2 0/5] q35: Remove old machines and unused compat code

2016-01-26 Thread Igor Mammedov
On Sat, 23 Jan 2016 14:02:08 -0200 Eduardo Habkost wrote: > This is another attempt to remove old q35 machine code. Now I am > also removing unused compat code to demonstrate the benefit of > throwing away the old code that nobody uses. Reviewed-by: Igor Mammedov

Re: [Qemu-devel] [PATCH v17 7/9] add MachineClass->default_props for setting default device properties

2016-01-26 Thread Igor Mammedov
On Sat, 23 Jan 2016 12:59:56 -0200 Eduardo Habkost wrote: > On Tue, Jan 19, 2016 at 02:06:27PM +0100, Igor Mammedov wrote: > > Signed-off-by: Igor Mammedov > > --- > > include/hw/boards.h | 1 + > > vl.c| 4 > > 2 files changed, 5

Re: [Qemu-devel] [PATCH v2 1/3] linux-user/mmap.c: Set prot page flags for the correct region in mmap_frag()

2016-01-26 Thread Peter Maydell
On 26 January 2016 at 10:19, Chen Gang wrote: > When I run WeChat.exe with i386 wine with qemu-i386 under sw_64 arch. > > - The related command: > >"./i386-linux-user/qemu-i386 -strace -L /upstream/i386_wine > /upstream/i386_wine/usr/local/bin/wine "C:\\Program >

Re: [Qemu-devel] VFIO based vGPU(was Re: [Announcement] 2015-Q3 release of XenGT - a Mediated ...)

2016-01-26 Thread Neo Jia
On Mon, Jan 25, 2016 at 09:45:14PM +, Tian, Kevin wrote: > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > Sent: Tuesday, January 26, 2016 5:30 AM > > > > [cc +Neo @Nvidia] > > > > Hi Jike, > > > > On Mon, 2016-01-25 at 19:34 +0800, Jike Song wrote: > > > On 01/20/2016 05:05

[Qemu-devel] [RFC PATCH 10/16] qbm: Implement format driver

2016-01-26 Thread Fam Zheng
Signed-off-by: Fam Zheng --- block/Makefile.objs |1 + block/qbm.c | 1315 +++ 2 files changed, 1316 insertions(+) create mode 100644 block/qbm.c diff --git a/block/Makefile.objs b/block/Makefile.objs index

Re: [Qemu-devel] [PATCH] memory: exit when hugepage allocation fails if mem-prealloc

2016-01-26 Thread Paolo Bonzini
On 22/01/2016 15:15, Luiz Capitulino wrote: > When -mem-prealloc is passed on the command-line, the expected > behavior is to exit if the hugepage allocation fails. However, > this behavior is broken since commit cc57501dee which made > hugepage allocation fall back to regular ram in case of

[Qemu-devel] [PATCH 1/4] usb: make USBDevice->attached bool

2016-01-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/usb/bus.c | 8 include/hw/usb.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/usb/bus.c b/hw/usb/bus.c index 1bbe930..dd28041 100644 --- a/hw/usb/bus.c +++ b/hw/usb/bus.c @@ -52,9 +52,9 @@ static int

[Qemu-devel] [RFC PATCH 15/16] iotests: Add qbm specific test case 140

2016-01-26 Thread Fam Zheng
Signed-off-by: Fam Zheng --- tests/qemu-iotests/140 | 80 + tests/qemu-iotests/140.out | 145 + tests/qemu-iotests/common | 6 ++ tests/qemu-iotests/group | 1 + 4 files changed, 232 insertions(+)

[Qemu-devel] [RFC PATCH 13/16] iotests: Add qbm to case 097

2016-01-26 Thread Fam Zheng
The output of "qemu-img map" will be slightly different for qbm because the data image paths are not $TEST_IMG, but the pattern is predicatable enough so we can just filter it out. Signed-off-by: Fam Zheng --- tests/qemu-iotests/095 | 2 +- tests/qemu-iotests/097 | 4 +++- 2

[Qemu-devel] [PATCH 3/4] fpu: Use plain 'int' rather than 'int_fast16_t' for exponents

2016-01-26 Thread Peter Maydell
Use the plain 'int' type rather than 'int_fast16_t' for handling exponents. Exponents don't need to be exactly 16 bits, so using int16_t for them would confuse more than it clarified. This should be a safe change because int_fast16_t semantics permit use of 'int' (and on 32-bit glibc that is what

[Qemu-devel] [PATCH 4/4] osdep.h: Remove int_fast*_t Solaris compatibility code

2016-01-26 Thread Peter Maydell
We now do not use the int_fast*_t types anywhere in QEMU, so we can remove the compatibility definitions we were providing for the benefit of ancient Solaris versions. Signed-off-by: Peter Maydell --- include/qemu/osdep.h | 7 --- 1 file changed, 7 deletions(-)

[Qemu-devel] [PATCH 1/4] fpu: Remove use of int_fast16_t in conversions to int16

2016-01-26 Thread Peter Maydell
Make the functions which convert floating point to 16 bit integer return int16_t rather than int_fast16_t, and correspondingly use int_fast16_t in their internal implementations where appropriate. (These functions are used only by the ARM target.) Signed-off-by: Peter Maydell

Re: [Qemu-devel] [PATCH v3 3/3] target-arm: Implement the S2 MMU inputsize > pamax check

2016-01-26 Thread Edgar E. Iglesias
On Mon, Jan 25, 2016 at 12:57:41PM +, Peter Maydell wrote: > On 22 January 2016 at 09:50, Edgar E. Iglesias > wrote: > > From: "Edgar E. Iglesias" > > > > Implement the inputsize > pamax check for Stage 2 translations. > > We have

Re: [Qemu-devel] [RFC 0/10] Support Receive-Segment-Offload(RSC) for WHQL test of Window guest

2016-01-26 Thread Jason Wang
On 01/26/2016 02:44 PM, Fam Zheng wrote: > On Tue, 01/26 06:24, w...@redhat.com wrote: >> Wei Xu (10): >> 'Segment', 'Chain' and 'Status' enumeration. >> Initilize & Cleanup. >> Chain lookup and packets caching. >> Tcp general data coalescing >> The draining timer >> IPv4 checksum.

Re: [Qemu-devel] [PATCH RFC 6/7] net/filter: Add a default filter to each netdev

2016-01-26 Thread Hailiang Zhang
On 2016/1/27 13:59, Jason Wang wrote: On 01/27/2016 08:37 AM, Hailiang Zhang wrote: On 2016/1/26 11:18, Jason Wang wrote: On 01/25/2016 03:22 PM, Hailiang Zhang wrote: On 2016/1/25 13:18, Jason Wang wrote: On 01/22/2016 04:36 PM, zhanghailiang wrote: We add each netdev a default

Re: [Qemu-devel] [PATCH 03/10] target-ppc: Rework ppc_store_slb

2016-01-26 Thread Thomas Huth
On 27.01.2016 01:04, David Gibson wrote: > On Mon, Jan 25, 2016 at 08:22:51PM +0100, Alexander Graf wrote: >> >> >> On 01/25/2016 06:15 AM, David Gibson wrote: >>> ppc_store_slb updates the SLB for PPC cpus with 64-bit hash MMUs. >>> Currently it takes two parameters, which contain values encoded

Re: [Qemu-devel] [PATCH V3] net: always walk through filters in reverse if traffic is egress

2016-01-26 Thread Jason Wang
On 01/26/2016 01:00 PM, Li Zhijian wrote: > Previously, if we attach more than filters for one netdev, IN/OUT traffic pass > through filters in a same order. > ingress: netdev ->filter1 ->filter2 ->...filter[n] ->emulated device > egress: emulated device ->filter1 ->filter2 ->...filter[n]

Re: [Qemu-devel] VFIO based vGPU(was Re: [Announcement] 2015-Q3 release of XenGT - a Mediated ...)

2016-01-26 Thread Jike Song
On 01/27/2016 11:07 AM, Alex Williamson wrote: > On Wed, 2016-01-27 at 09:47 +0800, Jike Song wrote: >> On 01/27/2016 06:56 AM, Alex Williamson wrote: >>> On Tue, 2016-01-26 at 22:39 +, Tian, Kevin wrote: > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Wednesday,

Re: [Qemu-devel] [PULL 00/28] ppc-for-2.6 queue 20160125

2016-01-26 Thread David Gibson
On Tue, Jan 26, 2016 at 11:56:15AM +0100, Gerd Hoffmann wrote: > Hi, > > > Just set up a 32bit vm and maybe configure it to automatically test your > > git branch? ;) > > Container works even better as you can kick the build right from the > (host) command line, without boot vm, login, ... >

[Qemu-devel] [PATCH v5 1/2] configure: detect ifunc and avx2 attribute

2016-01-26 Thread Liang Li
Detect if the compiler can support the ifun and avx2, if so, set CONFIG_AVX2_OPT which will be used to turn on the avx2 instruction optimization. Suggested-by: Paolo Bonzini Suggested-by: Peter Maydell Signed-off-by: Liang Li

[Qemu-devel] [PATCH v5 2/2] cutils: add avx2 instruction optimization

2016-01-26 Thread Liang Li
buffer_find_nonzero_offset() is a hot function during live migration. Now it use SSE2 instructions for optimization. For platform supports AVX2 instructions, use AVX2 instructions for optimization can help to improve the performance of buffer_find_nonzero_offset() about 30% comparing to SSE2.

[Qemu-devel] [PATCH v5 0/2] add avx2 instruction optimization

2016-01-26 Thread Liang Li
buffer_find_nonzero_offset() is a hot function during live migration. Now it use SSE2 instructions for optimization. For platform supports AVX2 instructions, use the AVX2 instructions for optimization can help to improve the performance of zero page checking about 30% comparing to SSE2. Live

Re: [Qemu-devel] [PATCH v2] net: netmap: use nm_open() to open netmap ports

2016-01-26 Thread Jason Wang
On 01/26/2016 02:24 AM, Vincenzo Maffione wrote: > This patch simplifies the netmap backend code by means of the nm_open() > helper function provided by netmap_user.h, which hides the details of > open(), iotcl() and mmap() carried out on the netmap device. > > Moreover, the semantic of

Re: [Qemu-devel] [PATCH v2] net/filter: Fix the output information for command 'info network'

2016-01-26 Thread Jason Wang
On 01/27/2016 12:59 AM, Eric Blake wrote: > On 01/25/2016 11:43 PM, zhanghailiang wrote: >> The properties of netfilter object could be changed by 'qom-set' >> command, but the output of 'info network' command is not updated, >> because it got the old information through nf->info_str, it will >>

Re: [Qemu-devel] [PATCH RFC 6/7] net/filter: Add a default filter to each netdev

2016-01-26 Thread Jason Wang
On 01/27/2016 08:37 AM, Hailiang Zhang wrote: > On 2016/1/26 11:18, Jason Wang wrote: >> >> >> On 01/25/2016 03:22 PM, Hailiang Zhang wrote: >>> On 2016/1/25 13:18, Jason Wang wrote: On 01/22/2016 04:36 PM, zhanghailiang wrote: > We add each netdev a default buffer filter,

[Qemu-devel] [PATCH] migration: remove useless code.

2016-01-26 Thread Liang Li
Since 's->state' will be set in migrate_init(), there is no need to set it before calling migrate_init(). The code and the related comments can be removed. Signed-off-by: Liang Li --- migration/migration.c | 6 -- 1 file changed, 6 deletions(-) diff --git

Re: [Qemu-devel] [PATCH] migration: remove useless code.

2016-01-26 Thread Fam Zheng
On Wed, 01/27 14:11, Liang Li wrote: > Since 's->state' will be set in migrate_init(), there is no > need to set it before calling migrate_init(). The code and > the related comments can be removed. Reviewed-by: Fam Zheng > > Signed-off-by: Liang Li >

Re: [Qemu-devel] [PATCH v2 08/13] block: Support meta dirty bitmap

2016-01-26 Thread Fam Zheng
On Tue, 01/26 10:49, Vladimir Sementsov-Ogievskiy wrote: > On 26.01.2016 09:25, Fam Zheng wrote: > >On Fri, 01/22 15:05, Vladimir Sementsov-Ogievskiy wrote: > >>>In my migration series I need iterators, get granularity, and > >>>something like hbitmap_count for meta bitmaps. You can add them >

Re: [Qemu-devel] [PATCH v5 00/12] Dirty bitmaps migration

2016-01-26 Thread Vladimir Sementsov-Ogievskiy
On 03.06.2015 01:17, John Snow wrote: On 05/28/2015 04:56 PM, Denis V. Lunev wrote: On 28/05/15 23:09, John Snow wrote: On 05/26/2015 10:51 AM, Denis V. Lunev wrote: On 26/05/15 17:48, Denis V. Lunev wrote: On 21/05/15 19:44, John Snow wrote: On 05/21/2015 09:57 AM, Denis V. Lunev wrote:

Re: [Qemu-devel] [PATCH v4 4/8] bcm2835_peripherals: add rollup device for bcm2835 peripherals

2016-01-26 Thread Peter Crosthwaite
On Mon, Jan 25, 2016 at 10:23 PM, Andrew Baumann wrote: >> From: Peter Crosthwaite [mailto:crosthwaitepe...@gmail.com] >> Sent: Monday, 25 January 2016 22:14 >> >> On Fri, Jan 15, 2016 at 3:58 PM, Andrew Baumann >> wrote: > [...] >> >

Re: [Qemu-devel] [RFC PATCH 2/4] configure: introduce --extra-libs

2016-01-26 Thread Alex Bennée
Paolo Bonzini writes: > On 25/01/2016 19:15, Alex Bennée wrote: >> >> Paolo Bonzini writes: >> >>> On 25/01/2016 17:49, Alex Bennée wrote: If for example you want to use the thread sanitizer you want to ensure all binaries are linked with the

Re: [Qemu-devel] [PATCH] net: set endianness on all backend devices

2016-01-26 Thread Greg Kurz
On Tue, 26 Jan 2016 11:53:21 +0100 Laurent Vivier wrote: > On 22/01/2016 07:44, Jason Wang wrote: > > > > > > On 01/21/2016 04:42 PM, Laurent Vivier wrote: > >> ping > >> > >> [added Jason in cc:] > >> > >> On 13/01/2016 20:26, Laurent Vivier wrote: > >>> commit

[Qemu-devel] [PATCH] MAINTAINERS: Add section for FPU emulation

2016-01-26 Thread Peter Maydell
Add an entry to the MAINTAINERS file for our softfloat FPU emulation code. This code is only 'odd fixes' but it's useful to record who to cc on patches to it. Signed-off-by: Peter Maydell --- Would anybody else like to be listed here (ie to be cc'd on softfloat patches)

Re: [Qemu-devel] [RFC 0/10] Support Receive-Segment-Offload(RSC) for WHQL test of Window guest

2016-01-26 Thread Wei Xu
On 01/26/2016 02:44 PM, Fam Zheng wrote: On Tue, 01/26 06:24, w...@redhat.com wrote: Wei Xu (10): 'Segment', 'Chain' and 'Status' enumeration. Initilize & Cleanup. Chain lookup and packets caching. Tcp general data coalescing The draining timer IPv4 checksum. TCP control

[Qemu-devel] [PATCH v4 01/10] qom: add helpers for UserCreatable object types

2016-01-26 Thread Daniel P. Berrange
The QMP monitor code has two helper methods object_add and qmp_object_del that are called from several places in the code (QMP, HMP and main emulator startup). The HMP and main emulator startup code also share further logic that extracts the qom-type & id values from a qdict. We soon need to use

[Qemu-devel] [PATCH v4 00/10] Make qemu-img/qemu-nbd/qemu-io CLI more flexible

2016-01-26 Thread Daniel P. Berrange
This series of patches expands the syntax of the qemu-img, qemu-nbd and qemu-io commands to make them more flexible. v0: https://lists.gnu.org/archive/html/qemu-devel/2015-10/msg04365.html v1: https://lists.gnu.org/archive/html/qemu-devel/2015-12/msg04014.html v2:

[Qemu-devel] [PATCH v4 03/10] qemu-nbd: add support for --object command line arg

2016-01-26 Thread Daniel P. Berrange
Allow creation of user creatable object types with qemu-nbd via a new --object command line arg. This will be used to supply passwords and/or encryption keys to the various block driver backends via the recently added 'secret' object type. # printf letmein > mypasswd.txt # qemu-nbd --object

[Qemu-devel] [PATCH v4 02/10] qemu-img: add support for --object command line arg

2016-01-26 Thread Daniel P. Berrange
Allow creation of user creatable object types with qemu-img via a new --object command line arg. This will be used to supply passwords and/or encryption keys to the various block driver backends via the recently added 'secret' object type. # printf letmein > mypasswd.txt # qemu-img info

[Qemu-devel] [PATCH v4 04/10] qemu-io: add support for --object command line arg

2016-01-26 Thread Daniel P. Berrange
Allow creation of user creatable object types with qemu-io via a new --object command line arg. This will be used to supply passwords and/or encryption keys to the various block driver backends via the recently added 'secret' object type. # printf letmein > mypasswd.txt # qemu-io --object

[Qemu-devel] [PATCH v4 10/10] qemu-io: use no_argument/required_argument constants

2016-01-26 Thread Daniel P. Berrange
When declaring the 'struct option' array, use the standard constants no_argument/required_argument, instead of magic values 0 and 1. Reviewed-by: Eric Blake Signed-off-by: Daniel P. Berrange --- qemu-io.c | 30 +++--- 1 file

[Qemu-devel] [PATCH v4 06/10] qemu-nbd: allow specifying image as a set of options args

2016-01-26 Thread Daniel P. Berrange
Currently qemu-nbd allows an image filename to be passed on the command line, but unless using the JSON format, it does not have a way to set any options except the format eg qemu-nbd https://127.0.0.1/images/centos7.iso qemu-nbd /home/berrange/demo.qcow2 This adds a --image-opts arg that

[Qemu-devel] [PATCH v4 05/10] qemu-io: allow specifying image as a set of options args

2016-01-26 Thread Daniel P. Berrange
Currently qemu-io allows an image filename to be passed on the command line, but unless using the JSON format, it does not have a way to set any options except the format eg qemu-io https://127.0.0.1/images/centos7.iso qemu-io /home/berrange/demo.qcow2 This adds a --image-opts arg that

[Qemu-devel] [PATCH v4 08/10] qemu-nbd: don't overlap long option values with short options

2016-01-26 Thread Daniel P. Berrange
When defining values for long options, the normal practice is to start numbering from 256, to avoid overlap with the range of valid values for short options. Reviewed-by: Eric Blake Signed-off-by: Daniel P. Berrange --- qemu-nbd.c | 12 ++-- 1

[Qemu-devel] [PATCH v4 09/10] qemu-nbd: use no_argument/required_argument constants

2016-01-26 Thread Daniel P. Berrange
When declaring the 'struct option' array, use the standard constants no_argument/required_argument, instead of magic values 0 and 1. Reviewed-by: Eric Blake Signed-off-by: Daniel P. Berrange --- qemu-nbd.c | 47

[Qemu-devel] [PATCH v4 07/10] qemu-img: allow specifying image as a set of options args

2016-01-26 Thread Daniel P. Berrange
Currently qemu-img allows an image filename to be passed on the command line, but unless using the JSON format, it does not have a way to set any options except the format eg qemu-img info https://127.0.0.1/images/centos7.iso This adds a --image-opts arg that indicates that the positional

[Qemu-devel] [PULL 03/49] char: don't assume telnet initialization will not block

2016-01-26 Thread Paolo Bonzini
From: "Daniel P. Berrange" The current code for doing telnet initialization is writing to a socket without checking the return status. While it is highly unlikely to be a problem when writing to a bare socket, as the buffers are large enough to prevent blocking, this cannot

[Qemu-devel] [PULL 00/49] chardev, NBD, cpus, scripts/ changes for 2015-01-26

2016-01-26 Thread Paolo Bonzini
The following changes since commit 3db34bf64ab4f8797565dd8750003156c32b301d: Merge remote-tracking branch 'remotes/afaerber/tags/qom-devices-for-peter' into staging (2016-01-18 17:40:50 +) are available in the git repository at: git://github.com/bonzini/qemu.git tags/for-upstream for

[Qemu-devel] [PULL 01/49] char: remove fixed length filename allocation

2016-01-26 Thread Paolo Bonzini
From: "Daniel P. Berrange" A variety of places were snprintf()ing into a fixed length filename buffer. Some of the buffers were stack allocated, while another was heap allocated with g_malloc(). Switch them all to heap allocated using g_strdup_printf() avoiding arbitrary

[Qemu-devel] [PULL 07/49] scripts/kvm/kvm_stat: Cleanup of multiple imports

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Removed multiple imports of the same module and moved all imports to the top. It is not necessary to import a module each time one of its functions/classes is used. For readability each import should get its own line. Signed-off-by: Janosch Frank

[Qemu-devel] [PULL 06/49] qemu-char: avoid leak in qemu_chr_open_pp_fd

2016-01-26 Thread Paolo Bonzini
drv leaks if qemu_chr_alloc returns an error. Signed-off-by: Paolo Bonzini --- qemu-char.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 7ded3c2..ae813d0 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -1740,18

  1   2   3   4   >