[Qemu-devel] [Bug 1790018] Re: Assertion failure (or segmentation fault) running 32-bit x86 Linux guest on 64-bit PowerPC host

2018-09-06 Thread A. Wilcox
This appears to be fixed by 9f754620651d3432114f4bb89c7f12cbea814b3e and present in 3.0.0. Closing. ** Changed in: qemu Status: New => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Qemu-devel] [PATCH v3] intel_iommu: better handling of dmar state switch

2018-09-06 Thread Peter Xu
QEMU is not handling the global DMAR switch well, especially when from "on" to "off". Let's first take the example of system reset. Assuming that a guest has IOMMU enabled. When it reboots, we will drop all the existing DMAR mappings to handle the system reset, however we'll still keep the

Re: [Qemu-devel] [PATCH] intel_iommu: do address space switching when reset

2018-09-06 Thread Peter Xu
On Thu, Sep 06, 2018 at 07:56:49PM -0600, Alex Williamson wrote: > On Fri, 7 Sep 2018 09:00:31 +0800 > Peter Xu wrote: > > > On Thu, Sep 06, 2018 at 12:41:36PM -0600, Alex Williamson wrote: > > > On Thu, 6 Sep 2018 14:53:12 +0800 > > > Peter Xu wrote: > > > > > > > On Wed, Sep 05, 2018 at

Re: [Qemu-devel] [PATCH] intel_iommu: do address space switching when reset

2018-09-06 Thread Alex Williamson
On Fri, 7 Sep 2018 09:00:31 +0800 Peter Xu wrote: > On Thu, Sep 06, 2018 at 12:41:36PM -0600, Alex Williamson wrote: > > On Thu, 6 Sep 2018 14:53:12 +0800 > > Peter Xu wrote: > > > > > On Wed, Sep 05, 2018 at 08:55:50AM -0600, Alex Williamson wrote: > > > > On Wed, 5 Sep 2018 19:31:58

Re: [Qemu-devel] [PATCH v2] hw/ppc: on 40p machine, change default firmware to OpenBIOS

2018-09-06 Thread David Gibson
On Thu, Sep 06, 2018 at 05:38:26AM +0100, Mark Cave-Ayland wrote: > On 05/09/18 01:13, David Gibson wrote: > > > On Tue, Sep 04, 2018 at 09:49:03PM +0200, Hervé Poussineau wrote: > >> OpenBIOS gained 40p support in 5b20e4cacecb62fb2bdc6867c11d44cddd77c4ff > >> Use it, instead of relying on an

Re: [Qemu-devel] [PATCH] target-ppc: Extend HWCAP2 bits for ISA 3.0

2018-09-06 Thread David Gibson
On Thu, Sep 06, 2018 at 12:27:29PM +0530, Sandipan Das wrote: > This adds the HWCAP2 bit to detect if a linux user process is > running on an ISA 3.0 compliant cpu like POWER9. This can be > verified using a simple test program that prints the value in > the auxiliary vector for AT_HWCAP2 as shown

Re: [Qemu-devel] [PATCH] intel_iommu: do address space switching when reset

2018-09-06 Thread Peter Xu
On Thu, Sep 06, 2018 at 12:41:36PM -0600, Alex Williamson wrote: > On Thu, 6 Sep 2018 14:53:12 +0800 > Peter Xu wrote: > > > On Wed, Sep 05, 2018 at 08:55:50AM -0600, Alex Williamson wrote: > > > On Wed, 5 Sep 2018 19:31:58 +0800 > > > Peter Xu wrote: > > > > > > > We will drop all the

Re: [Qemu-devel] [PATCH] RISC-V - Dynamic parameterization of RISC-V memory map

2018-09-06 Thread Michael Eager
On 09/06/2018 08:44 AM, Peter Maydell wrote: On 6 September 2018 at 16:07, Michael Eager wrote: Any comments? I'd quite like to hear from somebody more familiar with the readconfig/writeconfig stuff than me about whether this very riscv-centric approach makes sense and fits with how the

Re: [Qemu-devel] [PATCH v2] monitor: print message when using 'help' with an unknown command

2018-09-06 Thread Collin Walling
On 09/06/2018 03:28 PM, Dr. David Alan Gilbert wrote: > * Collin Walling (wall...@linux.ibm.com) wrote: >> On 08/08/2018 03:00 PM, Dr. David Alan Gilbert wrote: >>> * Collin Walling (wall...@linux.ibm.com) wrote: When typing 'help' followed by an unknown command, QEMU will not print

Re: [Qemu-devel] [PATCH v5 06/16] block/mirror: conservative mirror_exit refactor

2018-09-06 Thread John Snow
On 09/06/2018 12:57 PM, Jeff Cody wrote: > On Thu, Sep 06, 2018 at 09:02:15AM -0400, John Snow wrote: >> For purposes of minimum code movement, refactor the mirror_exit >> callback to use the post-finalization callbacks in a trivial way. >> >> Signed-off-by: John Snow >> --- >> block/mirror.c

Re: [Qemu-devel] [PATCH v11 6/6] tpm: add ACPI memory clear interface

2018-09-06 Thread Stefan Berger
On 09/05/2018 11:29 PM, Marc-André Lureau wrote: This allows to pass the last failing test from the Windows HLK TPM 2.0 TCG PPI 1.3 tests. The interface is described in the "TCG Platform Reset Attack Mitigation Specification", chapter 6 "ACPI _DSM Function". According to Laszlo, it's not so

Re: [Qemu-devel] [PATCH v2] monitor: print message when using 'help' with an unknown command

