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: > [...] >> > +static void bcm2835_peripherals_init(Object *obj) >> > +{ >>

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] [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 library: ./configure ${TARGETS

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: O

[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 -traffic-mirrorer,id=m0,netdev=hn0,queue=tx,outdev=

Re: [Qemu-devel] [PATCH v4] qom, qmp, hmp, qapi: create qom-type-prop-list for class properties

2016-01-26 Thread Valentin Rakush
Hi Eric, On Mon, Jan 25, 2016 at 8:43 PM, Eric Blake wrote: > On 01/22/2016 01:20 PM, Valentin Rakush wrote: > > Hi Eric, hi Daniel, > > > > Re dashes in the command name > > > > AFAICC, the QOM related command in HMP use dash "-". For example, > qom-list > > and qom-set. If we will change dash

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 guest page, but also for host >

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 natively 32-bit machine.) th

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] 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 virt

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 > > --- > > tests/qemu-iotests/118 | 4 +++- > > 1 file changed, 3 insertions(+

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 you can Ack this one,

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] [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 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 bdrv_close_all()

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 Mammedov wrote: > > > > Merging bot

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 at: > > https://

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 st

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 m

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 uses. > > > > Edua

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 > > Eduardo Habkost (5): > q

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 also >> for host. So prot1

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 > Files\\Tencent\\WeChat\\WeC

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 insertions(+) > > > > diff --git a/include

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

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

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 > and LRUs. > > In this case libvirt running Q

[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

[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 +++ b/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 --- block.c

[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 bdrv_round_to_clusters(BlockDriv

[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 non-persis

[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 --- /dev/null +++ b/

[Qemu-devel] [RFC PATCH 08/16] qmp: Add optional parameter "persistent" in block-dirty-bitmap-add

2016-01-26 Thread Fam Zheng
When omitted it defaults to false with unchanged behavior. When set to true, the created dirty bitmap is made persistent if supported, it requires support from the active image format. Otherwise an error is returned. Signed-off-by: Fam Zheng --- blockdev.c | 8 +++- qapi/block-cor

[Qemu-devel] [RFC PATCH 03/16] block: Allow .bdrv_close callback to release dirty bitmaps

2016-01-26 Thread Fam Zheng
If the driver owns some dirty bitmaps, this assertion will fail. The correct place to release them is in bdrv_close, so move the assertion one line down. Signed-off-by: Fam Zheng --- block.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index afb71c0..f

[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 08236f2..a9d6617 100644 --- a/blo

[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 a/tests/qemu-iote

[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 | 5 tests/qem

[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 @@ { 'enum': 'BlockdevDriver'

[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. Sign

[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 ++ 3 files changed,

[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 scsi-{hd,cd},bus=f

[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 usb_device_post_load

[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 cdd8655..ba7 100644 ---

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 fal

[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(+) create mode 100755

[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 files changed, 4 ins

[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 +- tests/qemu-iotests/0

[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 b/hw/usb/dev-uas.c index 38b26c5..4f

[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 tri

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 repl

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" wrote: > > > > > > > On Fr

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] [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 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) -Tte

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 $(TARGET_DIR)$@") + > > %.

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 elf_i386 > > > -Ttext

[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(-) diff --git a/include/qemu/osd

[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 --- fpu/softfloat.

[Qemu-devel] [PATCH 0/4] fpu: Remove use of int_fast*_t types

2016-01-26 Thread Peter Maydell
This patchset removes the uses of int_fast*_t types from the softfloat code: * the return types for the "convert to 16 bit integer" functions are changed to int16_t * uses of int_fast*_t for a shift count or an exponent value are changed to int Basically, where the type was being used to m

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 read

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 changed, 2 insertions(+) > > diff --git a/nbd.c b/nbd.c > ind

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] 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 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 Han, Huaitong: > What is the host

[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 'int'

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 H

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 audio queue. thanks, Gerd

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 I'm running >>> kernel I'm getting next error: >>> >

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 multiple choices for how to respond to errors and > > choose

Re: [Qemu-devel] [PATCH 2/8] qmp: create qmp_savevm command

2016-01-26 Thread Peter Krempa
On Tue, Jan 19, 2016 at 19:11:05 +0100, Markus Armbruster wrote: > "Denis V. Lunev" writes: > > > On 01/18/2016 06:58 PM, Markus Armbruster wrote: > >> "Denis V. Lunev" writes: ... > > The overloaded interface you propose is more complex than it seems. You > hide the complexity by not docume

Re: [Qemu-devel] [PATCH 2/8] qmp: create qmp_savevm command

2016-01-26 Thread Peter Krempa
On Fri, Jan 22, 2016 at 16:31:04 +0100, Markus Armbruster wrote: > "Denis V. Lunev" writes: > > On 01/19/2016 09:11 PM, Markus Armbruster wrote: > >> "Denis V. Lunev" writes: [...] > >> This would be like HMP savevm with the following differences: > >> > >> * Separate parameters for tag and ID.

Re: [Qemu-devel] [PATCH v4 00/14] Implement TLS support to QEMU NBD server & client

2016-01-26 Thread Paolo Bonzini
On 21/01/2016 17:37, Daniel P. Berrange wrote: > This is an update of the series previously posted: > > v1: https://lists.gnu.org/archive/html/qemu-devel/2015-11/msg06126.html > v2: https://lists.gnu.org/archive/html/qemu-devel/2016-01/msg01580.html > v3: https://lists.gnu.org/archive/html

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 5be7d9f1b1452613b95c6ba70b8d

[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) ? Richard? Aurelien? MA

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 p

[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: https://lists.gnu.org/archi

[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 secr

[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 --object

[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 secret

[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 changed, 15 insertions(+), 15 deletions(-) di

[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 i

[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 indicate

[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 file changed, 6 insertions(+), 6 deletions(

[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 --- 1 file changed, 24 insertions(+), 2

[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 file

[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 be assumed safe with T

[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 length restrictions. Thi

[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 Message-Id: <1452525484-323

[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 +1740,19 @@ static Ch

[Qemu-devel] [PULL 04/49] char: introduce support for TLS encrypted TCP chardev backend

2016-01-26 Thread Paolo Bonzini
From: "Daniel P. Berrange" This integrates support for QIOChannelTLS object in the TCP chardev backend. If the 'tls-creds=NAME' option is passed with the '-chardev tcp' argument, then it will setup the chardev such that the client is required to establish a TLS handshake when connecting. There is

[Qemu-devel] [PULL 15/49] scripts/kvm/kvm_stat: Introduce main function

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank The main function should be the main location for initialization and helps encapsulating variables into a scope. This way they don't have to be global and might be mistaken for local ones. As the providers variable is scoped now it can't be accessed from within the Stats clas

[Qemu-devel] [PULL 02/49] char: convert from GIOChannel to QIOChannel

2016-01-26 Thread Paolo Bonzini
From: "Daniel P. Berrange" In preparation for introducing TLS support to the TCP chardev backend, convert existing chardev code from using GIOChannel to QIOChannel. This simplifies the chardev code by removing most of the OS platform conditional code for dealing with file descriptor passing. Sig

[Qemu-devel] [PULL 16/49] scripts/kvm/kvm_stat: Fix spaces around keyword assignments

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Keyword assignments should not not have spaces around the equal character according to PEP8. Reviewed-by: Jason J. Herne Signed-off-by: Janosch Frank Message-Id: <1452525484-32309-11-git-send-email-fran...@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini --- scripts/kvm/k

[Qemu-devel] [PULL 11/49] scripts/kvm/kvm_stat: Mark globals in functions

2016-01-26 Thread Paolo Bonzini
From: Janosch Frank Updating globals over the globals().update() method is not the standard way of changing globals. Marking variables as global and modifying them the standard way is better readable. Signed-off-by: Janosch Frank Message-Id: <1452525484-32309-6-git-send-email-fran...@linux.vnet

[Qemu-devel] [PULL 05/49] docs: Style the command and its options in the synopsis

2016-01-26 Thread Paolo Bonzini
From: Sitsofe Wheeler Signed-off-by: Sitsofe Wheeler Message-Id: <1452718226-25001-1-git-send-email-sits...@yahoo.com> Signed-off-by: Paolo Bonzini --- fsdev/virtfs-proxy-helper.texi | 2 +- qemu-doc.texi | 8 qemu-ga.texi | 2 +- qemu-img.texi

  1   2   3   4   >