Re: [Qemu-devel] [PATCH v3 04/10] ppc: Create cpu_ppc_set_papr() helper

2016-03-22 Thread Cédric Le Goater
On 03/22/2016 12:15 AM, David Gibson wrote: > On Mon, Mar 21, 2016 at 01:52:34PM +0100, Cédric Le Goater wrote: >> From: Benjamin Herrenschmidt >> >> And move the code adjusting the MSR mask and calling kvmppc_set_papr() >> to it. This allows us to add a few more things such as disabling setting >

Re: [Qemu-devel] [PATCH 0/4] Tweaks around virtio-blk start/stop

2016-03-22 Thread tu bo
Hi Fam: On 03/21/2016 06:57 PM, Fam Zheng wrote: On Thu, 03/17 19:03, tu bo wrote: On 03/17/2016 08:39 AM, Fam Zheng wrote: On Wed, 03/16 14:45, Paolo Bonzini wrote: On 16/03/2016 14:38, Christian Borntraeger wrote: If you just remove the calls to virtio_queue_host_notifier_read, here and

[Qemu-devel] [PATCH v2] usb: Support compilation without poll.h

2016-03-22 Thread Stefan Weil
This is a hack to support compilation with Mingw-w64 which provides a libusb-1.0 package, but no poll.h. Signed-off-by: Stefan Weil --- v2: Modified after feedback from Gerd. hw/usb/host-libusb.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/hw/usb/host-libu

Re: [Qemu-devel] [RFC PATCH 1/2] target-ppc: migrate interrupt vectors address for spapr VM

2016-03-22 Thread Cédric Le Goater
On 03/22/2016 01:15 AM, David Gibson wrote: > On Mon, Mar 21, 2016 at 05:51:22PM +0100, Cédric Le Goater wrote: >> On 03/21/2016 05:18 PM, Thomas Huth wrote: >>> On 21.03.2016 15:02, Cédric Le Goater wrote: This address is changed by the linux kernel using the H_SET_MODE hcall and needs t

Re: [Qemu-devel] [PATCH 0/4] Tweaks around virtio-blk start/stop

2016-03-22 Thread Fam Zheng
On Tue, 03/22 15:10, tu bo wrote: > Hi Fam: > > On 03/21/2016 06:57 PM, Fam Zheng wrote: > >On Thu, 03/17 19:03, tu bo wrote: > >> > >>On 03/17/2016 08:39 AM, Fam Zheng wrote: > >>>On Wed, 03/16 14:45, Paolo Bonzini wrote: > > > On 16/03/2016 14:38, Christian Borntraeger wrote: > >>>

Re: [Qemu-devel] [PATCH qemu v14 01/18] memory: Fix IOMMU replay base address

2016-03-22 Thread Alexey Kardashevskiy
On 03/22/2016 03:59 PM, David Gibson wrote: On Tue, Mar 22, 2016 at 03:28:52PM +1100, Alexey Kardashevskiy wrote: On 03/22/2016 02:26 PM, David Gibson wrote: On Tue, Mar 22, 2016 at 02:12:30PM +1100, Alexey Kardashevskiy wrote: On 03/22/2016 11:49 AM, David Gibson wrote: On Mon, Mar 21, 2016

[Qemu-devel] [PATCH] disas/microblaze: Add missing 'const' attributes

2016-03-22 Thread Stefan Weil
Making the opcode list 'const' saves memory. Some function arguments and local variables needed 'const', too. Add also 'static' to two local functions. Signed-off-by: Stefan Weil --- disas/microblaze.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/disas/micr

[Qemu-devel] [PATCH] util: Improved qemu_hexmap() to include an ascii dump of the buffer

2016-03-22 Thread Isaac Lozano
qemu_hexdump() in util/hexdump.c has been changed to give also include a ascii dump of the buffer. Also, calls to hex_dump() in net/net.c have been replaced with calls to qemu_hexdump(). This takes care of two misc BiteSized Tasks. Signed-off-by: Isaac Lozano <109loza...@gmail.com> --- net/net.c

Re: [Qemu-devel] [PATCH] slirp: Allow to disable IPv4 or IPv6

2016-03-22 Thread Markus Armbruster
Samuel Thibault writes: > Markus Armbruster, on Mon 21 Mar 2016 08:33:52 +0100, wrote: >> Samuel Thibault writes: >> > Make net=0.0.0.0 disable IPv4 and ip6-net=:: disable IPv6, so the user can >> > setup IPv4-only and IPv6-only network environments. >> >> Do "net=" and "ip6-net=" mean anything

Re: [Qemu-devel] [Qemu-stable] [PATCH 28/35] spapr: skip configuration section during migration of older machines

2016-03-22 Thread Greg Kurz
On Mon, 21 Mar 2016 12:28:26 -0500 Michael Roth wrote: > From: Greg Kurz > > Since QEMU 2.4, we have a configuration section in the migration stream. > This must be skipped for older machines, like it is already done for x86. > > This patch fixes the migration of pseries-2.3 from/to QEMU 2.3,

[Qemu-devel] [RFC Design Doc]Speed up live migration by skipping free pages

2016-03-22 Thread Liang Li
I have sent the RFC version patch set for live migration optimization by skipping processing the free pages in the ram bulk stage and received a lot of comments. The related threads can be found at: https://lists.gnu.org/archive/html/qemu-devel/2016-03/msg00715.html https://lists.gnu.org/archive/h

Re: [Qemu-devel] [PATCH] slirp: Allow to disable IPv4 or IPv6

2016-03-22 Thread Thomas Huth
On 22.03.2016 08:41, Markus Armbruster wrote: > Samuel Thibault writes: > >> Markus Armbruster, on Mon 21 Mar 2016 08:33:52 +0100, wrote: >>> Samuel Thibault writes: Make net=0.0.0.0 disable IPv4 and ip6-net=:: disable IPv6, so the user can setup IPv4-only and IPv6-only network environ