2018-09-06 Thread Dr. David Alan Gilbert
* Collin Walling (wall...@linux.ibm.com) wrote: > On 08/08/2018 03:00 PM, Dr. David Alan Gilbert wrote: > > * Collin Walling (wall...@linux.ibm.com) wrote: > >> When typing 'help' followed by an unknown command, QEMU will > >> not print anything to the command line to let the user know > >> they

Re: [Qemu-devel] [PATCH v10 6/6] tpm: add ACPI memory clear interface

2018-09-06 Thread Laszlo Ersek
On 09/06/18 19:23, Dr. David Alan Gilbert wrote: > * Marc-André Lureau (marcandre.lur...@gmail.com) wrote: >> Hi >> >> On Thu, Sep 6, 2018 at 1:42 PM Dr. David Alan Gilbert >> wrote: >>> >>> * Marc-André Lureau (marcandre.lur...@gmail.com) wrote: Hi On Thu, Sep 6, 2018 at 12:59 PM

Re: [Qemu-devel] [PATCH] intel_iommu: do address space switching when reset

2018-09-06 Thread Alex Williamson
On Thu, 6 Sep 2018 14:53:12 +0800 Peter Xu wrote: > On Wed, Sep 05, 2018 at 08:55:50AM -0600, Alex Williamson wrote: > > On Wed, 5 Sep 2018 19:31:58 +0800 > > Peter Xu wrote: > > > > > We will drop all the mappings when system reset, however we'll still > > > keep the existing memory

[Qemu-devel] [Bug 1790975] Re: Default arm virt machine broken

2018-09-06 Thread Jonathan Marler
** Summary changed: - arm virt ecam pcie conflict + Default arm virt machine broken ** Description changed: This occurs on qemu_v3.0.0 but not on qemu_v2.12.2 (built from qemu_v3.0.0 tag on github) Symptom: You'll see something like this in the kernel output: [1.285210] OF:

Re: [Qemu-devel] [PATCH v2] monitor: print message when using 'help' with an unknown command

2018-09-06 Thread Collin Walling
On 08/08/2018 03:00 PM, Dr. David Alan Gilbert wrote: > * Collin Walling (wall...@linux.ibm.com) wrote: >> When typing 'help' followed by an unknown command, QEMU will >> not print anything to the command line to let the user know >> they typed a bad command. Let's fix this by printing a message

[Qemu-devel] [Bug 1790975] Re: arm virt ecam pcie conflict

2018-09-06 Thread Jonathan Marler
I tried to triage this a bit today. I'm running a 32-bit linux kernel and I think that's the problem. The ECAM address base is at 0x401000, but it gets truncated to 0x1000 because it's only a 32-bit kernel, but since it's truncated, it conflicts with VIRT_PCIE_MMIO (see hw/arm/virt.c)

Re: [Qemu-devel] [PATCH v10 6/6] tpm: add ACPI memory clear interface

2018-09-06 Thread Dr. David Alan Gilbert
* Marc-André Lureau (marcandre.lur...@gmail.com) wrote: > Hi > > On Thu, Sep 6, 2018 at 1:42 PM Dr. David Alan Gilbert > wrote: > > > > * Marc-André Lureau (marcandre.lur...@gmail.com) wrote: > > > Hi > > > > > > On Thu, Sep 6, 2018 at 12:59 PM Dr. David Alan Gilbert > > > wrote: > > > > > > >

Re: [Qemu-devel] [PATCH 10/10] vl: list user creatable propeties if '?' as argument

2018-09-06 Thread Eric Blake
On 09/06/2018 11:27 AM, Marc-André Lureau wrote: We use name=type (text) for devices properties, ex: qemu-system-x86_64 -device tpm-tis,? tpm-tis.tpmdev=str (ID of a tpm to use as a backend) tpm-tis.irq=uint32 tpm-tis.tpm-tis-mmio[0]=child But qemu-img create -f qcow2 -o ? size

Re: [Qemu-devel] [PATCH v5 13/16] qapi/block-mirror: expose new job properties

2018-09-06 Thread Jeff Cody
On Thu, Sep 06, 2018 at 09:02:22AM -0400, John Snow wrote: > Signed-off-by: John Snow > Reviewed-by: Max Reitz Reviewed-by: Jeff Cody > --- > blockdev.c | 14 ++ > qapi/block-core.json | 30 -- > 2 files changed, 42 insertions(+), 2

Re: [Qemu-devel] [PATCH 0/3] scsi: remove lsi53c895a_create() and lsi53c810_create() functions

2018-09-06 Thread Mark Cave-Ayland
On 06/09/18 17:40, Thomas Huth wrote: > On 2018-09-06 16:50, Peter Maydell wrote: >> On 6 September 2018 at 13:02, Thomas Huth wrote: >>> I somehow fail to see that something outside of lsi53c895a.c should >>> really need to access the internals of LSIState. If there is something >>> that needs

Re: [Qemu-devel] [PATCH v5 15/16] block/backup: qapi documentation fixup

2018-09-06 Thread Jeff Cody
On Thu, Sep 06, 2018 at 09:02:24AM -0400, John Snow wrote: > Fix documentation to match the other jobs amended for 3.1. > > Signed-off-by: John Snow > Reviewed-by: Max Reitz Reviewed-by: Jeff Cody > --- > qapi/block-core.json | 18 ++ > 1 file changed, 10 insertions(+), 8

Re: [Qemu-devel] [PATCH 0/3] scsi: remove lsi53c895a_create() and lsi53c810_create() functions

2018-09-06 Thread Peter Maydell
On 6 September 2018 at 17:40, Thomas Huth wrote: > On 2018-09-06 16:50, Peter Maydell wrote: >> Nothing typically does, but the "modern" style of having QOM objects which >> use other QOM objects do so by embedding the child object's struct into >> the struct of the parent requires that the

