Re: [Qemu-devel] [PATCH v6 09/18] intel_iommu: vtd_slpt_level_shift check level

2017-02-07 Thread Peter Xu
On Tue, Feb 07, 2017 at 01:42:55PM +0800, Jason Wang wrote: > > > On 2017年02月03日 16:22, Peter Xu wrote: > >This helps in debugging incorrect level passed in. > > > >Signed-off-by: Peter Xu > >--- > > hw/i386/intel_iommu.c | 1 + > > 1 file changed, 1 insertion(+) > > > >diff --git a/hw/i386/int

[Qemu-devel] [RFC PATCH v1 2/2] softfloat: Add float128_to_uint32_round_to_zero()

2017-02-07 Thread Bharata B Rao
float128_to_uint32_round_to_zero() is needed by xscvqpuwz instruction of PowerPC ISA 3.0. Signed-off-by: Bharata B Rao --- fpu/softfloat.c | 28 include/fpu/softfloat.h | 1 + 2 files changed, 29 insertions(+) diff --git a/fpu/softfloat.c b/fpu/softfloat.c

[Qemu-devel] [RFC PATCH v1 0/2] softfloat: float128 to uint64 and uint32

2017-02-07 Thread Bharata B Rao
This series introduces two conversion routines: float128_to_uint64_round_to_zero() and float128_to_uint32_round_to_zero(). float128_to_uint64_round_to_zero() uses the newly added float128_to_uint64() whose implementation is based on float64_to_uint64(). float128_to_uint32_round_to_zero() uses fl

Re: [Qemu-devel] [PATCH v6 15/18] intel_iommu: provide its own replay() callback