Re: [Qemu-devel] [PATCH 0/4] Tweaks around virtio-blk start/stop

2016-03-22 Thread Cornelia Huck
On Tue, 22 Mar 2016 07:45:19 +0800 Fam Zheng wrote: > On Mon, 03/21 14:02, Cornelia Huck wrote: > > On Mon, 21 Mar 2016 20:45:27 +0800 > > Fam Zheng wrote: > > > > > On Mon, 03/21 12:15, Cornelia Huck wrote: > > > > On Mon, 21 Mar 2016 18:57:18 +0800 > > > > Fam Zheng wrote: > > > > > > > > >

Re: [Qemu-devel] [PATCH RFC 1/6] virtio-bus: common ioeventfd infrastructure

2016-03-22 Thread Cornelia Huck
On Tue, 22 Mar 2016 08:24:33 +0800 Fam Zheng wrote: > On Thu, 03/17 11:01, Cornelia Huck wrote: > > diff --git a/include/hw/virtio/virtio-bus.h b/include/hw/virtio/virtio-bus.h > > index 3f2c136..0281cbf 100644 > > --- a/include/hw/virtio/virtio-bus.h > > +++ b/include/hw/virtio/virtio-bus.h > >

Re: [Qemu-devel] [PATCH][RFC] IOMMU: Add Support to VFIO devices with vIOMMU present