Re: [Qemu-devel] [PATCH v5 14/16] qapi/block-stream: expose new job properties

2018-09-06 Thread Jeff Cody
On Thu, Sep 06, 2018 at 09:02:23AM -0400, John Snow wrote: > Signed-off-by: John Snow > Reviewed-by: Max Reitz Reviewed-by: Jeff Cody > --- > blockdev.c | 9 + > hmp.c| 5 +++-- > qapi/block-core.json | 16 +++- > 3 files changed, 27

Re: [Qemu-devel] [PATCH v5 16/16] blockdev: document transactional shortcomings

2018-09-06 Thread Jeff Cody
On Thu, Sep 06, 2018 at 09:02:25AM -0400, John Snow wrote: > Presently only the backup job really guarantees what one would consider > transactional semantics. To guard against someone helpfully adding them > in the future, document that there are shortcomings in the model that > would need to be

Re: [Qemu-devel] [PATCH v5 12/16] qapi/block-commit: expose new job properties

2018-09-06 Thread Jeff Cody
On Thu, Sep 06, 2018 at 09:02:21AM -0400, John Snow wrote: > Signed-off-by: John Snow > Reviewed-by: Max Reitz Reviewed-by: Jeff Cody > --- > blockdev.c | 8 > qapi/block-core.json | 16 +++- > 2 files changed, 23 insertions(+), 1 deletion(-) > > diff --git

Re: [Qemu-devel] [PATCH v5 09/16] tests/test-blockjob: remove exit callback

2018-09-06 Thread Jeff Cody
On Thu, Sep 06, 2018 at 09:02:18AM -0400, John Snow wrote: > We remove the exit callback and the completed boolean along with it. > We can simulate it just fine by waiting for the job to defer to the > main loop, and then giving it one final kick to get the main loop > portion to run. > >

Re: [Qemu-devel] [PATCH v5 11/16] jobs: remove .exit callback

2018-09-06 Thread Jeff Cody
On Thu, Sep 06, 2018 at 09:02:20AM -0400, John Snow wrote: > Now that all of the jobs use the component finalization callbacks, > there's no use for the heavy-hammer .exit callback anymore. > > job_exit becomes a glorified type shim so that we can call > job_completed from

Re: [Qemu-devel] [PATCH v5 10/16] tests/test-blockjob-txn: move .exit to .clean

2018-09-06 Thread Jeff Cody
On Thu, Sep 06, 2018 at 09:02:19AM -0400, John Snow wrote: > The exit callback in this test actually only performs cleanup. > > Signed-off-by: John Snow > Reviewed-by: Max Reitz Reviewed-by: Jeff Cody > --- > tests/test-blockjob-txn.c | 4 ++-- > 1 file changed, 2 insertions(+), 2

Re: [Qemu-devel] [PATCH v5 08/16] tests/blockjob: replace Blockjob with Job

2018-09-06 Thread Jeff Cody
On Thu, Sep 06, 2018 at 09:02:17AM -0400, John Snow wrote: > These tests don't actually test blockjobs anymore, they test > generic Job lifetimes. Change the types accordingly. > > Signed-off-by: John Snow > Reviewed-by: Max Reitz Reviewed-by: Jeff Cody > --- > tests/test-blockjob.c | 98 >

Re: [Qemu-devel] [PATCH v5 07/16] block/stream: refactor stream to use job callbacks

2018-09-06 Thread Jeff Cody
On Thu, Sep 06, 2018 at 09:02:16AM -0400, John Snow wrote: > Signed-off-by: John Snow > Reviewed-by: Max Reitz Reviewed-by: Jeff Cody > --- > block/stream.c | 23 +++ > 1 file changed, 15 insertions(+), 8 deletions(-) > > diff --git a/block/stream.c b/block/stream.c >

Re: [Qemu-devel] [PATCH v5 06/16] block/mirror: conservative mirror_exit refactor

2018-09-06 Thread Jeff Cody
On Thu, Sep 06, 2018 at 09:02:15AM -0400, John Snow wrote: > For purposes of minimum code movement, refactor the mirror_exit > callback to use the post-finalization callbacks in a trivial way. > > Signed-off-by: John Snow > --- > block/mirror.c | 39 --- > 1

Re: [Qemu-devel] [PATCH v10 6/6] tpm: add ACPI memory clear interface

2018-09-06 Thread Marc-André Lureau
Hi On Thu, Sep 6, 2018 at 1:42 PM Dr. David Alan Gilbert wrote: > > * Marc-André Lureau (marcandre.lur...@gmail.com) wrote: > > Hi > > > > On Thu, Sep 6, 2018 at 12:59 PM Dr. David Alan Gilbert > > wrote: > > > > > > * Marc-André Lureau (marcandre.lur...@gmail.com) wrote: > > > > Hi > > > > > >

Re: [Qemu-devel] [PATCH 0/3] scsi: remove lsi53c895a_create() and lsi53c810_create() functions

2018-09-06 Thread Thomas Huth
On 2018-09-06 16:50, Peter Maydell wrote: > On 6 September 2018 at 13:02, Thomas Huth wrote: >> I somehow fail to see that something outside of lsi53c895a.c should >> really need to access the internals of LSIState. If there is something >> that needs to be configured from the outside, it should

Re: [Qemu-devel] [PATCH 10/10] vl: list user creatable propeties if '?' as argument

2018-09-06 Thread Marc-André Lureau
Hi On Thu, Sep 6, 2018 at 7:40 PM Eric Blake wrote: > > On 09/06/2018 10:12 AM, Marc-André Lureau wrote: > > Subject has typo and awkward grammar; I'd suggest: > > vl: list user creatable properties when 'help' is argument > > > Iterate over the writable class properties, sort and print them out