2017-02-07 Thread Peter Xu
On Tue, Feb 07, 2017 at 02:10:45PM +0800, Jason Wang wrote: > > > On 2017年02月03日 16:22, Peter Xu wrote: > >+trace_vtd_replay_ce_valid(bus_n, PCI_SLOT(vtd_as->devfn), > >+ PCI_FUNC(vtd_as->devfn), > >+ VTD_CONTEXT_ENTRY_DID(

[Qemu-devel] [RFC PATCH v1 1/2] softfloat: Add float128_to_uint64_round_to_zero()

2017-02-07 Thread Bharata B Rao
Implement float128_to_uint64() and use that to implement float128_to_uint64_round_to_zero() This is required by xscvqpudz instruction of PowerPC ISA 3.0. Signed-off-by: Bharata B Rao --- fpu/softfloat.c | 59 + include/fpu/softfloat.h | 2

Re: [Qemu-devel] [PATCH v6 16/18] intel_iommu: do replay when context invalidate

2017-02-07 Thread Peter Xu
On Tue, Feb 07, 2017 at 02:16:15PM +0800, Jason Wang wrote: > > > On 2017年02月03日 16:22, Peter Xu wrote: > >Before this one we only invalidate context cache when we receive context > >entry invalidations. However it's possible that the invalidation also > >contains a domain switch (only if cache-m

Re: [Qemu-devel] [PATCH 1/3] colo-compare: reconstruct the mutex lock usage

2017-02-07 Thread Hailiang Zhang
On 2017/2/7 15:57, Jason Wang wrote: On 2017年02月07日 15:54, Hailiang Zhang wrote: Hi Jason, On 2017/2/6 20:53, Jason Wang wrote: On 2017年02月06日 19:11, Hailiang Zhang wrote: On 2017/2/6 17:35, Jason Wang wrote: On 2017年02月06日 16:13, Hailiang Zhang wrote: On 2017/2/3 11:47, Jason Wang wr

[Qemu-devel] [PATCH v7 00/17] VT-d: vfio enablement and misc enhances

2017-02-07 Thread Peter Xu
This is v7 of vt-d vfio enablement series. v7: - for the two traces patches: Change subjects. Remove vtd_err() and vtd_err_nonzero_rsvd() tracers, instead using standalone trace for each of the places. Don't remove any DPRINTF() if there is no replacement. [Jason] - add r-b and a-b for Alex/

[Qemu-devel] [PATCH v7 05/17] intel_iommu: simplify irq region translation

2017-02-07 Thread Peter Xu
Now we have a standalone memory region for MSI, all the irq region requests should be redirected there. Cleaning up the block with an assertion instead. Reviewed-by: Jason Wang Signed-off-by: Peter Xu --- hw/i386/intel_iommu.c | 28 ++-- 1 file changed, 6 insertions(+),

[Qemu-devel] [PATCH v7 02/17] vfio: introduce vfio_get_vaddr()

2017-02-07 Thread Peter Xu
A cleanup for vfio_iommu_map_notify(). Now we will fetch vaddr even if the operation is unmap, but it won't hurt much. One thing to mention is that we need the RCU read lock to protect the whole translation and map/unmap procedure. Acked-by: Alex Williamson Reviewed-by: David Gibson Signed-off-

[Qemu-devel] [PATCH v7 15/17] intel_iommu: provide its own replay() callback

2017-02-07 Thread Peter Xu
The default replay() don't work for VT-d since vt-d will have a huge default memory region which covers address range 0-(2^64-1). This will normally consumes a lot of time (which looks like a dead loop). The solution is simple - we don't walk over all the regions. Instead, we jump over the regions

[Qemu-devel] [PATCH v7 08/17] intel_iommu: convert dbg macros to trace for trans

2017-02-07 Thread Peter Xu
Another patch to convert the DPRINTF() stuffs. This patch focuses on the address translation path and caching. Signed-off-by: Peter Xu --- hw/i386/intel_iommu.c | 69 ++- hw/i386/trace-events | 10 2 files changed, 34 insertions(+), 45 de

[Qemu-devel] [PATCH v7 01/17] vfio: trace map/unmap for notify as well

2017-02-07 Thread Peter Xu
We traces its range, but we don't know whether it's a MAP/UNMAP. Let's dump it as well. Acked-by: Alex Williamson Reviewed-by: David Gibson Signed-off-by: Peter Xu --- hw/vfio/common.c | 3 ++- hw/vfio/trace-events | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/v

[Qemu-devel] [PATCH v7 03/17] vfio: allow to notify unmap for very large region

2017-02-07 Thread Peter Xu
Linux vfio driver supports to do VFIO_IOMMU_UNMAP_DMA for a very big region. This can be leveraged by QEMU IOMMU implementation to cleanup existing page mappings for an entire iova address space (by notifying with an IOTLB with extremely huge addr_mask). However current vfio_iommu_map_notify() does

[Qemu-devel] [PATCH v7 06/17] intel_iommu: renaming gpa to iova where proper

2017-02-07 Thread Peter Xu
There are lots of places in current intel_iommu.c codes that named "iova" as "gpa". It is really confusing to use a name "gpa" in these places (which is very easily to be understood as "Guest Physical Address", while it's not). To make the codes (much) easier to be read, I decided to do this once a

[Qemu-devel] [PATCH v7 04/17] intel_iommu: add "caching-mode" option

2017-02-07 Thread Peter Xu
From: Aviv Ben-David This capability asks the guest to invalidate cache before each map operation. We can use this invalidation to trap map operations in the hypervisor. Signed-off-by: Aviv Ben-David [peterx: using "caching-mode" instead of "cache-mode" to align with spec] [peterx: re-write the

[Qemu-devel] [PATCH v7 10/17] memory: add section range info for IOMMU notifier

2017-02-07 Thread Peter Xu
In this patch, IOMMUNotifier.{start|end} are introduced to store section information for a specific notifier. When notification occurs, we not only check the notification type (MAP|UNMAP), but also check whether the notified iova range overlaps with the range of specific IOMMU notifier, and skip th

[Qemu-devel] [PATCH v7 07/17] intel_iommu: convert dbg macros to traces for inv

2017-02-07 Thread Peter Xu
VT-d codes are still using static DEBUG_INTEL_IOMMU macro. That's not good, and we should end the day when we need to recompile the code before getting useful debugging information for vt-d. Time to switch to the trace system. This is the first patch to do it. Signed-off-by: Peter Xu --- hw/i386

[Qemu-devel] [PATCH v7 12/17] memory: provide iommu_replay_all()

2017-02-07 Thread Peter Xu
This is an "global" version of exising memory_region_iommu_replay() - we announce the translations to all the registered notifiers, instead of a specific one. Signed-off-by: Peter Xu --- include/exec/memory.h | 8 memory.c | 9 + 2 files changed, 17 insertions(+) d

[Qemu-devel] [PATCH v7 09/17] intel_iommu: vtd_slpt_level_shift check level

2017-02-07 Thread Peter Xu
This helps in debugging incorrect level passed in. Reviewed-by: Jason Wang Signed-off-by: Peter Xu --- hw/i386/intel_iommu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index ad304f6..22d8226 100644 --- a/hw/i386/intel_iommu.c +++ b/hw/i386/

[Qemu-devel] [PATCH v7 14/17] memory: add MemoryRegionIOMMUOps.replay() callback

2017-02-07 Thread Peter Xu
Originally we have one memory_region_iommu_replay() function, which is the default behavior to replay the translations of the whole IOMMU region. However, on some platform like x86, we may want our own replay logic for IOMMU regions. This patch add one more hook for IOMMUOps for the callback, and i

[Qemu-devel] [PATCH v7 11/17] memory: provide IOMMU_NOTIFIER_FOREACH macro

2017-02-07 Thread Peter Xu
Signed-off-by: Peter Xu --- include/exec/memory.h | 3 +++ memory.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/exec/memory.h b/include/exec/memory.h index 805a88a..f76e174 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -239,6 +

[Qemu-devel] [PATCH v7 17/17] intel_iommu: enable vfio devices

2017-02-07 Thread Peter Xu
This patch is based on Aviv Ben-David ()'s patch upstream: "IOMMU: enable intel_iommu map and unmap notifiers" https://lists.gnu.org/archive/html/qemu-devel/2016-11/msg01453.html However I removed/fixed some content, and added my own codes. Instead of translate() every page for iotlb invalid

[Qemu-devel] [PATCH v7 13/17] memory: introduce memory_region_notify_one()

2017-02-07 Thread Peter Xu
Generalizing the notify logic in memory_region_notify_iommu() into a single function. This can be further used in customized replay() functions for IOMMUs. Signed-off-by: Peter Xu --- include/exec/memory.h | 15 +++ memory.c | 40

[Qemu-devel] [PATCH v7 16/17] intel_iommu: allow dynamic switch of IOMMU region

2017-02-07 Thread Peter Xu
This is preparation work to finally enabled dynamic switching ON/OFF for VT-d protection. The old VT-d codes is using static IOMMU address space, and that won't satisfy vfio-pci device listeners. Let me explain. vfio-pci devices depend on the memory region listener and IOMMU replay mechanism to m

Re: [Qemu-devel] [PATCH V2 01/10] qemu-clk: introduce qemu-clk qom object

2017-02-07 Thread Frederic Konrad
On 02/05/2017 04:25 PM, Cédric Le Goater wrote: > ello Frederic, Hi Cédric, Thanks for taking a look at this! > > On 01/26/2017 10:47 AM, fred.kon...@greensocs.com wrote: >> From: KONRAD Frederic >> >> This introduces qemu-clk qom object. >> >> Signed-off-by: KONRAD Frederic >> --- >> Makefi

Re: [Qemu-devel] [PATCH 1/3] colo-compare: reconstruct the mutex lock usage

2017-02-07 Thread Jason Wang
On 2017年02月07日 16:19, Hailiang Zhang wrote: On 2017/2/7 15:57, Jason Wang wrote: On 2017年02月07日 15:54, Hailiang Zhang wrote: Hi Jason, On 2017/2/6 20:53, Jason Wang wrote: On 2017年02月06日 19:11, Hailiang Zhang wrote: On 2017/2/6 17:35, Jason Wang wrote: On 2017年02月06日 16:13, Hailiang

Re: [Qemu-devel] [PATCH V2 02/10] qemu-clk: allow to add a clock to a device

2017-02-07 Thread Frederic Konrad
On 02/06/2017 03:20 PM, Cédric Le Goater wrote: > On 01/26/2017 10:47 AM, fred.kon...@greensocs.com wrote: >> From: KONRAD Frederic >> >> This allows to add a clock to a DeviceState. >> Contrary to gpios, the clock pins are not contained in the DeviceState but >> with the child property so they ca

Re: [Qemu-devel] Non-flat command line option argument syntax

2017-02-07 Thread Kevin Wolf
Am 06.02.2017 um 16:36 hat Markus Armbruster geschrieben: > >> === Structured values === > >> > >> The dotted key convention messes with KEY syntax to permit structured > >> values. Works, but the more conventional way to support structured > >> values is a syntax for structured values. > >> >

Re: [Qemu-devel] [PATCH V2 02/10] qemu-clk: allow to add a clock to a device

2017-02-07 Thread Cédric Le Goater
On 02/07/2017 10:22 AM, Frederic Konrad wrote: >> I see how these routines are used in patch 10/10. But if we were >> open coding device CRF_APB, I don't think we would need them at >> all and it would make the code a little simple IMHO. > What do you mean by open coding? I mean to externalize the

Re: [Qemu-devel] [PATCH 1/3] colo-compare: reconstruct the mutex lock usage

2017-02-07 Thread Hailiang Zhang
On 2017/2/7 17:21, Jason Wang wrote: On 2017年02月07日 16:19, Hailiang Zhang wrote: On 2017/2/7 15:57, Jason Wang wrote: On 2017年02月07日 15:54, Hailiang Zhang wrote: Hi Jason, On 2017/2/6 20:53, Jason Wang wrote: On 2017年02月06日 19:11, Hailiang Zhang wrote: On 2017/2/6 17:35, Jason Wang wr

[Qemu-devel] [PATCH] net: e1000e: fix an infinite loop issue

2017-02-07 Thread Li Qiang
From: Li Qiang This issue is the same as e1000 network card in this commit: e1000: eliminate infinite loops on out-of-bounds transfer start. Signed-off-by: Li Qiang --- hw/net/e1000e_core.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/hw/net/e1000e_core

Re: [Qemu-devel] [PATCH V2 03/10] qemu-clk: allow to bind two clocks together

2017-02-07 Thread Frederic Konrad
On 02/06/2017 04:58 PM, Cédric Le Goater wrote: > Hello, > > On 01/26/2017 10:47 AM, fred.kon...@greensocs.com wrote: >> From: KONRAD Frederic >> >> This introduces the clock binding and the update part. >> When the qemu_clk_rate_update(qemu_clk, int) function is called: >> * The clock callback

Re: [Qemu-devel] [PATCH V2 02/10] qemu-clk: allow to add a clock to a device

2017-02-07 Thread Frederic Konrad
On 02/07/2017 10:31 AM, Cédric Le Goater wrote: > On 02/07/2017 10:22 AM, Frederic Konrad wrote: >>> I see how these routines are used in patch 10/10. But if we were >>> open coding device CRF_APB, I don't think we would need them at >>> all and it would make the code a little simple IMHO. >> What

Re: [Qemu-devel] [RFC 4/5] exec: allow to get a pointer for some mmio memory region

2017-02-07 Thread Frederic Konrad
On 02/04/2017 02:59 PM, Frederic Konrad wrote: > On 02/04/2017 01:41 PM, Paolo Bonzini wrote: >> > ... >>> >>> Doesn't hotplug use dynamic MemoryRegion? In which case we better >>> make that work with MTTCG. I wonder if we can't simply handle that >>> with a safe_work for this case? >> >> Hot-unplu

Re: [Qemu-devel] [PATCH v7 2/2] gdbstub: Fix vCont behaviour

2017-02-07 Thread Claudio Imbrenda
On 06/02/17 11:00, Paolo Bonzini wrote: > > > On 27/01/2017 19:11, Claudio Imbrenda wrote: >> +/* mark valid CPUs with 1 */ >> +CPU_FOREACH(cpu) { >> +newstates[cpu_index(cpu) - 1] = 1; >> +} > > Sorry I didn't notice this before: CPU indices are zero-based in QEMU, > so you

Re: [Qemu-devel] [QEMU PATCH v2] kvmclock: advance clock by time window between vm_stop and pre_save

2017-02-07 Thread Wanpeng Li
2016-11-08 3:41 GMT+08:00 Marcelo Tosatti : > On Mon, Nov 07, 2016 at 03:46:11PM +, Dr. David Alan Gilbert wrote: >> * Marcelo Tosatti (mtosa...@redhat.com) wrote: >> > This patch, relative to pre-copy migration codepath, >> > measures the time between vm_stop() and pre_save(), >> > which inclu

Re: [Qemu-devel] [PATCH v10 05/23] tcg: add options for enabling MTTCG

2017-02-07 Thread Alex Bennée
Pranith Kumar writes: > Hi Alex, > > I just spotted this: > > On Mon, Feb 6, 2017 at 10:30 AM, Alex Bennée wrote: > >> From: KONRAD Frederic >> >> We know there will be cases where MTTCG won't work until additional work >> is done in the front/back ends to support. It will however be useful to

Re: [Qemu-devel] [PATCH v2 1/7] iscsi: Split URL into individual options

2017-02-07 Thread Fam Zheng
On Wed, 01/25 12:42, Jeff Cody wrote: > From: Kevin Wolf > > This introduces a .bdrv_parse_filename handler for iscsi which parses an > URL if given and translates it to individual options. > > Signed-off-by: Kevin Wolf > Signed-off-by: Jeff Cody > --- > block/iscsi.c | 189 > +++

Re: [Qemu-devel] [PATCH v10 00/23] MTTCG Base enabling patches with ARM enablement

2017-02-07 Thread Alex Bennée
Pranith Kumar writes: > Hi Alex, > > On Mon, Feb 6, 2017 at 10:30 AM, Alex Bennée wrote: >> Hi Richard/Peter, >> >> This is a mostly ARM focused update to last weeks v9. >> >> It has necessitated one change to the cputlb API. It was pointed out >> that translators often have to special case a b

[Qemu-devel] [Bug 1662468] [NEW] [feature request] qemu-img convert should respond to control-T like dd

2017-02-07 Thread Christophe de Dinechin
Public bug reported: Since qemu-img convert is a long-running operation, it would be nice if it reported progress in response to control-T (SIGINFO) to show progress information, much like dd, fsck, dump, cp, etc. ** Affects: qemu Importance: Undecided Status: New ** Tags: feature

Re: [Qemu-devel] [PATCH] qemu-doc: Clarify that -vga std is now the default

2017-02-07 Thread Alberto Garcia
On Fri, Jan 27, 2017 at 11:41:54AM +0200, Alberto Garcia wrote: > The QEMU manual page states that Cirrus Logic is the default video > card if the user doesn't specify any. However this is not true since > QEMU 2.2. > > Signed-off-by: Alberto Garcia Ping Berto

Re: [Qemu-devel] [PATCH v2 2/7] iscsi: Handle -iscsi user/password in bdrv_parse_filename()

2017-02-07 Thread Fam Zheng
On Wed, 01/25 12:42, Jeff Cody wrote: > From: Kevin Wolf > > This splits the logic in the old parse_chap() function into a part that > parses the -iscsi options into the new driver-specific options, and > another part that actually applies those options (called apply_chap() > now). > > Note that

Re: [Qemu-devel] [PATCH] Makefile: Make "install" depend on "trace-events-all"

2017-02-07 Thread Christian Borntraeger
On 02/04/2017 03:32 PM, Fam Zheng wrote: > We install this file to data dir but since 0ab8ed18 it's no longer > required by any objects during "make". List it explicitly as a depended > target of install and fix the broken "make install" command. > > Signed-off-by: Fam Zheng Tested-by: Christian

Re: [Qemu-devel] [PATCH v2 3/7] iscsi: Add initiator-name option

2017-02-07 Thread Fam Zheng
On Wed, 01/25 12:42, Jeff Cody wrote: > From: Kevin Wolf > > This was previously only available with -iscsi. Again, after this patch, > the -iscsi option only takes effect if an URL is given. New users are > supposed to use the new driver-specific option. > > Reviewed-by: Daniel P. Berrange > S

Re: [Qemu-devel] [PATCH v2 4/7] iscsi: Add header-digest option

2017-02-07 Thread Fam Zheng
On Wed, 01/25 12:42, Jeff Cody wrote: > From: Kevin Wolf > > This was previously only available with -iscsi. Again, after this patch, > the -iscsi option only takes effect if an URL is given. New users are > supposed to use the new driver-specific option. > > Reviewed-by: Daniel P. Berrange > S

Re: [Qemu-devel] [PATCH v2 5/7] iscsi: Add timeout option

2017-02-07 Thread Fam Zheng
On Wed, 01/25 12:42, Jeff Cody wrote: > From: Kevin Wolf > > This was previously only available with -iscsi. Again, after this patch, > the -iscsi option only takes effect if an URL is given. New users are > supposed to use the new driver-specific option. > > All -iscsi options have a correspond

[Qemu-devel] [qemu-web PATCH 0/2] Fix HTML issues discovered with the W3 HTML validator

2017-02-07 Thread Thomas Huth
The W3 HTML validator (https://validator.w3.org/) complains about missing "alt" attributes and a missing "" tag for the new QEMU website. Here are two patches to fix the issues. Thomas Huth (2): Add missing HTML tag to close the screenshots section Add "alt" attributes to the img tags _inclu

[Qemu-devel] [PATCH] usb: ohci: limit the number of link eds

2017-02-07 Thread Li Qiang
From: Li Qiang The guest may builds an infinite loop with link eds. This patch limit the number of linked ed to avoid this. Signed-off-by: Li Qiang --- hw/usb/hcd-ohci.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c index c82a

Re: [Qemu-devel] [PATCH v2 6/7] iscsi: Add blockdev-add support

2017-02-07 Thread Fam Zheng
On Wed, 01/25 12:42, Jeff Cody wrote: > From: Kevin Wolf > > This adds blockdev-add support for iscsi devices. > > Reviewed-by: Daniel P. Berrange > Signed-off-by: Kevin Wolf > Signed-off-by: Jeff Cody > --- > block/iscsi.c| 14 ++ > qapi/block-core.json | 74 > +

[Qemu-devel] [qemu-web PATCH 2/2] Add "alt" attributes to the img tags

2017-02-07 Thread Thomas Huth
The "alt" attribute is mandatory for the img tags according to the HTML standard, so we need this to get valid HTML. Signed-off-by: Thomas Huth --- _includes/screenshot.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/screenshot.html b/_includes/screenshot.html

[Qemu-devel] [qemu-web PATCH 1/2] Add missing HTML tag to close the screenshots section

2017-02-07 Thread Thomas Huth
The final "" tag is missing here. Signed-off-by: Thomas Huth --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index cf31912..ab33b8a 100644 --- a/index.html +++ b/index.html @@ -59,6 +59,7 @@ $('.colorbox').on("click.random-namespace", function() { })

Re: [Qemu-devel] [PATCH v2 7/7] QAPI: Fix blockdev-add example documentation

2017-02-07 Thread Fam Zheng
On Wed, 01/25 12:42, Jeff Cody wrote: > Signed-off-by: Jeff Cody > --- > qapi/block-core.json | 18 +- > 1 file changed, 9 insertions(+), 9 deletions(-) > > diff --git a/qapi/block-core.json b/qapi/block-core.json > index 4ebb8d8..adc089f 100644 > --- a/qapi/block-core.json > +++

Re: [Qemu-devel] [PATCH 1/2 v16] fsdev: add IO throttle support to fsdev devices

2017-02-07 Thread Greg Kurz
On Tue, 7 Feb 2017 00:15:33 +0100 Greg Kurz wrote: > On Mon, 6 Feb 2017 13:36:43 -0600 > Eric Blake wrote: > > > On 02/03/2017 05:57 AM, Pradeep Jagadeesh wrote: > > > This patchset adds the throttle support for the 9p-local driver. > > > For now this functionality can be enabled only through

Re: [Qemu-devel] [PATCH 1/2 v16] fsdev: add IO throttle support to fsdev devices

2017-02-07 Thread Pradeep Jagadeesh
On 2/6/2017 8:36 PM, Eric Blake wrote: On 02/03/2017 05:57 AM, Pradeep Jagadeesh wrote: This patchset adds the throttle support for the 9p-local driver. For now this functionality can be enabled only through qemu cli options. QMP interface and support to other drivers need further extensions.

Re: [Qemu-devel] [qemu-web PATCH 0/2] Fix HTML issues discovered with the W3 HTML validator

2017-02-07 Thread Paolo Bonzini
On 07/02/2017 11:23, Thomas Huth wrote: > The W3 HTML validator (https://validator.w3.org/) complains about > missing "alt" attributes and a missing "" tag for the > new QEMU website. Here are two patches to fix the issues. > > Thomas Huth (2): > Add missing HTML tag to close the screenshots s

Re: [Qemu-devel] [qemu-web PATCH 0/2] Fix HTML issues discovered with the W3 HTML validator

2017-02-07 Thread Thomas Huth
On 07.02.2017 11:40, Paolo Bonzini wrote: > > > On 07/02/2017 11:23, Thomas Huth wrote: >> The W3 HTML validator (https://validator.w3.org/) complains about >> missing "alt" attributes and a missing "" tag for the >> new QEMU website. Here are two patches to fix the issues. >> >> Thomas Huth (2):

Re: [Qemu-devel] [PATCH v2 1/1] target-ppc, tcg: fix usermode segfault with pthread_create()

2017-02-07 Thread Laurent Vivier
Le 07/02/2017 à 04:21, Sam Bobroff a écrit : > Programs run under qemu-ppc64 on an x86_64 host currently segfault > if they use pthread_create() due to the adjustment made to the NIP in > commit bd6fefe71cec5a0c7d2be4ac96307f25db56abf9. > > This patch changes cpu_loop() to set the NIP back to the

Re: [Qemu-devel] [PATCH v2 1/1] target-ppc, tcg: fix usermode segfault with pthread_create()

2017-02-07 Thread Peter Maydell
On 7 February 2017 at 03:21, Sam Bobroff wrote: > Programs run under qemu-ppc64 on an x86_64 host currently segfault > if they use pthread_create() due to the adjustment made to the NIP in > commit bd6fefe71cec5a0c7d2be4ac96307f25db56abf9. > > This patch changes cpu_loop() to set the NIP back to t

[Qemu-devel] [PATCH] usb: ohci: fix error return code in servicing iso td

2017-02-07 Thread Li Qiang
From: Li Qiang It should return 1 if an error occurs when reading iso td. This will avoid an infinite loop issue in ohci_service_ed_list. Signed-off-by: Li Qiang --- hw/usb/hcd-ohci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c inde

Re: [Qemu-devel] [virtio-dev] [PATCH v16 1/2] virtio-crypto: Add virtio crypto device specification

2017-02-07 Thread Halil Pasic
On 01/18/2017 09:22 AM, Gonglei wrote: > The virtio crypto device is a virtual crypto device (ie. hardware > crypto accelerator card). Currently, the virtio crypto device provides > the following crypto services: CIPHER, MAC, HASH, and AEAD. > > In this patch, CIPHER, MAC, HASH, AEAD services ar

Re: [Qemu-devel] [RFC PATCH 0/3] Preparing the build system for libtcg

2017-02-07 Thread Peter Maydell
On 21 January 2017 at 08:45, Alessandro Di Federico wrote: > This series of patches introduce a set of changes, mainly to the QEMU > build system, to open the way to implementing "libtcg", i.e., using > QEMU's tiny code generator frontends as a library. > > For the initial proposal, please see the

Re: [Qemu-devel] [PATCH v16 1/2] virtio-crypto: Add virtio crypto device specification

2017-02-07 Thread Halil Pasic
On 02/06/2017 07:19 PM, Michael S. Tsirkin wrote: > On Mon, Feb 06, 2017 at 03:46:25PM +, Stefan Hajnoczi wrote: >> On Mon, Feb 06, 2017 at 01:48:09AM +, Gonglei (Arei) wrote: > +\item The device MUST set \field{max_size} to show the maximum size of crypto request the device supp

Re: [Qemu-devel] [PATCH 15/18] qmp: add block-dirty-bitmap-load

2017-02-07 Thread Fam Zheng
On Fri, 02/03 18:47, Vladimir Sementsov-Ogievskiy wrote: > ## > +# @block-dirty-bitmap-load: > +# > +# Load a dirty bitmap from the storage (qcow2 file or nbd export) > +# > +# Returns: nothing on success > +# If @node is not a valid block device, DeviceNotFound > +# If @name is

Re: [Qemu-devel] [PATCH] rules: don't try to create missing include dirs

2017-02-07 Thread Peter Maydell
On 6 February 2017 at 11:29, Daniel P. Berrange wrote: > In > > commit ba78db44f6532d66a1e704bd44613e841baa2fc5 > Author: Daniel P. Berrange > Date: Wed Jan 25 16:14:10 2017 + > > make: move top level dir to end of include search path > > The dir $(BUILD_DIR)/$(@D) was added to the

Re: [Qemu-devel] [PATCH v5 02/10] linker-loader: Add new 'write pointer' command

2017-02-07 Thread Igor Mammedov
On Mon, 6 Feb 2017 19:31:24 +0200 "Michael S. Tsirkin" wrote: > On Mon, Feb 06, 2017 at 09:16:25AM -0800, Ben Warren wrote: > > >> @@ -257,8 +263,11 @@ void bios_linker_loader_add_pointer(BIOSLinker > > >> *linker, > > >> const BiosLinkerFileEntry *source_file = > > >> bios_linker_fi

Re: [Qemu-devel] [QEMU PATCH v2] kvmclock: advance clock by time window between vm_stop and pre_save

2017-02-07 Thread Marcelo Tosatti
On Tue, Feb 07, 2017 at 06:02:13PM +0800, Wanpeng Li wrote: > 2016-11-08 3:41 GMT+08:00 Marcelo Tosatti : > > On Mon, Nov 07, 2016 at 03:46:11PM +, Dr. David Alan Gilbert wrote: > >> * Marcelo Tosatti (mtosa...@redhat.com) wrote: > >> > This patch, relative to pre-copy migration codepath, > >>

[Qemu-devel] [Bug 1662468] Re: [feature request] qemu-img convert should respond to control-T like dd

2017-02-07 Thread Thomas Huth
** Changed in: qemu Importance: Undecided => Wishlist -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1662468 Title: [feature request] qemu-img convert should respond to control-T like dd Status

[Qemu-devel] [Bug 1662050] Re: qemu-img convert a overlay qcow2 image into a entire image

2017-02-07 Thread Thomas Huth
Can't you simply do a "cp delta.qcow2 new.qcow2" ? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1662050 Title: qemu-img convert a overlay qcow2 image into a entire image Status in QEMU: Incompl

[Qemu-devel] [Bug 1660946] Re: [nested] virt-install falls to SLOF

2017-02-07 Thread Thomas Huth
Sounds like your problem only occurs on older versions of Ubuntu, so moving this to the QEMU-Ubuntu bug tracker. ** Project changed: qemu => qemu (Ubuntu) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bug

Re: [Qemu-devel] [PATCH 11/17] migration: add is_active_iterate handler

2017-02-07 Thread Vladimir Sementsov-Ogievskiy
24.01.2017 12:48, Juan Quintela wrote: Vladimir Sementsov-Ogievskiy wrote: Only-postcopy savevm states (dirty-bitmap) don't need live iteration, so to disable them and stop transporting empty sections there is a new savevm handler. Signed-off-by: Vladimir Sementsov-Ogievskiy --- include/mig

[Qemu-devel] [Bug 855800] Re: KVM crashes when attempting to restart migration

2017-02-07 Thread Thomas Huth
Can you still reproduce this issue with the latest version of QEMU (currently v2.8)? ** Changed in: qemu Status: New => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/855800 Title:

[Qemu-devel] [Bug 709584] Re: Fullscreen mode splits screen over monitor boundaries on dual-monitor system

2017-02-07 Thread Thomas Huth
QEMU 0.12 is completely outdated nowadays ... can you still reproduce this issue with the latest version of QEMU (currently v2.8)? If yes, which graphical backend are you using? SDL1? SDL2? GTK? ** Changed in: qemu Status: New => Incomplete -- You received this bug notification because yo

Re: [Qemu-devel] [Qemu-ppc] [RFC PATCH 2/9] Update headers using update-linux-headers.sh

2017-02-07 Thread Thomas Huth
On 07.02.2017 03:56, Sam Bobroff wrote: > This provides some new definitions needed by ISA 3.00 guests. > > It is a large change because this is the first import since > some kernel header files have become autogenerated. > > Note: update-linux-headers.sh currently generates a change that > (inco

[Qemu-devel] [Bug 899140] Re: Problem with Linux Kernel Traffic Control

2017-02-07 Thread Thomas Huth
Can you still reproduce this issue with the latest version of QEMU (currently v2.8), or could we close this ticket nowadays? ** Changed in: qemu Status: New => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https:/

Re: [Qemu-devel] [virtio-dev] [PATCH v16 1/2] virtio-crypto: Add virtio crypto device specification

2017-02-07 Thread Cornelia Huck
On Tue, 7 Feb 2017 12:39:44 +0100 Halil Pasic wrote: > On 01/18/2017 09:22 AM, Gonglei wrote: > > +\section{Crypto Device}\label{sec:Device Types / Crypto Device} > > + > > +The virtio crypto device is a virtual cryptography device as well as a > > kind of > > +virtual hardware accelerator for

Re: [Qemu-devel] [PATCH] qga: implement guest-file-ioctl

2017-02-07 Thread Ladi Prosek
On Mon, Feb 6, 2017 at 5:10 PM, Alexey Kostyushko wrote: > This info is more about pvpanic patch, but may be relevant here also. > > Consider that KeInitializeCrashDumpHeader is not enough to create dumps > because it copy only primary header You mean that the secondary data area is missing? That

[Qemu-devel] [PATCH 2/2] virtio-blk: Inline request init, complete and free functions

2017-02-07 Thread Fam Zheng
These are used in each request handling, inline them. Signed-off-by: Fam Zheng --- hw/block/virtio-blk.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index 2858c31..1da9570 100644 --- a/hw/block/virtio-blk.c +++ b/hw/b

[Qemu-devel] [PATCH 1/2] virtio-blk: Remove useless condition around g_free()

2017-02-07 Thread Fam Zheng
Laszlo spotted and studied this wasteful "if". He pointed out: The original virtio_blk_free_request needed an "if" as it accesses one field, since 671ec3f05655 ("virtio-blk: Convert VirtIOBlockReq.elem to pointer", 2014-06-11); later on in f897bf751fbd ("virtio-blk: embed VirtQueueElement in VirtI

[Qemu-devel] [PATCH 0/2] virtio-blk: clean up around g_free() and inline a few functions

2017-02-07 Thread Fam Zheng
Fam Zheng (2): virtio-blk: Remove useless condition around g_free() virtio-blk: Inline request init, complete and free functions hw/block/virtio-blk.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) -- 2.9.3

Re: [Qemu-devel] [PATCH Risu 0/7] Risu PPC improvements

2017-02-07 Thread Peter Maydell
On 4 February 2017 at 02:17, Jose Ricardo Ziviani wrote: > This patchset contains some fixes and improvements for ppc64le. > > Jose Ricardo Ziviani (7): > risu_ppc64le: improve xsrqpi[x] and xsrqpxp instructions > risu_ppc64le: fix 32-bit mov immediate > risu_ppc64le: implement sign extend f

Re: [Qemu-devel] [PATCH 1/2] virtio-blk: Remove useless condition around g_free()

2017-02-07 Thread Laszlo Ersek
On 02/07/17 14:27, Fam Zheng wrote: > Laszlo spotted and studied this wasteful "if". He pointed out: > > The original virtio_blk_free_request needed an "if" as it accesses one > field, since 671ec3f05655 ("virtio-blk: Convert VirtIOBlockReq.elem to > pointer", 2014-06-11); later on in f897bf751fbd

[Qemu-devel] qustion about qemu translation

2017-02-07 Thread oussema ben khedher
hi 

Re: [Qemu-devel] [PATCH v5 05/10] ACPI: Add Virtual Machine Generation ID support

2017-02-07 Thread Igor Mammedov
On Sun, 5 Feb 2017 01:12:00 -0800 b...@skyportsystems.com wrote: > From: Ben Warren > > This implements the VM Generation ID feature by passing a 128-bit > GUID to the guest via a fw_cfg blob. > Any time the GUID changes, an ACPI notify event is sent to the guest > > The user interface is a si

Re: [Qemu-devel] [PATCH v5 01/10] ACPI: Add a function for building named qword entries

2017-02-07 Thread Igor Mammedov
On Sun, 5 Feb 2017 01:11:56 -0800 b...@skyportsystems.com wrote: > From: Ben Warren > > This is initially used to patch a 64-bit address into > the VM Generation ID SSDT > > Signed-off-by: Ben Warren > --- ... > +int > +build_append_named_qword(GArray *array, const char *name_format, ...) it

Re: [Qemu-devel] [PATCH v5 07/10] qmp/hmp: add set-vm-generation-id commands

2017-02-07 Thread Igor Mammedov
On Sun, 5 Feb 2017 01:12:02 -0800 b...@skyportsystems.com wrote: > From: Igor Mammedov > > Add set-vm-generation-id command to set Virtual Machine > Generation ID counter. > > QMP command example: > { "execute": "set-vm-generation-id", > "arguments": { > "guid": "32

Re: [Qemu-devel] [PATCH 2/2] virtio-blk: Inline request init, complete and free functions

2017-02-07 Thread Laszlo Ersek
On 02/07/17 14:27, Fam Zheng wrote: > These are used in each request handling, inline them. > > Signed-off-by: Fam Zheng > --- > hw/block/virtio-blk.c | 9 + > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c > index 2858c31.

[Qemu-devel] [PATCH 01/28] qtest: fix a memory leak

2017-02-07 Thread Marc-André Lureau
Spotted by ASAN. Signed-off-by: Marc-André Lureau Reviewed-by: Stefan Hajnoczi --- qtest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qtest.c b/qtest.c index 1446719e8d..6f4d26832a 100644 --- a/qtest.c +++ b/qtest.c @@ -240,6 +240,7 @@ static void GCC_FMT_ATTR(2, 3) qtest_sendf(CharBac

[Qemu-devel] [PATCH 00/28] Various memory leak fixes

2017-02-07 Thread Marc-André Lureau
Hi, After this series removing a few memory leaks, make check with ASAN enabled gives a "clean" run with x86_64-softmmu target (there are warnings related to coroutine makecontext/swapcontext). This should help spot memory related regressions when introducing one. Note: some of these patches wer

[Qemu-devel] [PATCH 06/28] tests: fix endianness-test leaks

2017-02-07 Thread Marc-André Lureau
Spotted by ASAN. Signed-off-by: Marc-André Lureau --- tests/endianness-test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/endianness-test.c b/tests/endianness-test.c index cf8d41b7b4..ed0bf52019 100644 --- a/tests/endianness-test.c +++ b/tests/endianness-test.c @@ -295,14 +295,1

[Qemu-devel] [PATCH 16/28] tests: fix tco-test leaks

2017-02-07 Thread Marc-André Lureau
Spotted by ASAN. Signed-off-by: Marc-André Lureau --- tests/tco-test.c | 35 +-- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/tests/tco-test.c b/tests/tco-test.c index ef02ec5903..c4c264eb3d 100644 --- a/tests/tco-test.c +++ b/tests/tco-test.c @

[Qemu-devel] [PATCH 03/28] tests: fix leaks in test-io-channel-command

2017-02-07 Thread Marc-André Lureau
No need for strdup, fix leaks when socat is missing. Spotted by ASAN. Cc: "Daniel P. Berrange" Signed-off-by: Marc-André Lureau --- tests/test-io-channel-command.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test-io-channel-command.c b/tests/test-io-channel-

[Qemu-devel] [PATCH 02/28] tests: fix qmp response leak

2017-02-07 Thread Marc-André Lureau
Spotted by ASAN. Signed-off-by: Marc-André Lureau Reviewed-by: Stefan Hajnoczi --- tests/libqos/usb.c | 1 + tests/postcopy-test.c | 2 +- tests/pvpanic-test.c | 1 + tests/test-filter-mirror.c | 2 +- tests/test-filter-redirector.c | 4 ++-- tests/virtio

[Qemu-devel] [PATCH 09/28] tests: fix ide-test leaks

2017-02-07 Thread Marc-André Lureau
Spotted by ASAN. Cc: John Snow Signed-off-by: Marc-André Lureau --- tests/ide-test.c | 12 1 file changed, 12 insertions(+) diff --git a/tests/ide-test.c b/tests/ide-test.c index fb541f88b5..2fa97bc36b 100644 --- a/tests/ide-test.c +++ b/tests/ide-test.c @@ -339,6 +339,7 @@ static

[Qemu-devel] [PATCH 18/28] tests: fix i440fx-test leaks

2017-02-07 Thread Marc-André Lureau
Spotted by ASAN. Signed-off-by: Marc-André Lureau --- tests/i440fx-test.c | 5 + 1 file changed, 5 insertions(+) diff --git a/tests/i440fx-test.c b/tests/i440fx-test.c index da2d5a53f0..e9d05c87d1 100644 --- a/tests/i440fx-test.c +++ b/tests/i440fx-test.c @@ -134,6 +134,8 @@ static void tes

[Qemu-devel] [PATCH 04/28] timer: use an inline function for free

2017-02-07 Thread Marc-André Lureau
Similarly to allocation, do it from an inline function. This allows tests to only use the headers for allocation/free of timer. Cc: Paolo Bonzini Signed-off-by: Marc-André Lureau --- include/qemu/timer.h | 5 - qemu-timer.c | 5 - 2 files changed, 4 insertions(+), 6 deletions(-)

[Qemu-devel] [PATCH 19/28] tests: fix e1000e leaks

2017-02-07 Thread Marc-André Lureau
Spotted by ASAN. Signed-off-by: Marc-André Lureau --- tests/e1000e-test.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/e1000e-test.c b/tests/e1000e-test.c index 8c42ca919f..c612dc64ec 100644 --- a/tests/e1000e-test.c +++ b/tests/e1000e-test.c @@ -99,7 +99,10 @@

[Qemu-devel] [PATCH 12/28] tests: fix ipmi-kcs-test leak

2017-02-07 Thread Marc-André Lureau
Spotted by ASAN. Signed-off-by: Marc-André Lureau --- tests/ipmi-kcs-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ipmi-kcs-test.c b/tests/ipmi-kcs-test.c index 9cf0b34a33..178ffc1797 100644 --- a/tests/ipmi-kcs-test.c +++ b/tests/ipmi-kcs-test.c @@ -279,6 +279,7 @@ int main(i

[Qemu-devel] [PATCH 10/28] tests: fix hd-geo-test leaks

2017-02-07 Thread Marc-André Lureau
Spotted by ASAN. Signed-off-by: Marc-André Lureau --- tests/hd-geo-test.c | 47 +++ 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/tests/hd-geo-test.c b/tests/hd-geo-test.c index 6176e81ab2..88f8d76d32 100644 --- a/tests/hd-geo-test.c

[Qemu-devel] [PATCH 07/28] tests: fix q35-test leaks

2017-02-07 Thread Marc-André Lureau
Spotted by ASAN. Signed-off-by: Marc-André Lureau --- tests/q35-test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/q35-test.c b/tests/q35-test.c index 763fe3d6ae..e010d781e7 100644 --- a/tests/q35-test.c +++ b/tests/q35-test.c @@ -71,6 +71,9 @@ static void test_smram_lock(void)

  1   2   3   >