2016-03-22 Thread Aviv B.D.
On Mon, Mar 21, 2016 at 4:30 AM, Peter Xu wrote: > On Sat, Mar 19, 2016 at 11:40:04AM +0200, Aviv B.D. wrote: > [...] > > As far as I understand the code, currently there is no way to turn off > the > > IOTLB. > > Furthermore. the IOTLB is not implemented as LRU, and actually caches > > (indefini

Re: [Qemu-devel] [PATCH 3/3] block: remove legacy_dinfo at blk_detach_dev time

2016-03-22 Thread Kevin Wolf
Am 21.03.2016 um 19:14 hat Markus Armbruster geschrieben: > Paolo Bonzini writes: > > > On 21/03/2016 18:30, Markus Armbruster wrote: > >> However, I've now tested my expectation, and it turned out to be wrong. > >> I'm inclined to call that a bug. > > > > --verbose, what is wrong and what was yo

Re: [Qemu-devel] [RFC v1 01/11] tcg: move tb_find_fast outside the tb_lock critical section

2016-03-22 Thread Paolo Bonzini
On 22/03/2016 00:59, Emilio G. Cota wrote: > Good point. Most of my tests have been on x86-on-x86, and the > difference there (for many CPU-intensive benchmarks such as SPEC) was > negligible. > > Just tested the current master booting Alex' debian ARM image, without > LRU, and I see a 20% incre

Re: [Qemu-devel] Query about BiteSizeTasks

2016-03-22 Thread Paolo Bonzini
On 22/03/2016 05:34, haris iqbal wrote: > Hello, > > One more thing I noticed was that there is no function prototype for > the function get_ticks_per_sec(). > > I was planning to use a script to change all the used of > get_ticks_per_sec() to NANOSECONDS_PER_SECOND with an exception of the > f

Re: [Qemu-devel] [PATCH v3 03/10] qom: support arbitrary non-scalar properties with -object

2016-03-22 Thread Markus Armbruster
Eric Blake writes: > On 03/10/2016 11:59 AM, Daniel P. Berrange wrote: >> The current -object command line syntax only allows for >> creation of objects with scalar properties, or a list >> with a fixed scalar element type. Objects which have >> properties that are represented as structs in the Q

Re: [Qemu-devel] [PATCH 0/4] Tweaks around virtio-blk start/stop

2016-03-22 Thread Cornelia Huck
(re-adding cc:s) On Tue, 22 Mar 2016 15:18:05 +0800 Fam Zheng wrote: > On Tue, 03/22 15:10, tu bo wrote: > > Hi Fam: > > > > On 03/21/2016 06:57 PM, Fam Zheng wrote: > > >On Thu, 03/17 19:03, tu bo wrote: > > >> > > >>On 03/17/2016 08:39 AM, Fam Zheng wrote: > > >>>On Wed, 03/16 14:45, Paolo Bo

[Qemu-devel] Call for build instructions for FreeBSD and MacOSX

2016-03-22 Thread Alex Bennée
Hi, I was looking at fixing a FreeBSD compile failure yesterday and I spent a lot of time trying to figure out building on a system that I'm not very familiar with. Today I'm having a quick look at extending the Travis build to MacOSX. In both cases I'm not getting very far and I notice we only r

Re: [Qemu-devel] [RFC PATCH v2 0/9] Core based CPU hotplug for PowerPC sPAPR

2016-03-22 Thread Igor Mammedov
On Tue, 22 Mar 2016 11:22:56 +1100 David Gibson wrote: > On Mon, Mar 21, 2016 at 11:43:34AM +0100, Igor Mammedov wrote: > > On Mon, 21 Mar 2016 14:57:53 +1100 > > David Gibson wrote: > > > > > On Fri, Mar 18, 2016 at 08:59:32AM +0530, Bharata B Rao wrote: > > > > On Thu, Mar 17, 2016 at 09:

Re: [Qemu-devel] [PATCH v3 1/2] QMP: add query-hotpluggable-cpus

2016-03-22 Thread Igor Mammedov
On Tue, 22 Mar 2016 10:39:28 +1100 David Gibson wrote: > On Mon, 21 Mar 2016 11:53:23 +0100 > Igor Mammedov wrote: > > > On Fri, 18 Mar 2016 16:26:28 -0300 > > Eduardo Habkost wrote: > > > > > On Tue, Mar 15, 2016 at 02:24:07PM +0100, Igor Mammedov wrote: > > > [...] > > > > diff --git

Re: [Qemu-devel] [PATCH 0/4] Tweaks around virtio-blk start/stop

2016-03-22 Thread Paolo Bonzini
On 22/03/2016 10:07, Cornelia Huck wrote: > So far, we had the best results with my refactoring + the mutex/bh > change. Two problems: > > - We don't really understand yet why my refactoring helps, but passing > the assign value is a good canditate (and it's agreed that this fixes a > bug, I thi

[Qemu-devel] [PATCH] docs: fix typo in memory.txt

2016-03-22 Thread Wei Jiangang
The scale line should align with A line's end, and correct the range of vga-window example 0xa-0xb. Signed-off-by: Wei Jiangang --- docs/memory.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/memory.txt b/docs/memory.txt index 97134e1..5a7163c 100644 --

Re: [Qemu-devel] [Qemu-stable] [PATCH 00/35] Patch Round-up for stable 2.5.1, freeze on 2016-03-25

2016-03-22 Thread Peter Lieven
Am 21.03.2016 um 18:27 schrieb Michael Roth: Hi everyone, The following new patches are queued for QEMU stable v2.5.1: https://github.com/mdroth/qemu/commits/stable-2.5-staging The release is planned for 2016-03-29: http://wiki.qemu.org/Planning/2.5 Please respond here or CC qemu-sta..

Re: [Qemu-devel] [PATCH v4 06/10] vfio: add check host bus reset is support or not

2016-03-22 Thread Chen Fan
On 03/22/2016 05:40 AM, Alex Williamson wrote: On Mon, 21 Mar 2016 18:08:42 +0800 Cao jin wrote: From: Chen Fan when boot up a VM that assigning vfio devices with aer enabled, we must check the vfio device whether support host bus reset. because when one error occur. OS driver always recove

Re: [Qemu-devel] [RFC Design Doc]Speed up live migration by skipping free pages

2016-03-22 Thread Michael S. Tsirkin
On Tue, Mar 22, 2016 at 03:43:49PM +0800, Liang Li wrote: > I have sent the RFC version patch set for live migration optimization > by skipping processing the free pages in the ram bulk stage and > received a lot of comments. The related threads can be found at: > > https://lists.gnu.org/archive/h

Re: [Qemu-devel] [PATCH v4 08/10] vfio: vote the function 0 to do host bus reset when aer occurred

2016-03-22 Thread Chen Fan
On 03/22/2016 05:40 AM, Alex Williamson wrote: On Mon, 21 Mar 2016 18:08:44 +0800 Cao jin wrote: From: Chen Fan Due to all devices assigned to VM on the same way as host if enable aer, so we can easily do the hot reset by selecting the function #0 to do the hot reset. Signed-off-by: Chen F

Re: [Qemu-devel] [PATCH 3/3] block: remove legacy_dinfo at blk_detach_dev time

2016-03-22 Thread Markus Armbruster
Kevin Wolf writes: > Am 21.03.2016 um 19:14 hat Markus Armbruster geschrieben: >> Paolo Bonzini writes: >> >> > On 21/03/2016 18:30, Markus Armbruster wrote: >> >> However, I've now tested my expectation, and it turned out to be wrong. >> >> I'm inclined to call that a bug. >> > >> > --verbose,

Re: [Qemu-devel] [PATCH v3 03/10] qom: support arbitrary non-scalar properties with -object

2016-03-22 Thread Daniel P. Berrange
On Tue, Mar 22, 2016 at 10:07:42AM +0100, Markus Armbruster wrote: > Eric Blake writes: > > > On 03/10/2016 11:59 AM, Daniel P. Berrange wrote: > >> The current -object command line syntax only allows for > >> creation of objects with scalar properties, or a list > >> with a fixed scalar element

Re: [Qemu-devel] [PATCH v6 08/11] block: add support for --image-opts in block I/O tests

2016-03-22 Thread Daniel P. Berrange
On Mon, Mar 21, 2016 at 02:08:16PM -0600, Eric Blake wrote: > On 03/21/2016 08:11 AM, Daniel P. Berrange wrote: > > Currently all block tests use the traditional syntax for images > > just specifying a filename. To support the LUKS driver without > > resorting to JSON, the tests need to be able to

Re: [Qemu-devel] [PATCH] vpc: use current_size field for XenServer VHD images

2016-03-22 Thread Stefan Hajnoczi
On Mon, Mar 21, 2016 at 02:37:46PM -0400, Spencer Baugh wrote: > Stefan Hajnoczi writes: > > What output did you get from "qemu-img info /dev/dm-1"? > > After the patching: > > root@storage-4:~# hexdump -C -n 512 /dev/vgstorage/tartanfsbackup > 63 6f 6e 65 63 74 69 78 00 00 00 02 00 0

Re: [Qemu-devel] Call for build instructions for FreeBSD and MacOSX

2016-03-22 Thread Peter Maydell
On 22 March 2016 at 09:18, Alex Bennée wrote: > Hi, > > I was looking at fixing a FreeBSD compile failure yesterday and I spent > a lot of time trying to figure out building on a system that I'm not > very familiar with. Today I'm having a quick look at extending the > Travis build to MacOSX. > >

Re: [Qemu-devel] [PATCH 00/15] NVDIMM: introduce nvdimm label support

2016-03-22 Thread Michael S. Tsirkin
On Thu, Mar 17, 2016 at 04:32:46PM +0800, Xiao Guangrong wrote: > This patchset is against commit d4207b223eef3 (fw-cfg: support writeable > blobs) on pci branch of Michael's git tree and can be found at: > https://github.com/xiaogr/qemu.git nvdimm-label-v1 I see there have been comments, so

Re: [Qemu-devel] [PATCH 06/22] hbitmap: load/store

2016-03-22 Thread Vladimir Sementsov-Ogievskiy
On 22.03.2016 01:42, John Snow wrote: On 03/15/2016 04:04 PM, Vladimir Sementsov-Ogievskiy wrote: Add functions for load/store HBitmap to BDS, using clusters table: Last level of the bitmap is splitted into chunks of 'cluster_size' size. Each cell of the table contains offset in bds, to load/st

Re: [Qemu-devel] [PATCH 0/2] e1000: Introducing an upper bound of interrupts

2016-03-22 Thread Michael S. Tsirkin
On Thu, Mar 17, 2016 at 09:37:56AM +0200, Sameeh Jubran wrote: > This patch series introduces an upper bound for the number of interrupts > per second. This feature is supported by the real hardware, however up > until now it wasn't implemented in e1000. This feature is very > significant, it can p

Re: [Qemu-devel] Call for build instructions for FreeBSD and MacOSX

2016-03-22 Thread Alex Bennée
Peter Maydell writes: > On 22 March 2016 at 09:18, Alex Bennée wrote: >> Hi, >> >> I was looking at fixing a FreeBSD compile failure yesterday and I spent >> a lot of time trying to figure out building on a system that I'm not >> very familiar with. Today I'm having a quick look at extending th

Re: [Qemu-devel] [RFC v1 01/11] tcg: move tb_find_fast outside the tb_lock critical section

2016-03-22 Thread Alex Bennée
Emilio G. Cota writes: > On Fri, Mar 18, 2016 at 16:18:42 +, Alex Bennée wrote: >> From: KONRAD Frederic >> >> Signed-off-by: KONRAD Frederic >> Signed-off-by: Paolo Bonzini >> [AJB: minor checkpatch fixes] >> Signed-off-by: Alex Bennée >> >> --- >> v1(ajb) >> - checkpatch fixes >> ---

Re: [Qemu-devel] [RFC v1 01/11] tcg: move tb_find_fast outside the tb_lock critical section

2016-03-22 Thread Alex Bennée
Emilio G. Cota writes: > On Mon, Mar 21, 2016 at 22:08:06 +, Peter Maydell wrote: >> It is not _necessary_, but it is a performance optimization to >> speed up the "missed in the TLB" case. (A TLB flush will wipe >> the tb_jmp_cache table.) From the thread where the move-to-front-of-list >>

Re: [Qemu-devel] [PATCH 0/4] Tweaks around virtio-blk start/stop

2016-03-22 Thread Cornelia Huck
On Tue, 22 Mar 2016 10:46:58 +0100 Paolo Bonzini wrote: > On 22/03/2016 10:07, Cornelia Huck wrote: > > So far, we had the best results with my refactoring + the mutex/bh > > change. Two problems: > > > > - We don't really understand yet why my refactoring helps, but passing > > the assign value

Re: [Qemu-devel] [RFC v1 10/11] tcg: grab iothread lock in cpu-exec interrupt handling

2016-03-22 Thread Alex Bennée
Paolo Bonzini writes: > On 18/03/2016 17:18, Alex Bennée wrote: >> From: "Emilio G. Cota" >> >> Signed-off-by: Emilio G. Cota >> Signed-off-by: Alex Bennée >> >> --- >> v1 (ajb) >> - pulled from emilio/mttcg series >> --- >> cpu-exec.c| 33 +++-- >> inclu

Re: [Qemu-devel] About PC_COMPAT

2016-03-22 Thread Dr. David Alan Gilbert
* 佘旻 (ch...@foxmail.com) wrote: > I find PC_COMPAT_X_Y macros in file pc.h, and I don't understand why the > smaller is the X_Y the more the devices defined? Can someone explain? Thanks! It's because they're the difference from the current version - so the older the version the more differences.

Re: [Qemu-devel] [PATCH 0/4] Tweaks around virtio-blk start/stop

2016-03-22 Thread Paolo Bonzini
On 22/03/2016 12:59, Cornelia Huck wrote: >> > They can be fixed with just an extra object_ref/object_unref. >> > >> > I didn't understand that Tu Bo also needed the BH fix, and with that >> > information it makes sense. Passing the assign value ensures that >> > ioeventfd remains always assign

Re: [Qemu-devel] [PATCH] Fix typo in variable name (found and fixed by codespell)

2016-03-22 Thread Fam Zheng
On Mon, 03/21 19:21, Stefan Weil wrote: > Signed-off-by: Stefan Weil > --- > scripts/dump-guest-memory.py | 64 > ++-- > 1 file changed, 32 insertions(+), 32 deletions(-) > > diff --git a/scripts/dump-guest-memory.py b/scripts/dump-guest-memory.py > index

Re: [Qemu-devel] [PATCH v2 1/1] Introduce "xen-load-devices-state"

2016-03-22 Thread Dr. David Alan Gilbert
* Changlong Xie (xiecl.f...@cn.fujitsu.com) wrote: > From: Wen Congyang > > Introduce a "xen-load-devices-state" QAPI command that can be used to > load the state of all devices, but not the RAM or the block devices of > the VM. > > We only have hmp commands savevm/loadvm, and qmp commands > xen

Re: [Qemu-devel] Call for build instructions for FreeBSD and MacOSX

2016-03-22 Thread Peter Maydell
On 22 March 2016 at 11:37, Alex Bennée wrote: > > Peter Maydell writes: >> OSX build instructions are documented in the documentation: >> http://qemu.weilnetz.de/qemu-doc.html#Mac-OS-X > > Of course it is ;-) > > Is that the canonical location for the rendered documentation? It's the one the wik

Re: [Qemu-devel] Call for build instructions for FreeBSD and MacOSX

2016-03-22 Thread Liviu Ionescu
> On 22 Mar 2016, at 11:18, Alex Bennée wrote: > > ... putting up some > simple instructions for people that are not familiar with these systems. the GNU ARM Eclipse QEMU build procedure is documented at http://gnuarmeclipse.github.io/qemu/build-procedure/ binaries for win32/win64/deb

Re: [Qemu-devel] [Qemu-block] [PATCH 4/4] virtio-blk: Clean up start/stop with mutex and BH

2016-03-22 Thread Fam Zheng
On Thu, 03/17 16:07, Paolo Bonzini wrote: > > > On 17/03/2016 16:00, Stefan Hajnoczi wrote: > >> > +data = g_new(VirtIOBlockStartData, 1); > >> > +data->vblk = vblk; > >> > +data->bh = aio_bh_new(s->ctx, virtio_blk_data_plane_start_bh_cb, > >> > data); > >> > +qemu_bh_schedule(da

[Qemu-devel] [PATCH v1 0/3] reduce the matrix, add OSX, speed-up Travis?

2016-03-22 Thread Alex Bennée
Hi, This is my currently brewing set of Travis updates. As was mentioned on previous series the matrix could do with collapsing further. I've simplified it by just worrying about configs and allowing all the targets to be built. This means each build of the main matrix has gotten longer but less o

[Qemu-devel] [PATCH v1 3/3] .travis.yml: make -j3

2016-03-22 Thread Alex Bennée
The move from Travis VMs to Containers came with a upgrade from 1.5 cores to 2. The received wisdom is -j N+1 means a core can be doing work while other threads wait for IO to complete. This is hard to test on the Travis infrastructure but an initial before/after eyeballing seems to confirm it is a

Re: [Qemu-devel] [PATCH 0/5] trace: Add events for vCPU memory accesses

2016-03-22 Thread Stefan Hajnoczi
On Wed, Mar 16, 2016 at 03:10:01PM +, Peter Maydell wrote: > On 2 March 2016 at 10:55, Stefan Hajnoczi wrote: > > On Tue, Feb 23, 2016 at 07:22:07PM +0100, Lluís Vilanova wrote: > >> NOTE: This series applies on top of "trace: Show vCPU info in guest code > >> events" > >> > >> This series ad

Re: [Qemu-devel] [PATCH 0/4] Tweaks around virtio-blk start/stop

2016-03-22 Thread Cornelia Huck
On Tue, 22 Mar 2016 13:11:05 +0100 Paolo Bonzini wrote: > On 22/03/2016 12:59, Cornelia Huck wrote: > >> > They can be fixed with just an extra object_ref/object_unref. > >> > > >> > I didn't understand that Tu Bo also needed the BH fix, and with that > >> > information it makes sense. Passing

[Qemu-devel] [PATCH v1 2/3] .travis.yml: enable OSX builds

2016-03-22 Thread Alex Bennée
Travis has support for OSX builds. Making the setup work cleanly involves a little hacking about with the .travis.yml file but rather than make it too messy I've pushed all the "brew" install stuff into a support script called ./scripts/macosx-brew.sh. Currently only the default ./configure ${CONF

[Qemu-devel] [PATCH v1 1/3] .travis.yml: collapse the test matrix

2016-03-22 Thread Alex Bennée
Remove the concept of TARGETS and build the complete target list for each config combination. Now the matrix is just based on CONFIG stanzas and we use the additional stuff for: - things that only work on one compiler (sparse, gcov, gprof) - combos where "make check" fails Signed-off-by: Alex

[Qemu-devel] [PATCH] block: Remove blk_set_bs()

2016-03-22 Thread Kevin Wolf
The function is unused since commit f21d96d0 ('block: Use BdrvChild in BlockBackend'). Signed-off-by: Kevin Wolf --- block/block-backend.c | 17 - include/block/block_int.h | 2 -- 2 files changed, 19 deletions(-) diff --git a/block/block-backend.c b/block/block-backend.c i

Re: [Qemu-devel] [PATCH 06/20] xen_disk: Call blk_set_enable_write_cache() explicitly

2016-03-22 Thread Stefano Stabellini
On Fri, 18 Mar 2016, Kevin Wolf wrote: > Signed-off-by: Kevin Wolf > --- > hw/block/xen_disk.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/hw/block/xen_disk.c b/hw/block/xen_disk.c > index 635328f..c358709 100644 > --- a/hw/block/xen_disk.c > +++ b/hw/block/xen_d

Re: [Qemu-devel] [PATCH v2 1/1] Introduce "xen-load-devices-state"

2016-03-22 Thread Stefano Stabellini
On Mon, 14 Mar 2016, Changlong Xie wrote: > From: Wen Congyang > > Introduce a "xen-load-devices-state" QAPI command that can be used to > load the state of all devices, but not the RAM or the block devices of > the VM. > > We only have hmp commands savevm/loadvm, and qmp commands > xen-save-dev

[Qemu-devel] [PULL 05/10] target-tricore: Move general CHECK_REG_PAIR of decode_rrr_divide

2016-03-22 Thread Bastian Koppelmann
The add.f and sub.f to be implemented don't use 64 bit registers and a general usage of CHECK_REG_PAIR would always generate an exception for them. Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Message-Id: <1457708597-3025-3-git-send-email-kbast...@mail.uni-paderborn.de> ---

[Qemu-devel] [PULL 04/10] target-tricore: Add FPU infrastructure

2016-03-22 Thread Bastian Koppelmann
This patch adds a file for all the FPU related helpers with all the includes, useful defines, and a function to update the status bits. Additionally it adds a mask for the rounding mode bits of PSW as well as all the opcodes for the FPU instructions. Reviewed-by: Richard Henderson Signed-off-by:

[Qemu-devel] [PULL 00/10] tricore-patches

2016-03-22 Thread Bastian Koppelmann
stream.git tags/pull-tricore-20160322 for you to fetch changes up to d66718ccf37b71eff686c3d6116223889736188f: target-tricore: Add ftoi and itof instructions (2016-03-21 18:04:16 +0100) TriCore FPU

[Qemu-devel] [PULL 01/10] target-tricore: add missing break in insn decode switch stmt

2016-03-22 Thread Bastian Koppelmann
After decoding/translating a RRR_DIVIDE/_EXTRACT_INSERT type instruction we would simply fall through and would decode/translate another unintended RRR2_MADD/RRRW_EXTRACT_INSERT instruction. Signed-off-by: Bastian Koppelmann Message-Id: <1458547383-23102-2-git-send-email-kbast...@mail.uni-pad

[Qemu-devel] [PULL 10/10] target-tricore: Add ftoi and itof instructions

2016-03-22 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Message-Id: <1457708597-3025-8-git-send-email-kbast...@mail.uni-paderborn.de> --- target-tricore/fpu_helper.c | 34 ++ target-tricore/helper.h | 2 ++ target-tricore/translate.c | 6 ++ 3

[Qemu-devel] [PULL 07/10] target-tricore: Add mul.f instruction

2016-03-22 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Message-Id: <1457708597-3025-5-git-send-email-kbast...@mail.uni-paderborn.de> --- target-tricore/fpu_helper.c | 26 ++ target-tricore/helper.h | 1 + target-tricore/translate.c | 3 +++ 3 files change

[Qemu-devel] [PULL 08/10] target-tricore: Add div.f instruction

2016-03-22 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Message-Id: <1457708597-3025-6-git-send-email-kbast...@mail.uni-paderborn.de> --- target-tricore/fpu_helper.c | 26 ++ target-tricore/helper.h | 1 + target-tricore/translate.c | 3 +++ 3 files change

[Qemu-devel] [PULL 06/10] target-tricore: add add.f/sub.f instructions

2016-03-22 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Message-Id: <1457708597-3025-4-git-send-email-kbast...@mail.uni-paderborn.de> --- target-tricore/fpu_helper.c | 29 - target-tricore/helper.h | 2 ++ target-tricore/translate.c | 6 ++ 3 files

[Qemu-devel] [PULL 03/10] target-tricore: Fix psw_read() clearing too many bits

2016-03-22 Thread Bastian Koppelmann
psw_read() ought to sync the PSW value with the cached status bits (C,V,SV,AV,SAV). For this the bits are cleared in the PSW before they are written from the cached bits. The clear mask is too big and clears two additional bits. Signed-off-by: Bastian Koppelmann Message-Id: <1458547383-23102-4-gi

Re: [Qemu-devel] [PATCH v1 2/3] .travis.yml: enable OSX builds

2016-03-22 Thread Peter Maydell
On 22 March 2016 at 12:53, Alex Bennée wrote: > Travis has support for OSX builds. Making the setup work cleanly > involves a little hacking about with the .travis.yml file but rather > than make it too messy I've pushed all the "brew" install stuff into a > support script called ./scripts/macosx-

[Qemu-devel] [PULL 09/10] target-tricore: Add cmp.f instruction

2016-03-22 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Message-Id: <1457708597-3025-7-git-send-email-kbast...@mail.uni-paderborn.de> --- target-tricore/fpu_helper.c | 23 +++ target-tricore/helper.h | 1 + target-tricore/translate.c | 3 +++ 3 files changed,

[Qemu-devel] [PULL 02/10] target-tricore: Fix helper_msub64_q_ssov not reseting OVF bit

2016-03-22 Thread Bastian Koppelmann
When this instruction does not produce an overflow the corresponding bit has to be reset. Signed-off-by: Bastian Koppelmann Message-Id: <1458547383-23102-3-git-send-email-kbast...@mail.uni-paderborn.de> --- target-tricore/op_helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-t

Re: [Qemu-devel] [PATCH v3 10/10] ppc: A couple more dummy POWER8 Book4 regs

2016-03-22 Thread Thomas Huth
On 21.03.2016 13:52, Cédric Le Goater wrote: > From: Benjamin Herrenschmidt > > Signed-off-by: Benjamin Herrenschmidt > [clg: squashed in patch 'ppc: Add dummy ACOP SPR' ] > Signed-off-by: Cédric Le Goater > Reviewed-by: Thomas Huth > Reviewed-by: David Gibson > --- > target-ppc/cpu.h

Re: [Qemu-devel] [PATCH 0/5] trace: Add events for vCPU memory accesses

2016-03-22 Thread Lluís Vilanova
Stefan Hajnoczi writes: > On Wed, Mar 16, 2016 at 03:10:01PM +, Peter Maydell wrote: >> On 2 March 2016 at 10:55, Stefan Hajnoczi wrote: >> > On Tue, Feb 23, 2016 at 07:22:07PM +0100, Lluís Vilanova wrote: >> >> NOTE: This series applies on top of "trace: Show vCPU info in guest code >> >> e

Re: [Qemu-devel] [PATCH v3 10/10] ppc: A couple more dummy POWER8 Book4 regs

2016-03-22 Thread Cédric Le Goater
On 03/22/2016 02:56 PM, Thomas Huth wrote: > On 21.03.2016 13:52, Cédric Le Goater wrote: >> From: Benjamin Herrenschmidt >> >> Signed-off-by: Benjamin Herrenschmidt >> [clg: squashed in patch 'ppc: Add dummy ACOP SPR' ] >> Signed-off-by: Cédric Le Goater >> Reviewed-by: Thomas Huth >> Reviewed

Re: [Qemu-devel] [PATCH v1 2/3] .travis.yml: enable OSX builds

2016-03-22 Thread Alex Bennée
Peter Maydell writes: > On 22 March 2016 at 12:53, Alex Bennée wrote: >> Travis has support for OSX builds. Making the setup work cleanly >> involves a little hacking about with the .travis.yml file but rather >> than make it too messy I've pushed all the "brew" install stuff into a >> support

Re: [Qemu-devel] [RFC v2 0/6] QEMU shared-memory backend

2016-03-22 Thread Markus Armbruster
Copying Paolo, author of memory-backend-file. Baptiste Reynal writes: > A new memory backend, the shared memory backend, based on > the file memory backend. > > This new backend allows a master QEMU instance to share a part of > his main memory whith a slave QEMU instance. It is then possible to

[Qemu-devel] [PULL 02/29] Use scripts/clean-includes to drop redundant qemu/typedefs.h

2016-03-22 Thread Paolo Bonzini
From: Markus Armbruster Re-run scripts/clean-includes to apply the previous commit's corrections and updates. Besides redundant qemu/typedefs.h, this only finds a redundant config-host.h include in ui/egl-helpers.c. No idea how that escaped the previous runs. Some manual whitespace trimming ar

[Qemu-devel] [PULL 11/29] isa: Move DMA_transfer_handler from qemu-common.h to hw/isa/isa.h

2016-03-22 Thread Paolo Bonzini
From: Markus Armbruster DMA_transfer_handler is actually an ISA thing, and as such has no business in qemu-common.h. Move it to hw/isa/isa.h, and rename it to IsaDmaTransferHandler. Signed-off-by: Markus Armbruster Signed-off-by: Paolo Bonzini --- hw/dma/i8257.c | 2 +- include/hw/is

[Qemu-devel] [PULL 00/29] Miscellaneous changes for 2016-03-22

2016-03-22 Thread Paolo Bonzini
The following changes since commit 4829e0378dfb91d55af9dfd741bd09e8f2c4f91a: Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2016-03-18' into staging (2016-03-18 17:18:41 +) are available in the git repository at: git://github.com/bonzini/qemu.git tags/for-upstream for you

[Qemu-devel] [PULL 08/29] Move HOST_LONG_BITS from qemu-common.h to qemu/osdep.h

2016-03-22 Thread Paolo Bonzini
From: Markus Armbruster qemu-common.h should only be included by .c files. Its file comment explains why: "No header file should depend on qemu-common.h, as this would easily lead to circular header dependencies." One of the reasons for headers to include it is HOST_LONG_BITS. Move that to its

[Qemu-devel] [PULL 03/29] Clean up includes some more

2016-03-22 Thread Paolo Bonzini
From: Markus Armbruster Manually drop redundant includes that scripts/clean-includes misses, e.g. because they're hidden in generator programs, or they use the wrong kind of delimiter. Signed-off-by: Markus Armbruster Signed-off-by: Paolo Bonzini --- hw/net/vmxnet_rx_pkt.h |

[Qemu-devel] [PULL 09/29] Move QEMU_ALIGN_*() from qemu-common.h to qemu/osdep.h

2016-03-22 Thread Paolo Bonzini
From: Markus Armbruster qemu-common.h should only be included by .c files. Its file comment explains why: "No header file should depend on qemu-common.h, as this would easily lead to circular header dependencies." One of the reasons for headers to include it is QEMU_ALIGN_UP() and QEMU_ALIGN_DO

[Qemu-devel] [PULL 05/29] include/qemu/iov.h: Don't include qemu-common.h

2016-03-22 Thread Paolo Bonzini
From: Markus Armbruster qemu-common.h should only be included by .c files. Its file comment explains why: "No header file should depend on qemu-common.h, as this would easily lead to circular header dependencies." qemu/iov.h includes qemu-common.h for QEMUIOVector stuff. Move all that to qemu/

[Qemu-devel] [PULL 04/29] fw_cfg: Split fw_cfg_keys.h off fw_cfg.h

2016-03-22 Thread Paolo Bonzini
From: Markus Armbruster Much of fw_cfg.h's contents is #ifndef NO_QEMU_PROTOS. This lets a few places include it without satisfying the dependencies of the suppressed code. If you somehow include it with NO_QEMU_PROTOS, any future includes are ignored. Unnecessarily unclean. Move the stuff no

[Qemu-devel] [PULL 10/29] Move ParallelIOArg from qemu-common.h to sysemu/char.h

2016-03-22 Thread Paolo Bonzini
From: Markus Armbruster ParallelIOArg is shared between just qemu-char.c and hw/char/parallel.c, and as such has no business in qemu-common.h. Move it to sysemu/char.h. Signed-off-by: Markus Armbruster Signed-off-by: Paolo Bonzini --- include/qemu-common.h | 5 - include/sysemu/char.h | 5

[Qemu-devel] [PULL 07/29] hw/pci/pci.h: Don't include qemu-common.h

2016-03-22 Thread Paolo Bonzini
From: Markus Armbruster qemu-common.h should only be included by .c files. Its file comment explains why: "No header file should depend on qemu-common.h, as this would easily lead to circular header dependencies." hw/pci/pci.h includes qemu-common.h, but its users only need pcibus_t and PCIHost

[Qemu-devel] [PULL 06/29] include/hw/hw.h: Don't include qemu-common.h

2016-03-22 Thread Paolo Bonzini
From: Markus Armbruster qemu-common.h should only be included by .c files. Its file comment explains why: "No header file should depend on qemu-common.h, as this would easily lead to circular header dependencies." hw/hw.h includes qemu-common.h, but its users generally need only hw_error() and

[Qemu-devel] [PULL 13/29] hw: explicitly include qemu-common.h and cpu.h

2016-03-22 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/alpha/dp264.c | 2 ++ hw/alpha/pci.c | 2 ++ hw/arm/allwinner-a10.c | 2 ++ hw/arm/armv7m.c | 2 ++ hw/arm/ast2400.c | 2 ++ hw/arm/bcm2836.c

[Qemu-devel] [PULL 17/29] qemu-log: correct help text for -d cpu

2016-03-22 Thread Paolo Bonzini
From: Alex Bennée This doesn't just dump CPU state on translation but on every block entrance. Signed-off-by: Alex Bennée Reviewed-by: Andreas Färber Reviewed-by: Richard Henderson Message-Id: <1458052224-9316-4-git-send-email-alex.ben...@linaro.org> Signed-off-by: Paolo Bonzini --- util/lo

[Qemu-devel] [PULL 16/29] tcg: pass down TranslationBlock to tcg_code_gen

2016-03-22 Thread Paolo Bonzini
From: Alex Bennée My later debugging patches need access to the origin PC which is held in the TranslationBlock structure. Pass down the whole structure as it also holds the information about the code start point. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Message-Id: <14580522

[Qemu-devel] [PULL 18/29] qemu-log: Avoid function call for disabled qemu_log_mask logging

2016-03-22 Thread Paolo Bonzini
From: Peter Maydell Make qemu_log_mask() a macro which only calls the function to do the actual work if the logging is enabled. This avoids making a function call in possible fast paths where logging is disabled. Signed-off-by: Peter Maydell Signed-off-by: Alex Bennée Reviewed-by: Andreas Färb

[Qemu-devel] [PULL 20/29] qemu-log: new option -dfilter to limit output

2016-03-22 Thread Paolo Bonzini
From: Alex Bennée When debugging big programs or system emulation sometimes you want both the verbosity of cpu,exec et all but don't want to generate lots of logs for unneeded stuff. This patch adds a new option -dfilter which allows you to specify interesting address ranges in the form: -dfil

[Qemu-devel] [PULL 14/29] Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND

2016-03-22 Thread Paolo Bonzini
From: Rutuja Shah This patch replaces get_ticks_per_sec() calls with the macro NANOSECONDS_PER_SECOND. Also, as there are no callers, get_ticks_per_sec() is then removed. This replacement improves the readability and understandability of code. For example, timer_mod(fdctrl->result_timer,

Re: [Qemu-devel] [PATCH v5 0/5] ARM: add query-gic-capabilities SMP command

2016-03-22 Thread Markus Armbruster
Peter Xu writes: > v5 changes: > - patch 2: moved to target-arm/monitor.c (from target-arm/machine.c) >[Peter] > - patch 3: splitted into three patches: [all from Peter's comments] > - patch 3 (new): leverage kvm_arm_create_scratch_host_vcpu(), tiny > enhancement of old one to s

[Qemu-devel] [PULL 25/29] exec: fix error handling in file_ram_alloc

2016-03-22 Thread Paolo Bonzini
One instance of double closing, and invalid close(-1) in some cases of "goto error". Reviewed-by: Laszlo Ersek Signed-off-by: Paolo Bonzini --- exec.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/exec.c b/exec.c index be2a644..f46e596 100644 --- a/exec.c +++ b/exec

[Qemu-devel] [PULL 22/29] target-arm: dfilter support for in_asm

2016-03-22 Thread Paolo Bonzini
From: Alex Bennée Each individual architecture needs to use the qemu_log_in_addr_range() feature for enabling in_asm output as it is part of the frontend. Signed-off-by: Alex Bennée Reviewed-by: Aurelien Jarno Reviewed-by: Richard Henderson Message-Id: <1458052224-9316-9-git-send-email-alex.

[Qemu-devel] [PULL 24/29] cputlb: modernise the debug support

2016-03-22 Thread Paolo Bonzini
From: Alex Bennée To avoid cluttering the code with #ifdef legs we wrap up the print statements into a tlb_debug() macro. As access to the virtual TLB can get quite heavy defining DEBUG_TLB_LOG will ensure all the logs go to the qemu_log target of CPU_LOG_MMU instead of stderr. This remains compi

[Qemu-devel] [PATCH] ppc: move POWER8 Book4 regs in their own routine

2016-03-22 Thread Cédric Le Goater
commit fce55481360d "ppc: A couple more dummy POWER8 Book4 regs" squashed in to rapidly a set of POWER8 Book4 regs in the wrong routine. This patch introduces the missing gen_spr_power8_book4() routine to fix their location. Signed-off-by: Cédric Le Goater --- target-ppc/translate_init.c |8

[Qemu-devel] [PULL 01/29] include/qemu/osdep.h: Don't include qapi/error.h

2016-03-22 Thread Paolo Bonzini
From: Markus Armbruster Commit 57cb38b included qapi/error.h into qemu/osdep.h to get the Error typedef. Since then, we've moved to include qemu/osdep.h everywhere. Its file comment explains: "To avoid getting into possible circular include dependencies, this file should not include any other Q

[Qemu-devel] [PULL 12/29] include/crypto: Include qapi-types.h or qemu/bswap.h instead of qemu-common.h

2016-03-22 Thread Paolo Bonzini
From: Markus Armbruster qemu-common.h should only be included by .c files. Its file comment explains why: "No header file should depend on qemu-common.h, as this would easily lead to circular header dependencies." Several include/crypto/ headers include qemu-common.h, but either need just qapi-

[Qemu-devel] [PULL 28/29] config.status: Pass extra parameters

2016-03-22 Thread Paolo Bonzini
From: "Dr. David Alan Gilbert" This allows you to do: ./config.status --the-option-you-forgot Signed-off-by: Dr. David Alan Gilbert Message-Id: <1452599928-7471-1-git-send-email-dgilb...@redhat.com> Signed-off-by: Paolo Bonzini --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletio

  1   2   3   4   >