Re: [Qemu-devel] [PATCH V9 2/4] tests/migration: Support cross compilation in generating boot header file

2018-09-06 Thread Wei Huang
- Original Message - > From: "Andrew Jones" > To: "Wei Huang" > Cc: lviv...@redhat.com, "peter maydell" , > quint...@redhat.com, qemu-devel@nongnu.org, > dgilb...@redhat.com, "alex bennee" > Sent: Thursday, September 6, 2018 9:00:33 AM > Subject: Re: [Qemu-devel] [PATCH V9 2/4]

Re: [Qemu-devel] [PATCH v5 05/16] block/mirror: don't install backing chain on abort

2018-09-06 Thread Jeff Cody
On Thu, Sep 06, 2018 at 09:02:14AM -0400, John Snow wrote: > In cases where we abort the block/mirror job, there's no point in > installing the new backing chain before we finish aborting. > > Signed-off-by: John Snow Reviewed-by: Jeff Cody > --- > block/mirror.c | 2 +- > 1 file changed, 1

Re: [Qemu-devel] [PATCH 1/3] scsi: move lsi53c895a structures and defines into separate lsi53c895a.h file

2018-09-06 Thread Mark Cave-Ayland
On 06/09/18 12:52, Thomas Huth wrote: > On 2018-09-06 07:57, Mark Cave-Ayland wrote: >> There is also one small change to the new header file which is the addition >> of the previously missing LSI53C810 define. >> >> Signed-off-by: Mark Cave-Ayland >> --- >> hw/scsi/lsi53c895a.c | 116

Re: [Qemu-devel] [PATCH v5 04/16] block/commit: refactor commit to use job callbacks

2018-09-06 Thread Jeff Cody
On Thu, Sep 06, 2018 at 09:02:13AM -0400, John Snow wrote: > Use the component callbacks; prepare, abort, and clean. > > NB: prepare is only called when the job has not yet failed; > and abort can be called after prepare. > > complete -> prepare -> abort -> clean > complete -> abort -> clean >

[Qemu-devel] [PATCH] hostmem-memfd: add checks before adding hostmem-memfd & properties

2018-09-06 Thread Marc-André Lureau
Run some memfd-related checks before registering hostmem-memfd & various properties. This will help libvirt to figure out what the host is supposed to be capable of. qemu_memfd_check() is changed to a less optimized version, since it is used with various flags, it no longer caches the result.

Re: [Qemu-devel] [PATCH] RISC-V - Dynamic parameterization of RISC-V memory map

2018-09-06 Thread Peter Maydell
On 6 September 2018 at 16:07, Michael Eager wrote: > Any comments? I'd quite like to hear from somebody more familiar with the readconfig/writeconfig stuff than me about whether this very riscv-centric approach makes sense and fits with how the config file is used by other parts of QEMU. I'm

Re: [Qemu-devel] [PATCH 10/10] vl: list user creatable propeties if '?' as argument

2018-09-06 Thread Eric Blake
On 09/06/2018 10:12 AM, Marc-André Lureau wrote: Subject has typo and awkward grammar; I'd suggest: vl: list user creatable properties when 'help' is argument Iterate over the writable class properties, sort and print them out with the description if available. Ex: qemu -object

Re: [Qemu-devel] [PATCH 08/10] vl: handle -object ?

2018-09-06 Thread Eric Blake
On 09/06/2018 10:12 AM, Marc-André Lureau wrote: In the subject, s/\?/help/ Signed-off-by: Marc-André Lureau --- vl.c | 13 + 1 file changed, 13 insertions(+) diff --git a/vl.c b/vl.c index 5ba06adf78..8a5fd0c81f 100644 --- a/vl.c +++ b/vl.c @@ -2731,6 +2731,19 @@ static int

Re: [Qemu-devel] [PATCH 02/10] qemu-option: improve qemu_opts_print_help() output

2018-09-06 Thread Eric Blake
On 09/06/2018 10:12 AM, Marc-André Lureau wrote: Modify qemu_opts_print_help(): - to print expected argument type - skip description if not available - sort lines - prefix with the list name (like qdev, to avoid confusion) - drop 16-chars alignment, use a '-' as seperator for option name and

Re: [Qemu-devel] [PATCH 01/10] qemu-option: add help fallback to print the list of options

2018-09-06 Thread Eric Blake
On 09/06/2018 10:12 AM, Marc-André Lureau wrote: QDev options accept '?' or 'help' in the list of parameters, which is really handy to list the available options. Unfortunately, this isn't built in QemuOpts. qemu_opts_parse_noisily() seems to be the common path for command line options, so

[Qemu-devel] [PATCH 09/10] hostmem: add some properties description

2018-09-06 Thread Marc-André Lureau
Signed-off-by: Marc-André Lureau --- backends/hostmem-memfd.c | 9 + backends/hostmem.c | 14 ++ 2 files changed, 23 insertions(+) diff --git a/backends/hostmem-memfd.c b/backends/hostmem-memfd.c index 1e20fe0ba8..789c8c3f87 100644 --- a/backends/hostmem-memfd.c +++

[Qemu-devel] [PATCH 04/10] qom/object: register 'type' property as class property

2018-09-06 Thread Marc-André Lureau
Signed-off-by: Marc-André Lureau --- qom/object.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qom/object.c b/qom/object.c index d8666de3f2..185d1dd9f8 100644 --- a/qom/object.c +++ b/qom/object.c @@ -2423,9 +2423,10 @@ void

[Qemu-devel] [PATCH 02/10] qemu-option: improve qemu_opts_print_help() output

