Re: [Qemu-devel] ppc: regression in 2.7.0-rc3 on rfi/rfid/hrfi instructions

2016-08-25 Thread Hervé Poussineau
Le 25/08/2016 à 23:27, Benjamin Herrenschmidt a écrit : On Thu, 2016-08-25 at 22:14 +0200, Hervé Poussineau wrote: Fixes: a2e71b28e832346409efc795ecd1f0a2bcb705a3 Reported-by: Hervé Poussineau Tested-by: Hervé Poussineau For the problem to press enter to "activate this console", this is anot

Re: [Qemu-devel] [PATCH 2/3] qemu: Implement virtio-pstore device

2016-08-25 Thread Namhyung Kim
Hi Daniel, On Wed, Aug 24, 2016 at 06:00:51PM -0400, Daniel P. Berrange wrote: > > > diff --git a/hw/virtio/virtio-pstore.c b/hw/virtio/virtio-pstore.c > > new file mode 100644 > > index 000..b8fb4be > > --- /dev/null > > +++ b/hw/virtio/virtio-pstore.c > > @@ -0,0 +1,699 @@ > > +/* > > + * V

[Qemu-devel] [PATCH] libqos: fix bugs in qvirtqueue_kick()

2016-08-25 Thread zhangshuai
From: Zhang Shuai The idx and ring[] of vring_avail is 16-bit, but the writel is 32-bit, the second writel will cover the ring[free_head] with 0. So use writew to replace writel to fix the bug. Signed-off-by: zhangshuai --- tests/libqos/virtio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 del

[Qemu-devel] [PATCH 2/2] vmxcap: Add TSC scaling bit

2016-08-25 Thread Eduardo Habkost
Signed-off-by: Eduardo Habkost --- scripts/kvm/vmxcap | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/kvm/vmxcap b/scripts/kvm/vmxcap index 9af71ea..2220255 100755 --- a/scripts/kvm/vmxcap +++ b/scripts/kvm/vmxcap @@ -173,6 +173,7 @@ controls = [ 16: 'RDSEED exiting',

[Qemu-devel] [PATCH 1/2] vmxcap: Show raw MSR value

2016-08-25 Thread Eduardo Habkost
This will be helpful to allow checking of bits that are not in the 'bits' table yet. Signed-off-by: Eduardo Habkost --- scripts/kvm/vmxcap | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/kvm/vmxcap b/scripts/kvm/vmxcap index 8f0371f..9af71ea 100755 --- a/scripts/kvm/vmxcap +++ b/scri

[Qemu-devel] [PATCH 0/2] vmxcap: Show raw MSR value, add TSC scaling bit

2016-08-25 Thread Eduardo Habkost
Eduardo Habkost (2): vmxcap: Show raw MSR value vmxcap: Add TSC scaling bit scripts/kvm/vmxcap | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4

Re: [Qemu-devel] Effective way to test PowerPC lwbrx instruction

2016-08-25 Thread Thomas Huth
On 25.08.2016 18:55, G 3 wrote: > > On Aug 25, 2016, at 6:03 PM, Thomas Huth wrote: > >> On 25.08.2016 14:54, G 3 wrote: >>> I'm chasing down a bug with QEMU that causes audio to fail on a Mac OS >>> guest. In this file: >>> https://github.com/nixxcode/AppleUSBAudio-273.4.1/blob/master/AppleUSBAu

[Qemu-devel] [Bug 1617114] [NEW] Qemu 2.6.0 freezes with windows guests

2016-08-25 Thread Javier
Public bug reported: When launching qemu with the same command line as before 2.6.0, with SDL display, with virtio, for a win-10 guest: qemu-system-x86_64 -enable-kvm -name win-10 -machine type=pc,accel=kvm -cpu host -smp cores=1,threads=2,sockets=1 -m 2.7G -balloon virtio -drive file=/home//.qem

Re: [Qemu-devel] Effective way to test PowerPC lwbrx instruction

2016-08-25 Thread G 3
On Aug 25, 2016, at 6:03 PM, Thomas Huth wrote: On 25.08.2016 14:54, G 3 wrote: I'm chasing down a bug with QEMU that causes audio to fail on a Mac OS guest. In this file: https://github.com/nixxcode/AppleUSBAudio-273.4.1/blob/master/ AppleUSBAudioClip.cpp is where a lot of assembly languag

Re: [Qemu-devel] Effective way to test PowerPC lwbrx instruction

2016-08-25 Thread Thomas Huth
On 25.08.2016 14:54, G 3 wrote: > I'm chasing down a bug with QEMU that causes audio to fail on a Mac OS > guest. In this file: > https://github.com/nixxcode/AppleUSBAudio-273.4.1/blob/master/AppleUSBAudioClip.cpp > is where a lot of assembly language code is located. I think one or more > of the P

Re: [Qemu-devel] [PATCH COLO-Frame v18 00/34] COarse-grain LOck-stepping(COLO) Virtual Machines for Non-stop Service (FT)

2016-08-25 Thread Amit Shah
On (Wed) 03 Aug 2016 [20:25:38], zhanghailiang wrote: > This is the 18th version of COLO FT feature. > > It is based on '[PATCH v24 00/12] Block replication for continuous > checkpoints' series. > The complete codes can be found from the link: > https://github.com/coloft/qemu/commits/colo-v3.1-pe

Re: [Qemu-devel] [PATCH COLO-Frame v18 02/34] migration: Introduce capability 'x-colo' to migration

2016-08-25 Thread Amit Shah
On (Wed) 03 Aug 2016 [20:25:40], zhanghailiang wrote: > We add helper function colo_supported() to indicate whether > colo is supported or not, with which we use to control whether or not > showing 'x-colo' string to users, they can use qmp command > 'query-migrate-capabilities' or hmp command 'inf

Re: [Qemu-devel] [PATCH COLO-Frame v18 01/34] configure: Add parameter for configure to enable/disable COLO support

2016-08-25 Thread Amit Shah
On (Wed) 03 Aug 2016 [20:25:39], zhanghailiang wrote: > configure --enable-colo/--disable-colo to switch COLO > support on/off. > COLO support is On by default. Can you please make this the last patch in the series - so we get the code in before we add in the config option? Better for bisection,

Re: [Qemu-devel] ppc: regression in 2.7.0-rc3 on rfi/rfid/hrfi instructions

2016-08-25 Thread Benjamin Herrenschmidt
On Thu, 2016-08-25 at 22:14 +0200, Hervé Poussineau wrote: >  > Fixes: a2e71b28e832346409efc795ecd1f0a2bcb705a3 > Reported-by: Hervé Poussineau > Tested-by: Hervé Poussineau > > For the problem to press enter to "activate this console", this is > another regression. > However, I was unable to pi

Re: [Qemu-devel] ppc: regression in 2.7.0-rc3 on rfi/rfid/hrfi instructions

2016-08-25 Thread Hervé Poussineau
Le 25/08/2016 à 07:33, Benjamin Herrenschmidt a écrit : On Thu, 2016-08-25 at 11:31 +1000, Benjamin Herrenschmidt wrote: Interesting, the problem is only with 603, not 604. I think I might have broken something with the 603 SW TLB loading stuff which is a bit weird, I'll have a look. Thanks.

[Qemu-devel] [PATCH] fixup! int128: Use __int128 if available

2016-08-25 Thread Alex Bennée
--- ajb: - fixup the test-128 test case --- tests/test-int128.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/test-int128.c b/tests/test-int128.c index 4390123..b86a3c7 100644 --- a/tests/test-int128.c +++ b/tests/test-int128.c @@ -41,7 +41,7

[Qemu-devel] Effective way to test PowerPC lwbrx instruction

2016-08-25 Thread G 3
I'm chasing down a bug with QEMU that causes audio to fail on a Mac OS guest. In this file: https://github.com/nixxcode/ AppleUSBAudio-273.4.1/blob/master/AppleUSBAudioClip.cpp is where a lot of assembly language code is located. I think one or more of the PowerPC instructions might be incor

Re: [Qemu-devel] [PATCH] translate: early exit in tb_flush if there is no tcg

2016-08-25 Thread Christian Borntraeger
On 08/25/2016 02:11 PM, Christian Borntraeger wrote: > tb_flush does all kind of things, which are very tcg specific. As it > is called from some places even for KVM (e.g. gdb server) it is better > to detect these cases and do an early exit. > This also fixes a crash in the gdb server that was tri

[Qemu-devel] [PATCH] translate: early exit in tb_flush if there is no tcg

2016-08-25 Thread Christian Borntraeger
tb_flush does all kind of things, which are very tcg specific. As it is called from some places even for KVM (e.g. gdb server) it is better to detect these cases and do an early exit. This also fixes a crash in the gdb server that was triggered by commit 909eaac9bbc2 ("tb hash: track translated blo

Re: [Qemu-devel] [PATCH] correctly handle resize of empty hash tree

2016-08-25 Thread Christian Borntraeger
On 08/11/2016 05:41 AM, Emilio G. Cota wrote: > On Thu, Aug 11, 2016 at 10:45:02 +0200, Igor Mammedov wrote: >> On Wed, 10 Aug 2016 17:19:48 +0200 >> Paolo Bonzini wrote: >>> The patch makes sense, but I think we don't need to call qht_reset_size >>> at all. >>> >>> tb_flush should not do anything

Re: [Qemu-devel] QEMU IP Address Accessibility

2016-08-25 Thread Dr. David Alan Gilbert
* Joey Connelly (joeyconne...@u.boisestate.edu) wrote: > Hey QEMU devs team, > > I'm a CS graduate student working on Virtual Machine Software Security > research at Boise State University. I was hoping I could have a few minutes > of your time to ask a few simple QEMU specific questions. > > *[1

Re: [Qemu-devel] [Qemu-stable] [ANNOUNCE] QEMU 2.6.1 Stable released

2016-08-25 Thread Michael Roth
Quoting Peter Lieven (2016-08-25 01:38:13) > Am 17.08.2016 um 21:30 schrieb Michael Roth: > > Hi everyone, > > > > I am pleased to announce that the QEMU v2.6.1 stable release is now > > available: > > > >http://wiki.qemu.org/download/qemu-2.6.1.tar.bz2 > > > > v2.6.1 is now tagged in the offic

[Qemu-devel] QEMU IP Address Accessibility

2016-08-25 Thread Joey Connelly
Hey QEMU devs team, I'm a CS graduate student working on Virtual Machine Software Security research at Boise State University. I was hoping I could have a few minutes of your time to ask a few simple QEMU specific questions. *[1.]* When creating a QEMU process, you can set the VM’s IP address w

[Qemu-devel] [PATCH v3 3/3] iotests: Do not rely on unavailable domains in 162

2016-08-25 Thread Max Reitz
There are some (mostly ISP-specific) name servers who will redirect non-existing domains to special hosts. In this case, we will get a different error message when trying to connect to such a host, which breaks test 162. 162 needed this specific error message so it can confirm that qemu was indeed

[Qemu-devel] [PATCH v3 2/3] iotests: Remove raciness from 162

2016-08-25 Thread Max Reitz
With qemu-nbd's new --fork option, we no longer need to launch it the hacky way. Suggested-by: Sascha Silbe Signed-off-by: Max Reitz --- tests/qemu-iotests/162 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/qemu-iotests/162 b/tests/qemu-iotests/162 index 0b43ea3..c7

[Qemu-devel] [PATCH v3 0/3] iotests: Fix test 162

2016-08-25 Thread Max Reitz
162 is potentially racy and makes some invalid assumptions about what should happen when connecting to a non-existing domain name. This series fixes both issues. v3: [Sascha] - Added patches 1 and 2 - Dropped the raciness from patch 3 Max Reitz (3): qemu-nbd: Add --fork option iotests: Remo

[Qemu-devel] [PATCH v3 1/3] qemu-nbd: Add --fork option

2016-08-25 Thread Max Reitz
Using the --fork option, one can make qemu-nbd fork the worker process. The original process will exit on error of the worker or once the worker enters the main loop. Suggested-by: Sascha Silbe Signed-off-by: Max Reitz --- qemu-nbd.c | 15 ++- 1 file changed, 14 insertions(+), 1 del

[Qemu-devel] [PATCH RFC 06/22] block/pcache: restrict cache size

2016-08-25 Thread Pavel Butsykin
Add pcache-full-size open parameter. Signed-off-by: Pavel Butsykin --- block/pcache.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/block/pcache.c b/block/pcache.c index f5022f9..54d4526 100644 --- a/block/pcache.c +++ b/block/pcache.c @@ -79,6 +79,8

[Qemu-devel] [PATCH RFC 09/22] block/pcache: separation AIOCB on requests

2016-08-25 Thread Pavel Butsykin
for case when the cache partially covers request we are part of the request is filled from the cache, and the other part request from disk. Also add reference counting for nodes, as way to maintain multithreading. There is still no full synchronization in multithreaded mode. Signed-off-by: Pavel

Re: [Qemu-devel] A question about this commit 9894dc0cdcc397ee5b26370bc53da6d360a363c2

2016-08-25 Thread Daniel P. Berrange
On Thu, Aug 25, 2016 at 01:21:47PM +, Gaohaifeng (A) wrote: > On Tue, Aug 23, 2016 at 08:57:44AM +, Gaohaifeng (A) wrote: > > Hi Daniel & Paolo, > > > > > > Commit 9894dc0c "char: convert from GIOChannel to QIOChannel", about > > > > > > the below code segment: > > > > > > -static gboole

Re: [Qemu-devel] [PATCH v2] iotests: Do not rely on unavailable domains in 162

2016-08-25 Thread Sascha Silbe
Dear Max, Max Reitz writes: [tests/qemu-iotests/162] [...] > +while true; do > +port=$((RANDOM + 32768)) > +$QEMU_NBD -p $port -f raw null-co:// &> /dev/null & > +nbd_pid=$! > +sleep 0.5 > + > +# Check whether the process is still alive > +# (which is the case if the serv

[Qemu-devel] [PATCH RFC 19/22] block/pcache: add pcache node assert

2016-08-25 Thread Pavel Butsykin
In case of node assert we will print the fields of a pcache node, this can be useful for catching bugs. Signed-off-by: Pavel Butsykin --- block/pcache.c | 52 +++- 1 file changed, 35 insertions(+), 17 deletions(-) diff --git a/block/pcache.c b/blo

Re: [Qemu-devel] [libvirt] [RFC] libvirt vGPU QEMU integration

2016-08-25 Thread Laine Stump
On 08/24/2016 06:29 PM, Daniel P. Berrange wrote: On Thu, Aug 18, 2016 at 09:41:59AM -0700, Neo Jia wrote: Hi libvirt experts, I am starting this email thread to discuss the potential solution / proposal of integrating vGPU support into libvirt for QEMU. Some quick background, NVIDIA is implem

[Qemu-devel] [PATCH RFC 13/22] block/pcache: add generic request complete

2016-08-25 Thread Pavel Butsykin
his change allow us to generalize the completion of all requests. Signed-off-by: Pavel Butsykin --- block/pcache.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/block/pcache.c b/block/pcache.c index 435f2b4..1ff4c6a 100644 --- a/block/pcache.c +++ b/block/pc

Re: [Qemu-devel] [PATCH for-2.7] wxx: Fix broken build (mkdtemp unavailable)

2016-08-25 Thread Peter Maydell
On 25 August 2016 at 10:36, Peter Maydell wrote: > On 23 August 2016 at 16:01, Sascha Silbe wrote: >> Glad to hear. It would be possibly to support the combination of glib < >> 2.30.0 AND windows, but only by copying a considerable amount of code >> from glib. I'd prefer to avoid that if we can h

Re: [Qemu-devel] [PATCH for-2.7] wxx: Fix broken build (mkdtemp unavailable)

2016-08-25 Thread Peter Maydell
On 23 August 2016 at 16:01, Sascha Silbe wrote: > Glad to hear. It would be possibly to support the combination of glib < > 2.30.0 AND windows, but only by copying a considerable amount of code > from glib. I'd prefer to avoid that if we can help it. If we want to raise the minimum glib version r

Re: [Qemu-devel] About TCG_AREG0

2016-08-25 Thread Peter Maydell
On 25 August 2016 at 09:53, Ren Kimura wrote: > Hi. > I have a question about TCG_AREG0 register. > > TCG_AREG0 register is used to point CPUArchState *env. Is is correct? Yes. > When host architecture is x64, all memory operations to 0x**(r14) that > actually qemu execute equivalent to access

Re: [Qemu-devel] [PATCH] 9pfs: disallow / in path components

2016-08-25 Thread Greg Kurz
On Wed, 24 Aug 2016 20:23:22 +0100 Peter Maydell wrote: > On 24 August 2016 at 17:40, Greg Kurz wrote: > > On Wed, 24 Aug 2016 16:00:24 +0100 > > Peter Maydell wrote: > >> Do we also need ".." and "." to be illegal names (for at least most > >> operations)? > > > I understand how ".." coul

[Qemu-devel] [PATCH RFC 14/22] block/pcache: add support for rescheduling requests

2016-08-25 Thread Pavel Butsykin
Now we can't drop nodes until aio write request will not be completed, because there is no guarantee that in the interval of time between the start request and its completion can be cached overlapping chunk of blocks and some data in the cache will be irrelevant. Also became possible when aio writ

[Qemu-devel] [PATCH RFC 18/22] block/pcache: add pcache skip large aio read

2016-08-25 Thread Pavel Butsykin
This change will allow more efficient use of cache memory and filter the case for which the pcache isn't efficient. We miss requests that are not required in the optimization and thereby reducing the number of unnecessary readaheads. Add pcache-max-aio-size open parameter. Signed-off-by: Pavel B

[Qemu-devel] [PATCH RFC 03/22] util/rbtree: add rbtree from linux kernel

2016-08-25 Thread Pavel Butsykin
Why don't we use rbtree from glib? We need pointer to the parent node. For optimal implementation storing of cached chunks in the rbtree need to get next and previous nodes and content of parent node is very useful for effective implementation of these functions. In this implementation of rbtree (

[Qemu-devel] [PATCH RFC 21/22] block/pcache: add write through node

2016-08-25 Thread Pavel Butsykin
Write-through is another way to keep the cache up-to-date. Even if this case will be rare, a node write buf is easier than a node drop. Signed-off-by: Pavel Butsykin --- block/pcache.c | 28 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/block/pcache.

[Qemu-devel] [PATCH RFC 05/22] block/pcache: add aio requests into cache

2016-08-25 Thread Pavel Butsykin
For storing requests use an rbtree, here are add basic operations on the rbtree to work with cache nodes. Signed-off-by: Pavel Butsykin --- block/pcache.c | 190 - 1 file changed, 189 insertions(+), 1 deletion(-) diff --git a/block/pcache

[Qemu-devel] [PATCH RFC 17/22] block/pcache: skip readahead for non-sequential requests

2016-08-25 Thread Pavel Butsykin
When randomly reading data will be a lot of readahead, resulting in a loss of productivity. In order to avoid added checking the requests line before making the readahead. It also makes no sense to cache new requests, because a cache hit on this data is very unlikely. Signed-off-by: Pavel Butsykin

[Qemu-devel] [PATCH RFC 12/22] block/pcache: implement read cache to qiov and drop node during aio write

2016-08-25 Thread Pavel Butsykin
After applying this patch aio read can pick up data from the pcache. for correct driver work added 3 things: 1. Filling the qiov out of the cache. 2. Request completes. This is necessary to inform the upper level, that the data for the request has already been obtained. 3. Cache Invalidation in th

[Qemu-devel] About TCG_AREG0

2016-08-25 Thread Ren Kimura
Hi. I have a question about TCG_AREG0 register. TCG_AREG0 register is used to point CPUArchState *env. Is is correct? When host architecture is x64, all memory operations to 0x**(r14) that actually qemu execute equivalent to access to env->register? Thanks Ren

[Qemu-devel] [PATCH RFC 22/22] block/pcache: drop used pcache node

2016-08-25 Thread Pavel Butsykin
The pcache is directed to certain situations to sequential reads. This concept allows to drop parts of the cache that were already used, which will reduce the size of cache and the number of displaced nodes. Signed-off-by: Pavel Butsykin --- block/pcache.c | 24 +++- 1 file c

[Qemu-devel] [PATCH RFC 08/22] block/pcache: implement pickup parts of the cache

2016-08-25 Thread Pavel Butsykin
Implementation of obtaining fragments of the cache belonging to one area of request. This will allow to handle the case when a request is partially hits the cache. Signed-off-by: Pavel Butsykin --- block/pcache.c | 60 +- 1 file changed, 59

[Qemu-devel] [PATCH RFC 07/22] block/pcache: introduce LRU as method of memory

2016-08-25 Thread Pavel Butsykin
This is a simple solution to the problem of displacement of cache memory. The LRU can be useful to avoid the displacement of the nodes, which have been partially read. Signed-off-by: Pavel Butsykin --- block/pcache.c | 74 +- 1 file changed

[Qemu-devel] [PATCH RFC 20/22] block/pcache: implement pcache error handling of aio cb

2016-08-25 Thread Pavel Butsykin
Added error handling aio requests to pcache driver. If the request fails, then fails all pending requests. Signed-off-by: Pavel Butsykin --- block/pcache.c | 33 ++--- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/block/pcache.c b/block/pcache.c inde

[Qemu-devel] [PATCH RFC 16/22] block/pcache: pcache readahead node around

2016-08-25 Thread Pavel Butsykin
if the next block is cached, then we need to check the size of node to ensure full readahead. Signed-off-by: Pavel Butsykin --- block/pcache.c | 51 +-- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/block/pcache.c b/block/pcache.c

[Qemu-devel] [PATCH RFC 11/22] add QEMU style defines for __sync_add_and_fetch

2016-08-25 Thread Pavel Butsykin
Signed-off-by: Pavel Butsykin --- include/qemu/atomic.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/qemu/atomic.h b/include/qemu/atomic.h index 7e13fca..acf8f68 100644 --- a/include/qemu/atomic.h +++ b/include/qemu/atomic.h @@ -152,6 +152,9 @@ _old;

[Qemu-devel] [PATCH RFC 04/22] block/pcache: add pcache debug build

2016-08-25 Thread Pavel Butsykin
Signed-off-by: Pavel Butsykin --- block/pcache.c | 9 + 1 file changed, 9 insertions(+) diff --git a/block/pcache.c b/block/pcache.c index 74a4bc4..7f221d6 100644 --- a/block/pcache.c +++ b/block/pcache.c @@ -28,6 +28,15 @@ #include "qapi/error.h" #include "qapi/qmp/qstring.h" +#defi

[Qemu-devel] [PATCH RFC 02/22] block/pcache: add own AIOCB block

2016-08-25 Thread Pavel Butsykin
Signed-off-by: Pavel Butsykin --- block/pcache.c | 43 +++ 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/block/pcache.c b/block/pcache.c index 770bbc0..74a4bc4 100644 --- a/block/pcache.c +++ b/block/pcache.c @@ -24,12 +24,22 @@ #include

[Qemu-devel] [PATCH RFC 15/22] block/pcache: simple readahead one chunk forward

2016-08-25 Thread Pavel Butsykin
The performance improvement occurs mainly because of this element. An advantage is achieved due to the fact that from readahead requests can become queued faster than request from Guest OS. Add pcache-readahead-size open parameter. Signed-off-by: Pavel Butsykin --- block/pcache.c | 118

[Qemu-devel] [PATCH RFC 10/22] block/pcache: add check node leak

2016-08-25 Thread Pavel Butsykin
If the pcache has a bug with node reference, then s->death_node_list can help to know about it. Signed-off-by: Pavel Butsykin --- block/pcache.c | 45 +++-- 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/block/pcache.c b/block/pcache.c ind

[Qemu-devel] [PATCH RFC 00/22] I/O prefetch cache

2016-08-25 Thread Pavel Butsykin
The prefetch cache aims to improve the performance of sequential read data. Of most interest here are the requests of a small size of data for sequential read, such requests can be optimized by extending them and moving into the prefetch cache. However, there are 2 issues: - In aggregate only a s

[Qemu-devel] [PATCH RFC 01/22] block/pcache: empty pcache driver filter

2016-08-25 Thread Pavel Butsykin
The basic version of pcache driver for easy preparation of a patch set. Signed-off-by: Pavel Butsykin --- block/Makefile.objs | 1 + block/pcache.c | 156 2 files changed, 157 insertions(+) create mode 100644 block/pcache.c diff --git

Re: [Qemu-devel] A question about this commit 9894dc0cdcc397ee5b26370bc53da6d360a363c2

2016-08-25 Thread Gaohaifeng (A)
On Tue, Aug 23, 2016 at 08:57:44AM +, Gaohaifeng (A) wrote: > Hi Daniel & Paolo, > > > > Commit 9894dc0c "char: convert from GIOChannel to QIOChannel", about > > > > the below code segment: > > > > -static gboolean tcp_chr_read(GIOChannel *chan, GIOCondition cond, > > void *opaque) > > +sta

Re: [Qemu-devel] [PATCH v2 0/8] Improve buffer_is_zero

2016-08-25 Thread Daniel P. Berrange
On Wed, Aug 24, 2016 at 10:48:27AM -0700, Richard Henderson wrote: > Patches 1-4 remove the use of ifunc from the implementation. > > Patch 6 adjusts the x86 implementation a bit more to take > advantage of ptest (in sse4.1) and unaligned accesses (in avx1). > > Patches 3 and 7 are the result of

Re: [Qemu-devel] [Qemu-stable] [PATCH v2 for 2.7] ui: fix refresh of VNC server surface

2016-08-25 Thread Daniel P. Berrange
On Thu, Aug 25, 2016 at 09:15:52AM +0200, Peter Lieven wrote: > Am 24.08.2016 um 17:49 schrieb Daniel P. Berrange: > > On Wed, Aug 24, 2016 at 04:46:31PM +0100, Peter Maydell wrote: > > > On 23 August 2016 at 07:50, Peter Lieven wrote: > > > > Am 16.08.2016 um 18:30 schrieb Daniel P. Berrange: > >

Re: [Qemu-devel] Why Qemu doesn't present L3 cache info for guest?

2016-08-25 Thread Eduardo Habkost
On Thu, Aug 25, 2016 at 03:09:27PM +0800, Shannon Zhao wrote: > Hi guys, > > Looking at the codes, for pc-2.4 machine it enables host-cache-info for > guest so guest can get the L3 cache info of host. But since QEMU has its > own rule to generate ACPI ID, guest will not use the L3 cache correctly.

Re: [Qemu-devel] [PATCH] Avoid additional GET_FEATURES call on vhost-user

2016-08-25 Thread Marc-André Lureau
Hi On Sat, Aug 20, 2016 at 3:28 AM Felipe Franciosi wrote: > Vhost-user requires an early GET_FEATURES call to determine if the > slave supports protocol feature negotiation. An extra GET_FEATURES > call is made after vhost_backend_init() to actually set the device > features. > > This patch mov

[Qemu-devel] [RFC PATCH v2 12/12] pc: skip firmware

2016-08-25 Thread Chao Peng
An ELF format kernel must be specified. Only linux is supported. Signed-off-by: Chao Peng --- hw/i386/pc.c | 92 ++-- include/hw/i386/pc.h | 2 ++ 2 files changed, 69 insertions(+), 25 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c

[Qemu-devel] [RFC PATCH v2 09/12] ich9: enable pm registers when there is no firmware

2016-08-25 Thread Chao Peng
Signed-off-by: Chao Peng --- hw/isa/lpc_ich9.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c index 10d1ee8..28e9911 100644 --- a/hw/isa/lpc_ich9.c +++ b/hw/isa/lpc_ich9.c @@ -484,6 +484,9 @@ static void ich9_lpc_reset(Devic

[Qemu-devel] [RFC PATCH v2 11/12] pc: support direct loading protected/long mode kernel

2016-08-25 Thread Chao Peng
Traditionally a PC follows the following booting steps: QEMU -> BIOS -> bootloader -> kernel realmode code -> kernel protected/longmode code. This process takes lots of time. For light virtualization platform we let QEMU loads protected/long mode kernel directly, hence skipping sever

[Qemu-devel] [RFC PATCH v2 08/12] acpi: patch guest ACPI when there is no firmware

2016-08-25 Thread Chao Peng
From: Haozhong Zhang Traditionally, guest firmware is responsible to patch ACPI tables generated by QEMU. However, no firmware is used with pc-lite and patching ACPI should be done in QEMU for pc-lite. Signed-off-by: Haozhong Zhang --- hw/acpi/nvdimm.c | 6 +- hw/i386/Makefile.objs

[Qemu-devel] [RFC PATCH v2 04/12] pc: make pit configurable

2016-08-25 Thread Chao Peng
Signed-off-by: Chao Peng --- hw/i386/pc.c | 6 -- hw/i386/pc_piix.c| 2 +- hw/i386/pc_q35.c | 2 +- include/hw/i386/pc.h | 5 - 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index ea81283..1d62957 100644 --- a/hw/i386/pc.c +++

[Qemu-devel] [RFC PATCH v2 10/12] q35: initialize MMCFG base when there is no firmware

2016-08-25 Thread Chao Peng
Signed-off-by: Chao Peng --- hw/pci-host/q35.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c index e33d5a5..c5c5fe2 100644 --- a/hw/pci-host/q35.c +++ b/hw/pci-host/q35.c @@ -448,9 +448,18 @@ static void mch_reset(Device

[Qemu-devel] [RFC PATCH v2 07/12] acpi: expose acpi_checksum()

2016-08-25 Thread Chao Peng
From: Haozhong Zhang It will be used in later commits. Signed-off-by: Haozhong Zhang --- hw/acpi/core.c | 2 +- include/hw/acpi/acpi.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/acpi/core.c b/hw/acpi/core.c index e890a5d..95ba06d 100644 --- a/hw/acpi/core.

[Qemu-devel] [RFC PATCH v2 01/12] pc: make smbus configurable

2016-08-25 Thread Chao Peng
Signed-off-by: Chao Peng --- hw/i386/pc.c | 23 +++ hw/i386/pc_q35.c | 12 +++- include/hw/i386/pc.h | 3 +++ 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 022dd1b..66e1961 100644 --- a/hw/i386/pc.c +++ b

[Qemu-devel] [RFC PATCH v2 06/12] acpi: expose data structurs and functions of BIOS linker loader

2016-08-25 Thread Chao Peng
From: Haozhong Zhang Expose some data structures and functions of BIOS linker loader which will be used by later commits. Signed-off-by: Haozhong Zhang --- hw/acpi/bios-linker-loader.c | 83 +-- include/hw/acpi/bios-linker-loader.h | 85 +

[Qemu-devel] [RFC PATCH v2 05/12] acpi: build static _PRT

2016-08-25 Thread Chao Peng
...to reduce the interpretation burden for guest ACPI component. Signed-off-by: Chao Peng --- hw/i386/acpi-build.c | 31 ++- hw/i386/pc.c | 1 + include/hw/i386/pc.h | 2 ++ 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/hw/i386/acpi-build.c

[Qemu-devel] [RFC PATCH v2 02/12] pc: make sata configurable

2016-08-25 Thread Chao Peng
Signed-off-by: Chao Peng --- hw/i386/pc.c | 12 +++- hw/i386/pc_q35.c | 25 +++-- include/hw/i386/pc.h | 2 ++ 3 files changed, 24 insertions(+), 15 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 66e1961..99fb9aa 100644 --- a/hw/i386/pc.c +++

[Qemu-devel] [RFC PATCH v2 00/12] Guest startup time optimization

2016-08-25 Thread Chao Peng
This patchset is trying to optimize guest startup time by disabling or simplifying some features in QEMU. The version 1 can be found at: https://lists.nongnu.org/archive/html/qemu-devel/2016-06/msg04842.html Unlike version 1, this version optimizes Q35 directly instead of introducing a totally new

[Qemu-devel] [RFC PATCH v2 03/12] pc: make pic configurable

2016-08-25 Thread Chao Peng
Signed-off-by: Chao Peng --- hw/i386/pc.c | 1 + hw/i386/pc_q35.c | 21 - include/hw/i386/pc.h | 2 ++ 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 99fb9aa..ea81283 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c

[Qemu-devel] [PATCH 1/2] qapi: Stub out StringOutputVisitor struct support

2016-08-25 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Avoid a segfault when visiting, e.g., the QOM rtc-time property, by implementing the struct callbacks and raising an Error. Signed-off-by: Andreas Färber Updated for changed interface: Signed-off-by: Dr. David Alan Gilbert --- qapi/string-output-visitor.c | 13

[Qemu-devel] [PATCH 2/2] qom: Implement qom-get HMP command

2016-08-25 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Reimplement it based on qmp_qom_get() to avoid converting QObjects back to strings. Inspired-by: Paolo Bonzini Signed-off-by: Andreas Färber Slight fix for bit-rot: Signed-off-by: Dr. David Alan Gilbert --- hmp-commands.hx | 13 + hmp.c |

[Qemu-devel] [PATCH 0/2] qom-get [for 2.8]

2016-08-25 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Hi, I'd noticed a while ago the lack of qom-get and was about to implement it, when I noticed Andreas had implemented it back in March 2015 as part of the larger patch series 'qom: HMP commands to supersede info qtree' ( 1426178624-32638-1-git-send-email-afaer...@

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-08-25 Thread Dong Jia
On Thu, 25 Aug 2016 09:23:53 +0530 Kirti Wankhede wrote: [...] Dear Kirti, I just rebased my vfio-ccw patches to this series. With a little fix, which was pointed it out in my reply to the #3 patch, it works fine. > +static long vfio_mdev_unlocked_ioctl(void *device_data, > +

[Qemu-devel] [Bug 1591611] Re: chroot using qemu-x86_64-static fails on ppc64el

2016-08-25 Thread atul
I tried QEMU with these patches [qemu-x86_64 version 2.6.94 (v2.7.0-rc4-dirty)] but found the same errors as before: bash: ../sysdeps/nptl/fork.c:136: __libc_fork: Assertion `THREAD_GETMEM (self, tid) != ppid' failed. setup_frame: not implemented setup_frame: not implemented qemu: uncaught target

Re: [Qemu-devel] [PATCH 0/7] Improve buffer_is_zero

2016-08-25 Thread Vijay Kilari
On Thu, Aug 25, 2016 at 12:07 PM, Vijay Kilari wrote: > Hi Richard, > > Migration fails on arm64 with these patches. > On the destination VM, follow errors are appearing. > > qemu-system-aarch64: VQ 0 size 0x400 Guest index 0x0 inconsistent with > Host index 0x1937: delta 0xe6c9 > qemu-system-aa

Re: [Qemu-devel] [PATCH v7 3/4] vfio iommu: Add support for mediated devices

2016-08-25 Thread Dong Jia
On Thu, 25 Aug 2016 09:23:54 +0530 Kirti Wankhede wrote: > @@ -769,6 +1090,33 @@ static int vfio_iommu_type1_attach_group(void > *iommu_data, > if (ret) > goto out_free; > > + if (IS_ENABLED(CONFIF_VFIO_MDEV) && !iommu_present(bus) && s/CONFIF_VFIO_MDEV/CONFIG_VFIO_MDEV/

Re: [Qemu-devel] [Qemu-stable] [PATCH v2 for 2.7] ui: fix refresh of VNC server surface

2016-08-25 Thread Peter Lieven
Am 24.08.2016 um 17:49 schrieb Daniel P. Berrange: On Wed, Aug 24, 2016 at 04:46:31PM +0100, Peter Maydell wrote: On 23 August 2016 at 07:50, Peter Lieven wrote: Am 16.08.2016 um 18:30 schrieb Daniel P. Berrange: In previous commit commit c7628bff4138ce906a3620d12e0820c1cf6c140d Auth

[Qemu-devel] Why Qemu doesn't present L3 cache info for guest?

2016-08-25 Thread Shannon Zhao
Hi guys, Looking at the codes, for pc-2.4 machine it enables host-cache-info for guest so guest can get the L3 cache info of host. But since QEMU has its own rule to generate ACPI ID, guest will not use the L3 cache correctly. I also notice that QEMU present L1 and L2 cache for guest via its own