2018-09-06 Thread Marc-André Lureau
Modify qemu_opts_print_help(): - to print expected argument type - skip description if not available - sort lines - prefix with the list name (like qdev, to avoid confusion) - drop 16-chars alignment, use a '-' as seperator for option name and description For ex, "-spice ?" output is changed

[Qemu-devel] [PATCH 10/10] vl: list user creatable propeties if '?' as argument

2018-09-06 Thread Marc-André Lureau
Iterate over the writable class properties, sort and print them out with the description if available. Ex: qemu -object memory-backend-memfd,? memory-backend-memfd.dump=bool (Set to 'off' to exclude from core dump) memory-backend-memfd.host-nodes=int (Binds memory to the list of NUMA host nodes)

[Qemu-devel] [PATCH 05/10] tests/qom-proplist: check duplicate "bv" property registration failed

2018-09-06 Thread Marc-André Lureau
"bv" is already a class property. Signed-off-by: Marc-André Lureau --- tests/check-qom-proplist.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/check-qom-proplist.c b/tests/check-qom-proplist.c index 92898e1520..0f6d9c1ce3 100644 --- a/tests/check-qom-proplist.c

[Qemu-devel] [PATCH 08/10] vl: handle -object ?

2018-09-06 Thread Marc-André Lureau
Signed-off-by: Marc-André Lureau --- vl.c | 13 + 1 file changed, 13 insertions(+) diff --git a/vl.c b/vl.c index 5ba06adf78..8a5fd0c81f 100644 --- a/vl.c +++ b/vl.c @@ -2731,6 +2731,19 @@ static int machine_set_property(void *opaque, */ static bool object_create_initial(const

[Qemu-devel] [PATCH 01/10] qemu-option: add help fallback to print the list of options

2018-09-06 Thread Marc-André Lureau
QDev options accept '?' or 'help' in the list of parameters, which is really handy to list the available options. Unfortunately, this isn't built in QemuOpts. qemu_opts_parse_noisily() seems to be the common path for command line options, so place a fallback to check for '?' and print help

[Qemu-devel] [PATCH 06/10] tests/qom-proplist: check properties are not listed multiple times

2018-09-06 Thread Marc-André Lureau
And factor out a common function used by the follow class properties iterator test. Signed-off-by: Marc-André Lureau --- tests/check-qom-proplist.c | 44 +- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/tests/check-qom-proplist.c

[Qemu-devel] [PATCH 07/10] tests/qom-proplist: check class properties iterator

2018-09-06 Thread Marc-André Lureau
This test failed before "fix iterating properties over a class". Signed-off-by: Marc-André Lureau --- tests/check-qom-proplist.c | 9 + 1 file changed, 9 insertions(+) diff --git a/tests/check-qom-proplist.c b/tests/check-qom-proplist.c index 8e1b9c27f3..7ed16b704b 100644 ---

[Qemu-devel] [PATCH 00/10] Various qemu command line options help improvements

2018-09-06 Thread Marc-André Lureau
Hi, This is a compilation of patches I have to improve command line help support. The first 2 patches have already been sent earlier, I modified the first to fix an issue reported by Markus. The other patches add support for -object help. A few preliminary patches for QOM, to fix/improve some

[Qemu-devel] [PATCH 03/10] qom/object: fix iterating properties over a class

2018-09-06 Thread Marc-André Lureau
object_class_property_iter_init() starts from the given class, so the next class should continue with the parent class. Signed-off-by: Marc-André Lureau --- qom/object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qom/object.c b/qom/object.c index 75d1d48944..d8666de3f2

Re: [Qemu-devel] backend for blk or fs with guaranteed blocking/synchronous I/O

2018-09-06 Thread Michael S. Tsirkin
On Thu, Sep 06, 2018 at 04:24:12PM +0600, Artem Pisarenko wrote: > Hi all, > > I'm developing paravirtualized target linux system which runs multiple linux > containers (LXC) inside itself. (For those, who unfamiliar with LXC, simply > put, it's an isolated group of userspace processes with their

Re: [Qemu-devel] [PATCH] RISC-V - Dynamic parameterization of RISC-V memory map

2018-09-06 Thread Michael Eager
Any comments? On 08/30/2018 09:22 AM, Michael Eager wrote: Corrected patch attached. On 08/29/2018 05:48 PM, Michael Eager wrote: Whoops.  I just noticed that this patch is against the riscv-qemu repo on github, not the qemu.org repo.  I will rework it for the qemu.org repo.  Meanwhile, I

Re: [Qemu-devel] [PATCH 0/3] scsi: remove lsi53c895a_create() and lsi53c810_create() functions

2018-09-06 Thread Peter Maydell
On 6 September 2018 at 13:02, Thomas Huth wrote: > I somehow fail to see that something outside of lsi53c895a.c should > really need to access the internals of LSIState. If there is something > that needs to be configured from the outside, it should be done via QOM > properties instead, shouldn't

[Qemu-devel] [PATCH] block: Fix use after free error in bdrv_open_inherit()

2018-09-06 Thread Alberto Garcia
When a block device is opened with BDRV_O_SNAPSHOT and the bdrv_append_temp_snapshot() call fails then the error code path tries to unref the already destroyed 'options' QDict. This can be reproduced easily by setting TMPDIR to a location where the QEMU process can't write: $

Re: [Qemu-devel] Some confusion about live migration of usb device

2018-09-06 Thread CheneyLin
> -原始邮件- > 发件人: "gerd hoffmann" > 发送时间: 2018-09-06 21:52:23 (星期四) > 收件人: linzhecheng > 抄送: "wangxin (U)" , CheneyLin , > "qemu-devel@nongnu.org" > 主题: Re: [Qemu-devel] Some confusion about live migration of usb device > > On Thu, Sep 06, 2018 at 12:10:08PM +, linzhecheng wrote:

Re: [Qemu-devel] [PATCH v2] qga: ignore non present cpus when handling qmp_guest_get_vcpus()

2018-09-06 Thread Laszlo Ersek
On 09/06/18 14:51, Igor Mammedov wrote: > If VM has VCPUs plugged sparselly (for example a VM started with > 3 VCPUs (cpu0, cpu1 and cpu2) and then cpu1 was hotunplugged so > only cpu0 and cpu2 are present), QGA will rise a error > error: internal error: unable to execute QEMU agent command >

Re: [Qemu-devel] [PATCH V9 2/4] tests/migration: Support cross compilation in generating boot header file

2018-09-06 Thread Andrew Jones
On Thu, Sep 06, 2018 at 09:37:04AM -0400, Wei Huang wrote: > > > - Original Message - > > From: "Andrew Jones" > > To: "Wei Huang" > > Cc: qemu-devel@nongnu.org, lviv...@redhat.com, "peter maydell" > > , quint...@redhat.com, > > dgilb...@redhat.com, "alex bennee" > > Sent: Thursday,

Re: [Qemu-devel] Some confusion about live migration of usb device

2018-09-06 Thread gerd hoffmann
On Thu, Sep 06, 2018 at 12:10:08PM +, linzhecheng wrote: > You had said that copying vmstate of usb-host is pointless, so just unpulg > and plug it after migration is all right, > but will other usb devices like usb-storage devices lose pending USBPackets > then? Ah, emulated usb

Re: [Qemu-devel] [PATCH V9 2/4] tests/migration: Support cross compilation in generating boot header file

2018-09-06 Thread Wei Huang
- Original Message - > From: "Andrew Jones" > To: "Wei Huang" > Cc: qemu-devel@nongnu.org, lviv...@redhat.com, "peter maydell" > , quint...@redhat.com, > dgilb...@redhat.com, "alex bennee" > Sent: Thursday, September 6, 2018 7:03:32 AM > Subject: Re: [Qemu-devel] [PATCH V9 2/4]

[Qemu-devel] [PATCH v5 12/16] qapi/block-commit: expose new job properties

2018-09-06 Thread John Snow
Signed-off-by: John Snow Reviewed-by: Max Reitz --- blockdev.c | 8 qapi/block-core.json | 16 +++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/blockdev.c b/blockdev.c index ec90eb1cf9..98b91e75a7 100644 --- a/blockdev.c +++ b/blockdev.c @@

[Qemu-devel] [PATCH v5 13/16] qapi/block-mirror: expose new job properties

2018-09-06 Thread John Snow
Signed-off-by: John Snow Reviewed-by: Max Reitz --- blockdev.c | 14 ++ qapi/block-core.json | 30 -- 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/blockdev.c b/blockdev.c index 98b91e75a7..429cdf9901 100644 --- a/blockdev.c

[Qemu-devel] [PATCH v5 16/16] blockdev: document transactional shortcomings

2018-09-06 Thread John Snow
Presently only the backup job really guarantees what one would consider transactional semantics. To guard against someone helpfully adding them in the future, document that there are shortcomings in the model that would need to be audited at that time. Signed-off-by: John Snow --- blockdev.c |

[Qemu-devel] [PATCH v5 07/16] block/stream: refactor stream to use job callbacks

2018-09-06 Thread John Snow
Signed-off-by: John Snow Reviewed-by: Max Reitz --- block/stream.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/block/stream.c b/block/stream.c index 700eb239e4..81a7ec8ece 100644 --- a/block/stream.c +++ b/block/stream.c @@ -54,16 +54,16 @@

[Qemu-devel] [PATCH v5 14/16] qapi/block-stream: expose new job properties

2018-09-06 Thread John Snow
Signed-off-by: John Snow Reviewed-by: Max Reitz --- blockdev.c | 9 + hmp.c| 5 +++-- qapi/block-core.json | 16 +++- 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/blockdev.c b/blockdev.c index 429cdf9901..0cf8febe6c 100644 ---

[Qemu-devel] [PATCH v5 15/16] block/backup: qapi documentation fixup

2018-09-06 Thread John Snow
Fix documentation to match the other jobs amended for 3.1. Signed-off-by: John Snow Reviewed-by: Max Reitz --- qapi/block-core.json | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/qapi/block-core.json b/qapi/block-core.json index f877e9e414..c0b3d33dbb

[Qemu-devel] [PATCH v5 08/16] tests/blockjob: replace Blockjob with Job

2018-09-06 Thread John Snow
These tests don't actually test blockjobs anymore, they test generic Job lifetimes. Change the types accordingly. Signed-off-by: John Snow Reviewed-by: Max Reitz --- tests/test-blockjob.c | 98 ++- 1 file changed, 50 insertions(+), 48

[Qemu-devel] [PATCH v5 02/16] block/mirror: add block job creation flags

2018-09-06 Thread John Snow
Add support for taking and passing forward job creation flags. Signed-off-by: John Snow Reviewed-by: Max Reitz Reviewed-by: Jeff Cody --- block/mirror.c| 5 +++-- blockdev.c| 3 ++- include/block/block_int.h | 5 - 3 files changed, 9 insertions(+), 4

[Qemu-devel] [PATCH v5 05/16] block/mirror: don't install backing chain on abort

2018-09-06 Thread John Snow
In cases where we abort the block/mirror job, there's no point in installing the new backing chain before we finish aborting. Signed-off-by: John Snow --- block/mirror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/mirror.c b/block/mirror.c index

[Qemu-devel] [PATCH v5 11/16] jobs: remove .exit callback

2018-09-06 Thread John Snow
Now that all of the jobs use the component finalization callbacks, there's no use for the heavy-hammer .exit callback anymore. job_exit becomes a glorified type shim so that we can call job_completed from aio_bh_schedule_oneshot. Move these three functions down into job.c to eliminate a forward

[Qemu-devel] [PATCH v5 10/16] tests/test-blockjob-txn: move .exit to .clean

2018-09-06 Thread John Snow
The exit callback in this test actually only performs cleanup. Signed-off-by: John Snow Reviewed-by: Max Reitz --- tests/test-blockjob-txn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-blockjob-txn.c b/tests/test-blockjob-txn.c index

[Qemu-devel] [PATCH v5 01/16] block/commit: add block job creation flags

2018-09-06 Thread John Snow
Add support for taking and passing forward job creation flags. Signed-off-by: John Snow Reviewed-by: Max Reitz Reviewed-by: Jeff Cody --- block/commit.c| 5 +++-- blockdev.c| 7 --- include/block/block_int.h | 5 - 3 files changed, 11 insertions(+), 6

[Qemu-devel] [PATCH v5 00/16] jobs: Job Exit Refactoring Pt 2

2018-09-06 Thread John Snow
This is part two of a two part series that refactors the exit logic of jobs. This series forces all jobs to use the "finalize" semantics that were introduced previously, but only exposed via the backup jobs. Patches 1-3 add plumbing for the auto-dismiss and auto-finalize flags but do not expose

[Qemu-devel] [PATCH v5 04/16] block/commit: refactor commit to use job callbacks

2018-09-06 Thread John Snow
Use the component callbacks; prepare, abort, and clean. NB: prepare is only called when the job has not yet failed; and abort can be called after prepare. complete -> prepare -> abort -> clean complete -> abort -> clean During refactor, a potential problem with bdrv_drop_intermediate was

[Qemu-devel] [PATCH v5 09/16] tests/test-blockjob: remove exit callback

2018-09-06 Thread John Snow
We remove the exit callback and the completed boolean along with it. We can simulate it just fine by waiting for the job to defer to the main loop, and then giving it one final kick to get the main loop portion to run. Signed-off-by: John Snow Reviewed-by: Max Reitz --- tests/test-blockjob.c |

[Qemu-devel] [PATCH v5 03/16] block/stream: add block job creation flags

2018-09-06 Thread John Snow
Add support for taking and passing forward job creation flags. Signed-off-by: John Snow Reviewed-by: Max Reitz Reviewed-by: Jeff Cody --- block/stream.c| 5 +++-- blockdev.c| 3 ++- include/block/block_int.h | 5 - 3 files changed, 9 insertions(+), 4

[Qemu-devel] [PATCH v5 06/16] block/mirror: conservative mirror_exit refactor

2018-09-06 Thread John Snow
For purposes of minimum code movement, refactor the mirror_exit callback to use the post-finalization callbacks in a trivial way. Signed-off-by: John Snow --- block/mirror.c | 39 --- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git

[Qemu-devel] [PATCH v2] qga: ignore non present cpus when handling qmp_guest_get_vcpus()

2018-09-06 Thread Igor Mammedov
If VM has VCPUs plugged sparselly (for example a VM started with 3 VCPUs (cpu0, cpu1 and cpu2) and then cpu1 was hotunplugged so only cpu0 and cpu2 are present), QGA will rise a error error: internal error: unable to execute QEMU agent command 'guest-get-vcpus':

Re: [Qemu-devel] [PATCH v8 1/3] qmp: query-current-machine with wakeup-suspend-support

2018-09-06 Thread Daniel Henrique Barboza
On 09/05/2018 09:21 PM, Michael Roth wrote: Quoting Daniel Henrique Barboza (2018-07-05 15:08:11) When issuing the qmp/hmp 'system_wakeup' command, what happens in a nutshell is: - qmp_system_wakeup_request set runstate to RUNNING, sets a wakeup_reason and notify the event - in the

[Qemu-devel] [PATCH risu] ppc64.risu: Fix pattern for darn

2018-09-06 Thread Sandipan Das
This fixes the pattern for the Deliver A Random Number (darn) instruction to ensure that the value of the L field, which is used to determine the type and length of the generated random number, is never 3 which is currently reserved for future use. Signed-off-by: Sandipan Das --- ppc64.risu | 2

[Qemu-devel] [PATCH] target-ppc: Extend HWCAP2 bits for ISA 3.0

2018-09-06 Thread Sandipan Das
This adds the HWCAP2 bit to detect if a linux user process is running on an ISA 3.0 compliant cpu like POWER9. This can be verified using a simple test program that prints the value in the auxiliary vector for AT_HWCAP2 as shown below. Before: $ qemu-ppc64le -cpu power8 test 0x8c00 $

[Qemu-devel] [Bug 1771948] Re: aarch64 msr CNTFRQ_EL0

2018-09-06 Thread Thomas Huth
** Changed in: qemu Status: New => Invalid -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1771948 Title: aarch64 msr CNTFRQ_EL0 Status in QEMU: Invalid Bug description: Hello, I'm

Re: [Qemu-devel] [PATCH V9 4/4] tests: Add migration test for aarch64

2018-09-06 Thread Andrew Jones
On Wed, Sep 05, 2018 at 03:15:34PM -0400, Wei Huang wrote: > This patch adds migration test support for aarch64. The test code, which > implements the same functionality as x86, is booted as a kernel in qemu. > Here are the design choices we make for aarch64: > > * We choose this -kernel

Re: [Qemu-devel] [PATCH 0/3] scsi: remove lsi53c895a_create() and lsi53c810_create() functions

2018-09-06 Thread Thomas Huth
On 2018-09-06 07:57, Mark Cave-Ayland wrote: > As part of an upcoming 40p patchset I have a requirement to change the PCI > configuration of the LSI SCSI. However since commits a64aa5785d "hw: > Deprecate -drive > if=scsi with non-onboard HBAs" and b891538e81 "hw/ppc/prep: Fix implicit >

Re: [Qemu-devel] [PATCH] qga: ignore non present cpus when handling qmp_guest_get_vcpus()

2018-09-06 Thread Igor Mammedov
On Thu, 6 Sep 2018 13:52:49 +0200 Laszlo Ersek wrote: > On 09/06/18 12:50, Igor Mammedov wrote: > > On Thu, 6 Sep 2018 12:26:12 +0200 > > Laszlo Ersek wrote: > > > >> On 09/06/18 11:49, Igor Mammedov wrote: > >>> On Thu, 30 Aug 2018 17:51:13 +0200 > >>> Laszlo Ersek wrote: > >>> >

Re: [Qemu-devel] Some confusion about live migration of usb device

2018-09-06 Thread linzhecheng
You had said that copying vmstate of usb-host is pointless, so just unpulg and plug it after migration is all right, but will other usb devices like usb-storage devices lose pending USBPackets then? > -Original Message- > From: gerd hoffmann [mailto:kra...@redhat.com] > Sent:

Re: [Qemu-devel] Some confusion about live migration of usb device

2018-09-06 Thread gerd hoffmann
On Thu, Sep 06, 2018 at 10:25:20AM +, linzhecheng wrote: > Hi, Gerd > > I'm going through relevant codes about live migration of usb devices, > it seems that we will not save/load USBpacket in any vmstate, so > pending usb packets will be lost after live migration, is it a > problem? With

Re: [Qemu-devel] [PATCH V9 2/4] tests/migration: Support cross compilation in generating boot header file

2018-09-06 Thread Andrew Jones
On Wed, Sep 05, 2018 at 03:15:32PM -0400, Wei Huang wrote: > Recently a new configure option, CROSS_CC_GUEST, was added to > $(TARGET)-softmmu/config-target.mak to support TCG-related tests. This > patch tries to leverage this option to support cross compilation when the > migration boot block

Re: [Qemu-devel] [PATCH] qga: ignore non present cpus when handling qmp_guest_get_vcpus()

2018-09-06 Thread Laszlo Ersek
On 09/06/18 12:50, Igor Mammedov wrote: > On Thu, 6 Sep 2018 12:26:12 +0200 > Laszlo Ersek wrote: > >> On 09/06/18 11:49, Igor Mammedov wrote: >>> On Thu, 30 Aug 2018 17:51:13 +0200 >>> Laszlo Ersek wrote: >>> +Drew On 08/30/18 14:08, Igor Mammedov wrote: > If VM has

Re: [Qemu-devel] [PATCH 1/3] scsi: move lsi53c895a structures and defines into separate lsi53c895a.h file

2018-09-06 Thread Thomas Huth
On 2018-09-06 07:57, Mark Cave-Ayland wrote: > There is also one small change to the new header file which is the addition > of the previously missing LSI53C810 define. > > Signed-off-by: Mark Cave-Ayland > --- > hw/scsi/lsi53c895a.c | 116 +--- >

[Qemu-devel] [PATCH v2 2/3] block/snapshot: remove bdrv_snapshot_delete_by_id_or_name

2018-09-06 Thread Daniel Henrique Barboza
After the previous patch, the only instance of this function left is inside qemu-img.c. qemu-img is using it inside the 'img_snapshot' function to delete snapshots in the SNAPSHOT_DELETE case, based on a "snapshot_name" string that refers to the tag, not ID, of the QEMUSnapshotInfo struct. This

[Qemu-devel] [PATCH v2 3/3] qcow2-snapshot: remove redundant find_snapshot_by_id_and_name call

2018-09-06 Thread Daniel Henrique Barboza
In qcow2_snapshot_create there is the following code block: /* Generate an ID */ find_new_snapshot_id(bs, sn_info->id_str, sizeof(sn_info->id_str)); /* Check that the ID is unique */ if (find_snapshot_by_id_and_name(bs, sn_info->id_str, NULL) >= 0) { return -EEXIST; }

[Qemu-devel] [PATCH v2 1/3] block/snapshot.c: eliminate use of ID input in snapshot operations

2018-09-06 Thread Daniel Henrique Barboza
At this moment, QEMU attempts to create/load/delete snapshots by using either an ID (id_str) or a name. The problem is that the code isn't consistent of whether the entered argument is an ID or a name, causing unexpected behaviors. For example, when creating snapshots via savevm , what happens is

[Qemu-devel] [PATCH v2 0/3] HMP/snapshot changes - do not use ID anymore

2018-09-06 Thread Daniel Henrique Barboza
changes in v2: - removed the "RFC" marker; - added a new patch (patch 2) that removes bdrv_snapshot_delete_by_id_or_name from the code; - made changes in patch 1 as suggested by Murilo; - previous patch set link: https://lists.gnu.org/archive/html/qemu-devel/2018-08/msg04658.html It is not

Re: [Qemu-devel] [PATCH v6 0/3] migration: compression optimization

2018-09-06 Thread Juan Quintela
guangrong.x...@gmail.com wrote: > From: Xiao Guangrong > > Changelog in v6: > > Thanks to Juan's review, in this version we > 1) move flush compressed data to find_dirty_block() where it hits the end >of memblock > 2) use save_page_use_compression instead of migrate_use_compression in >

  1   2   >