Re: [Qemu-devel] [PATCH v3 00/16] qapi: Schema language cleanups & doc improvements

2019-09-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190913201349.24332-1-arm...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [Qemu-devel] [PATCH v3 00/16] qapi: Schema language cleanups & doc improvements Message-id:

[Qemu-devel] [Bug 1606899] Re: virtio-vga does not let guest poweroff properly

2019-09-13 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1606899 Title: virtio-vga

[Qemu-devel] [Bug 1606708] Re: QEMU crashes when switching consoles using SDL

2019-09-13 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1606708 Title: QEMU

Re: [Qemu-devel] [PATCH v6 0/3] Fix qcow2+luks corruption introduced by commit 8ac0f15f335

2019-09-13 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190913172741.5662-1-mlevi...@redhat.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN ===

Re: [Qemu-devel] [PATCH] migration: check length directly to make sure the range is aligned

2019-09-13 Thread Wei Yang
On Fri, Jul 19, 2019 at 06:54:00PM +0100, Dr. David Alan Gilbert wrote: >* Wei Yang (richardw.y...@linux.intel.com) wrote: >> Since the start addr is already checked, to make sure the range is >> aligned, checking the length is enough. >> >> Signed-off-by: Wei Yang >> --- >> exec.c | 7 +++

Re: [Qemu-devel] [PATCH] migration: use migration_is_active to represent active state

2019-09-13 Thread Wei Yang
On Wed, Jul 17, 2019 at 08:53:41AM +0800, Wei Yang wrote: >Wrap the check into a function to make it easy to read. > Hi, Dave & Juan Do you like this one :-) ? >Signed-off-by: Wei Yang >--- > include/migration/misc.h | 1 + > migration/migration.c| 12 > 2 files changed, 9

Re: [Qemu-devel] [PATCH v2 0/2] refine memory_device_get_free_addr

2019-09-13 Thread Wei Yang
On Tue, Jul 30, 2019 at 08:37:38AM +0800, Wei Yang wrote: >When we iterate the memory-device list to get the available range, it is not >necessary to iterate the whole list. > >1) no more overlap for hinted range if tmp exceed it > >v2: > * remove #2 as suggested by Igor and David > * add some

Re: [Qemu-devel] [PATCH 3/4] iotests: Add @error to wait_until_completed

2019-09-13 Thread John Snow
On 9/12/19 9:56 AM, Max Reitz wrote: > Callers can use this new parameter to expect failure during the > completion process. > > Signed-off-by: Max Reitz > --- > tests/qemu-iotests/iotests.py | 18 -- > 1 file changed, 12 insertions(+), 6 deletions(-) > > diff --git

Re: [Qemu-devel] [PATCH 1/4] mirror: Do not dereference invalid pointers

2019-09-13 Thread John Snow
On 9/12/19 9:56 AM, Max Reitz wrote: > mirror_exit_common() may be called twice (if it is called from > mirror_prepare() and fails, it will be called from mirror_abort() > again). > > In such a case, many of the pointers in the MirrorBlockJob object will > already be freed. This can be seen

Re: [Qemu-devel] [PATCH v2 3/3] block/qcow2: proper locking on bitmap add/remove paths

2019-09-13 Thread John Snow
On 9/11/19 11:00 AM, Vladimir Sementsov-Ogievskiy wrote: > qmp_block_dirty_bitmap_add and do_block_dirty_bitmap_remove do acquire > aio context since 0a6c86d024c52b. But this is not enough: we also must > lock qcow2 mutex when access in-image metadata. Especially it concerns > freeing qcow2

Re: [Qemu-devel] [PATCH v3] qemu-ga: Convert invocation documentation to rST

2019-09-13 Thread Michael Roth
Quoting Peter Maydell (2019-09-13 08:28:36) > On Thu, 5 Sep 2019 at 14:10, Peter Maydell wrote: > > > > The qemu-ga documentation is currently in qemu-ga.texi in > > Texinfo format, which we present to the user as: > > * a qemu-ga manpage > > * a section of the main qemu-doc HTML documentation

Re: [Qemu-devel] [PATCH 1/1] qga-win: network-get-interfaces command name field bug fix

2019-09-13 Thread Michael Roth
Quoting Bishara AbuHattoum (2019-08-19 08:16:20) > Network interface name is fetched as an encoded WCHAR array, (wide > character), then it is decoded using the guest's CP_ACP Windows code > page, which is the default code page as configure in the guest's > Windows, then it is returned as a byte

Re: [Qemu-devel] [PATCH v2 2/3] block/dirty-bitmap: return int from bdrv_remove_persistent_dirty_bitmap

2019-09-13 Thread John Snow
On 9/11/19 11:00 AM, Vladimir Sementsov-Ogievskiy wrote: > It's more comfortable to not deal with local_err. > I agree. > Signed-off-by: Vladimir Sementsov-Ogievskiy > --- > block/qcow2.h| 5 ++--- > include/block/block_int.h| 6 +++--- > include/block/dirty-bitmap.h

Re: [Qemu-devel] [PATCH v2 1/3] block: move bdrv_can_store_new_dirty_bitmap to block/dirty-bitmap.c

2019-09-13 Thread John Snow
On 9/11/19 11:00 AM, Vladimir Sementsov-Ogievskiy wrote: > block/dirty-bitmap.c seems to be more appropriate for it and > bdrv_remove_persistent_dirty_bitmap already in it. > > Signed-off-by: Vladimir Sementsov-Ogievskiy No disagreements here. I think we put it in block.c initially because

Re: [Qemu-devel] [PATCH] podman: fix command invocation

2019-09-13 Thread Alex Bennée
John Snow writes: > Oops; there's no argv here. Oops indeed. Queued to testing/next, thanks. > > Signed-off-by: John Snow > --- > tests/docker/docker.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tests/docker/docker.py b/tests/docker/docker.py > index

Re: [Qemu-devel] Python3 support for patches

2019-09-13 Thread John Snow
On 9/13/19 3:32 PM, John Snow wrote: > Hi, > > I quite like the patches tool; but python2 is notably doomed. > > I tried my hand at polishing it up for python3 and pushed the results > here: https://github.com/jnsnow/patches/tree/python3 > > I didn't faff around with trying to add

Re: [Qemu-devel] [PATCH v1] gdbstub: riscv: fix the fflags registers

2019-09-13 Thread Palmer Dabbelt
On Tue, 10 Sep 2019 01:15:41 PDT (-0700), frederic.kon...@adacore.com wrote: While debugging an application with GDB the following might happen: (gdb) return Make xxx return now? (y or n) y Could not fetch register "fflags"; remote failure reply 'E14' This is because riscv_gdb_get_fpu calls

Re: [Qemu-devel] [Qemu-block] [PATCH 2/2] trace: Forbid event format ending with newline character

2019-09-13 Thread John Snow
On 9/13/19 5:00 PM, Philippe Mathieu-Daudé wrote: > On 9/13/19 10:01 PM, John Snow wrote: >> On 9/13/19 6:52 AM, Philippe Mathieu-Daudé wrote: >>> Event format ending with newlines confuse the trace reports. >>> Forbid them. >>> >>> Add a check to refuse new format added with trailing newline:

Re: [Qemu-devel] [Qemu-block] [PATCH 2/2] trace: Forbid event format ending with newline character

2019-09-13 Thread Philippe Mathieu-Daudé
On 9/13/19 10:01 PM, John Snow wrote: > On 9/13/19 6:52 AM, Philippe Mathieu-Daudé wrote: >> Event format ending with newlines confuse the trace reports. >> Forbid them. >> >> Add a check to refuse new format added with trailing newline: >> >> $ make >> [...] >> GEN hw/misc/trace.h >>

[Qemu-devel] [PATCH] error-report: Add info_report_once helper

2019-09-13 Thread Cyrill Gorcunov
We already have error_report_once and warn_report_once, thus lets add info_report_once to complement. Actually I use this helper a lot so might be usefull for others. Signed-off-by: Cyrill Gorcunov --- include/qemu/error-report.h | 13 + util/qemu-error.c | 20

[Qemu-devel] [PATCH v3 12/16] docs/devel/qapi-code-gen: Reorder sections for readability

2019-09-13 Thread Markus Armbruster
Section "QMP/Guest agent schema" starts with a brief introduction, then subsection "Comments", then subsection "Schema overview" (more elaborate introduction), and only then talks about schema entities like types, commands, and so forth. Subsection "Comments" is long and tiring: almost 500 words,

[Qemu-devel] [PATCH v3 16/16] qapi: Tweak code to match docs/devel/qapi-code-gen.txt

2019-09-13 Thread Markus Armbruster
The previous commit made qapi-code-gen.txt define "(top-level) expression" as either "directive" or "definition". The code still uses "expression" when it really means "definition". Tidy up. The previous commit made qapi-code-gen.txt use "object" rather than "dictionary". The code still uses

Re: [Qemu-devel] [Qemu-block] [PATCH v2] virtio-blk: schedule virtio_notify_config to run on main context

2019-09-13 Thread John Snow
On 9/13/19 6:56 AM, Sergio Lopez wrote: > virtio_notify_config() needs to acquire the global mutex, which isn't > allowed from an iothread, and may lead to a deadlock like this: > > - main thead > * Has acquired: qemu_global_mutex. > * Is trying the acquire: iothread AioContext lock via >

[Qemu-devel] [PATCH v3 09/16] qapi: Permit alternates with just one branch

2019-09-13 Thread Markus Armbruster
A union or alternate without branches makes no sense and doesn't work: it can't be instantiated. A union or alternate with just one branch works, but is degenerate. We accept the former, but reject the latter. Weird. docs/devel/qapi-code-gen.txt doesn't mention the difference. It claims an

[Qemu-devel] [PATCH v3 10/16] qapi: Permit omitting all flat union branches

2019-09-13 Thread Markus Armbruster
Absent flat union branches default to the empty struct (since commit 800877bb16 "qapi: allow empty branches in flat unions"). But am attempt to omit all of them is rejected with "Union 'FOO' has no branches". Harmless oddity, but it's easy to avoid, so do that. Signed-off-by: Markus Armbruster

[Qemu-devel] [PATCH v3 08/16] qapi: Permit 'boxed' with empty type

2019-09-13 Thread Markus Armbruster
We reject empty types with 'boxed': true. We don't really need that to work, but making it work is actually simpler than rejecting it, so do that. Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake --- tests/test-qmp-cmds.c | 4 scripts/qapi/commands.py

[Qemu-devel] [PATCH v3 15/16] docs/devel/qapi-code-gen: Improve QAPI schema language doc

2019-09-13 Thread Markus Armbruster
We document the language by giving patterns of valid JSON objects. The patterns contain placeholders we don't define anywhere; their names have to speak for themselves. I guess they do, but I'd prefer a bit more rigor. Provide a grammar instead, and rework the text accordingly. Documentation

[Qemu-devel] [PATCH v3 03/16] qapi: Drop support for boxed alternate arguments

2019-09-13 Thread Markus Armbruster
Commands and events can define their argument type inline (default) or by referring to another type ('boxed': true, since commit c818408e44 "qapi: Implement boxed types for commands/events", v2.7.0). The unboxed inline definition is an (anonymous) struct type. The boxed type may be a struct,

[Qemu-devel] [PATCH v3 14/16] docs/devel/qapi-code-gen: Rewrite introduction to schema

2019-09-13 Thread Markus Armbruster
The introduction to the QAPI schema is somewhat rambling. Rewrite for clarity. Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake --- docs/devel/qapi-code-gen.txt | 107 --- 1 file changed, 48 insertions(+), 59 deletions(-) diff --git

[Qemu-devel] [PATCH v3 13/16] docs/devel/qapi-code-gen: Rewrite compatibility considerations

2019-09-13 Thread Markus Armbruster
We have some compatibility advice buried in sections "Enumeration types" and "Struct types". Compatibility is actually about commands and events. It devolves to the types used there. All kinds of types, not just enumerations and structs. Replace the existing advice by a new section

[Qemu-devel] [PATCH v3 11/16] qapi: Adjust frontend errors to say enum value, not member

2019-09-13 Thread Markus Armbruster
For consistency with docs/devel/qapi-code-gen.txt. Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake --- scripts/qapi/common.py | 11 --- scripts/qapi/events.py | 2 +- tests/qapi-schema/enum-clash-member.err | 2 +-

[Qemu-devel] [PATCH v3 00/16] qapi: Schema language cleanups & doc improvements

2019-09-13 Thread Markus Armbruster
v3: * PATCH 05 - Typo fixed [Eric] * PATCH 06+07 - Additional comments [Eric] * PATCH 11 - Replace one more QAPISchemaMember by QAPISchemaEnumMember * PATCH 13+15 - Doc phrasing tweaks [Eric] * PATCH 14+15 - Belatedly update for v2's restriction to printable ASCII [Eric] - Correct

[Qemu-devel] [PATCH v3 01/16] scripts/git.orderfile: Match QAPI schema more precisely

2019-09-13 Thread Markus Armbruster
Pattern *.json also matches the tests/qapi-schema/*.json. Separates them from the tests/qapi-schema/*.{err,exit,out} in diffs. I hate that. Change the pattern to match just the "real" QAPI schemata. Signed-off-by: Markus Armbruster Reviewed-by: Philippe Mathieu-Daudé ---

[Qemu-devel] [PATCH v3 07/16] qapi: Drop support for escape sequences other than \\

2019-09-13 Thread Markus Armbruster
Since the previous commit restricted strings to printable ASCII, \u's only use is obfuscation. Drop it. This leaves \\, \/, \', and \". Since QAPI schema strings are all names, and names are restricted to ASCII letters, digits, hyphen, and underscore, none of them is useful. The latter

[Qemu-devel] [PATCH v3 06/16] qapi: Restrict strings to printable ASCII

2019-09-13 Thread Markus Armbruster
RFC 8259 on string contents: All Unicode characters may be placed within the quotation marks, except for the characters that MUST be escaped: quotation mark, reverse solidus, and the control characters (U+ through U+001F). The QAPI schema parser accepts both less and more than

[Qemu-devel] [PATCH v3 02/16] qapi: Drop check_type()'s redundant parameter @allow_optional

2019-09-13 Thread Markus Armbruster
check_type() uses @allow_optional only when @value is a dictionary and @allow_dict is True. All callers that pass allow_dict=True also pass allow_optional=True. Therefore, @allow_optional is always True when check_type() uses it. Drop the redundant parameter. Signed-off-by: Markus Armbruster

[Qemu-devel] [PATCH v3 04/16] docs/devel/qapi-code-gen: Minor specification fixes

2019-09-13 Thread Markus Armbruster
The specification claims "Each expression that isn't an include directive may be preceded by a documentation block", but the code also rejects them for pragma directives. The code is correct. Fix the specification. The specification reserves member names starting with 'has_', but the code also

[Qemu-devel] [PATCH v3 05/16] tests/qapi-schema: Demonstrate bad reporting of funny characters

2019-09-13 Thread Markus Armbruster
Invalid name 'not\\possible' is reported as 'not\possible'. Control characters (quoted or not) are even more confusing. Mark FIXME. Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake --- tests/qapi-schema/enum-bad-name.err | 2 +- tests/qapi-schema/enum-bad-name.json | 3 ++- 2 files

Re: [Qemu-devel] [Qemu-block] [PATCH 0/2] trace: Forbid trailing newline in event format

2019-09-13 Thread John Snow
On 9/13/19 6:52 AM, Philippe Mathieu-Daudé wrote: > Hi Stefan, > > I'v been confused by trailing newline in trace reports, > so this series aims to fix this, by cleaning current > formats and add a check to catch new one introduced. > > Regards, > > Phil. > > Philippe Mathieu-Daudé (2): >

Re: [Qemu-devel] [PATCH 15/15] pc: Add an SMB0 ACPI device to q35

2019-09-13 Thread Corey Minyard
On Mon, Aug 19, 2019 at 03:17:05PM -0500, miny...@acm.org wrote: > From: Corey Minyard > > This is so I2C devices can be found in the ACPI namespace. Currently > that's only IPMI, but devices can be easily added now. > > Adding the devices required some PCI information, and the bus itself > to

Re: [Qemu-devel] [Qemu-block] [PATCH 2/2] trace: Forbid event format ending with newline character

2019-09-13 Thread John Snow
On 9/13/19 6:52 AM, Philippe Mathieu-Daudé wrote: > Event format ending with newlines confuse the trace reports. > Forbid them. > > Add a check to refuse new format added with trailing newline: > > $ make > [...] > GEN hw/misc/trace.h > Traceback (most recent call last): >

Re: [Qemu-devel] [Qemu-block] [PATCH v2 1/2] blockdev: release the AioContext at drive_backup_prepare

2019-09-13 Thread John Snow
On 9/13/19 11:25 AM, Sergio Lopez wrote: > do_drive_backup() already acquires the AioContext, so release it > before the call. > > Signed-off-by: Sergio Lopez > --- > blockdev.c | 6 +- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/blockdev.c b/blockdev.c > index

[Qemu-devel] [PATCH] podman: fix command invocation

2019-09-13 Thread John Snow
Oops; there's no argv here. Signed-off-by: John Snow --- tests/docker/docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/docker/docker.py b/tests/docker/docker.py index 29613afd48..bc7a470ca2 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@

[Qemu-devel] Python3 support for patches

2019-09-13 Thread John Snow
Hi, I quite like the patches tool; but python2 is notably doomed. I tried my hand at polishing it up for python3 and pushed the results here: https://github.com/jnsnow/patches/tree/python3 I didn't faff around with trying to add simultaneous support: this is a direct conversion in one big

Re: [Qemu-devel] [PATCH v2] util/hbitmap: strict hbitmap_reset

2019-09-13 Thread John Snow
On 9/12/19 4:20 AM, Vladimir Sementsov-Ogievskiy wrote: > 11.09.2019 20:59, John Snow wrote: >> >> >> On 9/11/19 11:13 AM, Vladimir Sementsov-Ogievskiy wrote: >>> 07.08.2019 19:27, John Snow wrote: On 8/6/19 12:19 PM, Vladimir Sementsov-Ogievskiy wrote: > 06.08.2019 19:09,

[Qemu-devel] [Bug 1843941] [NEW] RBD Namespaces are not supported

2019-09-13 Thread Gregory O'Neill
Public bug reported: Ceph Nautilus (v14.2.0) introduced the Namespaces concept for RADOS Block Devices. This provides a logical separation within a RADOS Pool for RBD images which enables granular access control. See https://docs.ceph.com/docs/nautilus/releases/nautilus/ for additional details.

Re: [Qemu-devel] [PATCH v3 1/5] rcu: Add automatically released rcu_read_lock variants

2019-09-13 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > On 13/09/19 12:25, Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > > > RCU_READ_LOCK_GUARD() takes the rcu_read_lock and then uses glib's > > g_auto infrastructure (and thus whatever the compiler's hooks are) to > >

Re: [Qemu-devel] [PATCH v2] qapi/qmp-dispatch: Fix error class for reporting disabled commands

2019-09-13 Thread Markus Armbruster
Michal Privoznik writes: > On 9/13/19 2:52 PM, Markus Armbruster wrote: >> Michal Privoznik writes: >> >>> If a command is disabled an error is reported. But due to usage >>> of error_setg() the class of the error is GenericError which does >>> not help callers in distinguishing this case from

Re: [Qemu-devel] [PATCH v6 2/3] block/qcow2: refactor threaded encryption code

2019-09-13 Thread Vladimir Sementsov-Ogievskiy
and a bit about empty lines 13.09.2019 20:27, Maxim Levitsky wrote: > Change the qcow2_co_encrypt to just receive full host and > guest offsets and in pariticular remove the > offset_in_cluster parameter of do_perform_cow_encrypt, > since it is misleading, because that offset can be larger than >

Re: [Qemu-devel] [PATCH] Check correct register for clock source

2019-09-13 Thread Amithash Prasad
>> yes. I have pushed it on the aspeed-4.2 branch but it can go independently >>as there are no conflicts. I changed the title slightly to reflect the >> area being changed. Thanks! If required, I can change the patch title and resubmit.

Re: [Qemu-devel] [PATCH v3 6/8] iotests: Test driver whitelisting in 093

2019-09-13 Thread John Snow
On 9/13/19 8:47 AM, Max Reitz wrote: > On 20.08.19 23:32, John Snow wrote: >> >> >> On 8/19/19 4:18 PM, Max Reitz wrote: >>> null-aio may not be whitelisted. Skip all test cases that require it. >>> >>> Signed-off-by: Max Reitz >>> --- >>> tests/qemu-iotests/093 | 12 +--- >>> 1 file

Re: [Qemu-devel] [PATCH v11 04/14] block/backup: introduce BlockCopyState

2019-09-13 Thread Vladimir Sementsov-Ogievskiy
10.09.2019 13:23, Vladimir Sementsov-Ogievskiy wrote: > Split copying code part from backup to "block-copy", including separate > state structure and function renaming. This is needed to share it with > backup-top filter driver in further commits. > > Notes: > > 1. As BlockCopyState keeps own

Re: [Qemu-devel] [PATCH v6 2/3] block/qcow2: refactor threaded encryption code

2019-09-13 Thread Maxim Levitsky
On Fri, 2019-09-13 at 17:51 +, Vladimir Sementsov-Ogievskiy wrote: > 13.09.2019 20:27, Maxim Levitsky wrote: > > Change the qcow2_co_encrypt to just receive full host and > > guest offsets and in pariticular remove the > > offset_in_cluster parameter of do_perform_cow_encrypt, > > since it is

Re: [Qemu-devel] [PATCH 0/2] HPPA tcg fixes

2019-09-13 Thread Richard Henderson
On 9/13/19 6:17 AM, Sven Schnelle wrote: > Sven Schnelle (2): > target/hppa: prevent trashing of temporary in trans_mtctl() > target/hppa: prevent trashing of temporary in do_depw_sar() > > target/hppa/translate.c | 15 ++- > 1 file changed, 10 insertions(+), 5 deletions(-)

Re: [Qemu-devel] [PATCH v6 2/3] block/qcow2: refactor threaded encryption code

2019-09-13 Thread Vladimir Sementsov-Ogievskiy
13.09.2019 20:27, Maxim Levitsky wrote: > Change the qcow2_co_encrypt to just receive full host and > guest offsets and in pariticular remove the > offset_in_cluster parameter of do_perform_cow_encrypt, > since it is misleading, because that offset can be larger than > cluster size currently. > >

[Qemu-devel] [PATCH v6 1/3] Fix qcow2+luks corruption introduced by commit 8ac0f15f335

2019-09-13 Thread Maxim Levitsky
This fixes subtle corruption introduced by luks threaded encryption in commit 8ac0f15f335 Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1745922 The corruption happens when we do a write that * writes to two or more unallocated clusters at once * doesn't fully cover the first sector

[Qemu-devel] [PATCH v6 3/3] qemu-iotests: Add test for bz #1745922

2019-09-13 Thread Maxim Levitsky
Signed-off-by: Maxim Levitsky Tested-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/263 | 91 ++ tests/qemu-iotests/263.out | 40 + tests/qemu-iotests/group | 1 + 3 files changed, 132 insertions(+) create mode 100755

[Qemu-devel] [PATCH v6 0/3] Fix qcow2+luks corruption introduced by commit 8ac0f15f335

2019-09-13 Thread Maxim Levitsky
Commit 8ac0f15f335 accidently broke the COW of non changed areas of newly allocated clusters, when the write spans multiple clusters, and needs COW both prior and after the write. This results in 'after' COW area being encrypted with wrong sector address, which render it corrupted. Bugzilla:

[Qemu-devel] [PATCH v6 2/3] block/qcow2: refactor threaded encryption code

2019-09-13 Thread Maxim Levitsky
Change the qcow2_co_encrypt to just receive full host and guest offsets and in pariticular remove the offset_in_cluster parameter of do_perform_cow_encrypt, since it is misleading, because that offset can be larger than cluster size currently. Remove the do_perform_cow_encrypt by merging it with

Re: [Qemu-devel] [PATCH v5 3/3] qemu-iotests: Add test for bz #1745922

2019-09-13 Thread Maxim Levitsky
On Fri, 2019-09-13 at 16:57 +, Vladimir Sementsov-Ogievskiy wrote: > 13.09.2019 19:39, Maxim Levitsky wrote: > > On Fri, 2019-09-13 at 16:27 +, Vladimir Sementsov-Ogievskiy wrote: > > > 13.09.2019 18:28, Maxim Levitsky wrote: > > > > Signed-off-by: Maxim Levitsky > > > > --- > > > >

Re: [Qemu-devel] [PATCH v7 0/3] 9p: Fix file ID collisions

2019-09-13 Thread Greg Kurz
On Thu, 5 Sep 2019 12:42:01 +0200 Christian Schoenebeck wrote: > This is v7 of a proposed patch set for fixing file ID collisions with 9pfs. > So I did some changes in 1/3 and pushed everything to 9p-next. I'll do some more manual testing and issue a PR when I'm confident enough. It would be

Re: [Qemu-devel] [PATCH v5 3/3] qemu-iotests: Add test for bz #1745922

2019-09-13 Thread Vladimir Sementsov-Ogievskiy
13.09.2019 19:39, Maxim Levitsky wrote: > On Fri, 2019-09-13 at 16:27 +, Vladimir Sementsov-Ogievskiy wrote: >> 13.09.2019 18:28, Maxim Levitsky wrote: >>> Signed-off-by: Maxim Levitsky >>> --- >>>tests/qemu-iotests/263 | 91 ++ >>>

Re: [Qemu-devel] [PATCH v5 3/3] qemu-iotests: Add test for bz #1745922

2019-09-13 Thread Maxim Levitsky
On Fri, 2019-09-13 at 16:27 +, Vladimir Sementsov-Ogievskiy wrote: > 13.09.2019 18:28, Maxim Levitsky wrote: > > Signed-off-by: Maxim Levitsky > > --- > > tests/qemu-iotests/263 | 91 ++ > > tests/qemu-iotests/263.out | 40 + > >

[Qemu-devel] [PATCH 1/2] migration/rdma: Don't moan about disconnects at the end

2019-09-13 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" If we've already finished the migration or something has already gone wrong, don't moan about the migration stream disconnecting. Signed-off-by: Dr. David Alan Gilbert --- migration/rdma.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff

[Qemu-devel] [PATCH] 9p: Print error hints if option parsing fails

2019-09-13 Thread Greg Kurz
Option parsing fonctions are called with _fatal, which causes error_setg() to call exit() and the hints are never printed. Use an intermediate error object so that exit() happens in error_propagate() after error_append_hint() could be called. Signed-off-by: Greg Kurz --- hw/9pfs/9p-local.c |

[Qemu-devel] [PATCH 0/2] migration/rdma disconnect fixes

2019-09-13 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Hi, This fixes a deadlock that can occur on the source after a failed RDMA migration and cleans up some warning messages that can appear during normal completion. https://bugzilla.redhat.com/show_bug.cgi?id=1746787 Dr. David Alan Gilbert (2): migration/rdma:

[Qemu-devel] [PATCH 2/2] migration/rdma.c: Swap synchronize_rcu for call_rcu

2019-09-13 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" This fixes a deadlock that can occur on the migration source after a failed RDMA migration; as the source tries to cleanup it clears a pair of pointers and uses synchronize_rcu to wait; this is happening on the main thread. With the CPUs running a CPU thread can

Re: [Qemu-devel] [PATCH v5 2/3] block/qcow2: refactor threaded encryption code

2019-09-13 Thread Maxim Levitsky
On Fri, 2019-09-13 at 16:11 +, Vladimir Sementsov-Ogievskiy wrote: > 13.09.2019 18:28, Maxim Levitsky wrote: > > Change do_perform_cow_encrypt and its callee qcow2_co_encrypt > > to just receive full host and guest offsets and in pariticular > > remove the offset_in_cluster parameter of

Re: [Qemu-devel] [PATCH v5 3/3] qemu-iotests: Add test for bz #1745922

2019-09-13 Thread Vladimir Sementsov-Ogievskiy
13.09.2019 18:28, Maxim Levitsky wrote: > Signed-off-by: Maxim Levitsky > --- > tests/qemu-iotests/263 | 91 ++ > tests/qemu-iotests/263.out | 40 + > tests/qemu-iotests/group | 2 + > 3 files changed, 133 insertions(+) > create

Re: [Qemu-devel] [PATCH v5 2/3] block/qcow2: refactor threaded encryption code

2019-09-13 Thread Vladimir Sementsov-Ogievskiy
13.09.2019 18:28, Maxim Levitsky wrote: > Change do_perform_cow_encrypt and its callee qcow2_co_encrypt > to just receive full host and guest offsets and in pariticular > remove the offset_in_cluster parameter of do_perform_cow_encrypt, > since it is misleading, because that offset can be larger

[Qemu-devel] [PULL 10/12] aspeed/scu: Introduce a aspeed_scu_get_apb_freq() routine

2019-09-13 Thread Peter Maydell
From: Cédric Le Goater The APB frequency can be calculated directly when needed from the HPLL_PARAM and CLK_SEL register values. This removes useless state in the model. Signed-off-by: Cédric Le Goater Message-id: 20190904070506.1052-11-...@kaod.org Reviewed-by: Peter Maydell Signed-off-by:

[Qemu-devel] [PULL 12/12] qemu-ga: Convert invocation documentation to rST

2019-09-13 Thread Peter Maydell
The qemu-ga documentation is currently in qemu-ga.texi in Texinfo format, which we present to the user as: * a qemu-ga manpage * a section of the main qemu-doc HTML documentation Convert the documentation to rST format, and present it to the user as: * a qemu-ga manpage * part of the interop/

[Qemu-devel] [PULL 07/12] aspeed/smc: Inject errors in DMA checksum

2019-09-13 Thread Peter Maydell
From: Cédric Le Goater Emulate read errors in the DMA Checksum Register for high frequencies and optimistic settings of the Read Timing Compensation Register. This will help in tuning the SPI timing calibration algorithm. Errors are only injected when the property "inject_failure" is set to true

[Qemu-devel] [PULL 05/12] aspeed/smc: Add support for DMAs

2019-09-13 Thread Peter Maydell
From: Cédric Le Goater The FMC controller on the Aspeed SoCs support DMA to access the flash modules. It can operate in a normal mode, to copy to or from the flash module mapping window, or in a checksum calculation mode, to evaluate the best clock settings for reads. The model introduces two

Re: [Qemu-devel] [Bug 1843852] Re: QEMU does not express a dependency on perl-Test-Harness

2019-09-13 Thread John Snow
On 9/13/19 11:06 AM, Paolo Bonzini wrote: > On 13/09/19 16:56, John Snow wrote: >> >> >> On 9/13/19 4:33 AM, Alex Bennée wrote: >>> Given we require python perhaps the simplest solution would be to re- >>> write the tap-driver as a python script rather than adding another >>> configure check? >>

[Qemu-devel] [PULL 06/12] aspeed/smc: Add DMA calibration settings

2019-09-13 Thread Peter Maydell
From: Cédric Le Goater When doing calibration, the SPI clock rate in the CE0 Control Register and the read delay cycles in the Read Timing Compensation Register are set using bit[11:4] of the DMA Control Register. Signed-off-by: Cédric Le Goater Acked-by: Joel Stanley Reviewed-by: Peter

[Qemu-devel] [PULL 11/12] atomic_template: fix indentation in GEN_ATOMIC_HELPER

2019-09-13 Thread Peter Maydell
From: "Emilio G. Cota" Reviewed-by: Alex Bennée Signed-off-by: Emilio G. Cota Reviewed-by: Richard Henderson Signed-off-by: Alex Bennée Signed-off-by: Peter Maydell --- accel/tcg/atomic_template.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Qemu-devel] [PULL 02/12] aspeed: add a GPIO controller to the SoC

2019-09-13 Thread Peter Maydell
From: Rashmica Gupta Signed-off-by: Rashmica Gupta Reviewed-by: Cédric Le Goater Signed-off-by: Cédric Le Goater Message-id: 20190904070506.1052-3-...@kaod.org Signed-off-by: Peter Maydell --- include/hw/arm/aspeed_soc.h | 3 +++ hw/arm/aspeed_soc.c | 17 + 2 files

[Qemu-devel] [PULL 09/12] aspeed/scu: Introduce per-SoC SCU types

2019-09-13 Thread Peter Maydell
From: Cédric Le Goater and use a class AspeedSCUClass to define each SoC characteristics. Signed-off-by: Cédric Le Goater Message-id: 20190904070506.1052-10-...@kaod.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- include/hw/misc/aspeed_scu.h | 15 +++

[Qemu-devel] [PULL 08/12] aspeed/smc: Calculate checksum on normal DMA

2019-09-13 Thread Peter Maydell
From: Christian Svensson This patch adds the missing checksum calculation on normal DMA transfer. According to the datasheet this is how the SMC should behave. Verified on AST1250 that the hardware matches the behaviour. Signed-off-by: Christian Svensson Reviewed-by: Joel Stanley

[Qemu-devel] [PULL 01/12] hw/gpio: Add basic Aspeed GPIO model for AST2400 and AST2500

2019-09-13 Thread Peter Maydell
From: Rashmica Gupta GPIO pins are arranged in groups of 8 pins labeled A,B,..,Y,Z,AA,AB,AC. (Note that the ast2400 controller only goes up to group AB). A set has four groups (except set AC which only has one) and is referred to by the groups it is composed of (eg ABCD,EFGH,...,YZAAAB). Each

[Qemu-devel] [PULL 00/12] target-arm queue

2019-09-13 Thread Peter Maydell
repository at: https://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20190913 for you to fetch changes up to 27a296fce9821e3608d537756cffa6e43a46df3b: qemu-ga: Convert invocation documentation to rST (2019-09-13 16:05:01 +0100

[Qemu-devel] [PULL 03/12] aspeed: Remove unused SoC definitions

2019-09-13 Thread Peter Maydell
From: Cédric Le Goater There are no QEMU Aspeed machines using the SoCs "ast2400-a0" or "ast2400". Signed-off-by: Cédric Le Goater Message-id: 20190904070506.1052-4-...@kaod.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/arm/aspeed_soc.c | 26 --

[Qemu-devel] [PULL 04/12] aspeed: Use consistent typenames

2019-09-13 Thread Peter Maydell
From: Cédric Le Goater Improve the naming of the different controller models to ease their generation when initializing the SoC. The rename of the SMC types is breaking migration compatibility. Signed-off-by: Cédric Le Goater Message-id: 20190904070506.1052-5-...@kaod.org Reviewed-by: Peter

Re: [Qemu-devel] [PATCH v8 01/13] vfio: KABI for migration interface

2019-09-13 Thread Alex Williamson
On Thu, 12 Sep 2019 23:00:03 + "Tian, Kevin" wrote: > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > Sent: Thursday, September 12, 2019 10:41 PM > > > > On Tue, 3 Sep 2019 06:57:27 + > > "Tian, Kevin" wrote: > > > > > > From: Alex Williamson

Re: [Qemu-devel] [PATCH v5 1/3] Fix qcow2+luks corruption introduced by commit 8ac0f15f335

2019-09-13 Thread Vladimir Sementsov-Ogievskiy
13.09.2019 18:28, Maxim Levitsky wrote: > This fixes subtle corruption introduced by luks threaded encryption > in commit 8ac0f15f335 > > Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1745922 > > The corruption happens when we do a write that > * writes to two or more unallocated

Re: [Qemu-devel] [PATCH v11 00/14] backup-top filter driver for backup

2019-09-13 Thread Vladimir Sementsov-Ogievskiy
10.09.2019 13:23, Vladimir Sementsov-Ogievskiy wrote: > Hi all! > > These series introduce backup-top driver. It's a filter-node, which > do copy-before-write operation. Mirror uses filter-node for handling > guest writes, let's move to filter-node (from write-notifiers) for > backup too. > >

Re: [Qemu-devel] [PATCH v2 15/16] docs/devel/qapi-code-gen: Improve QAPI schema language doc

2019-09-13 Thread Markus Armbruster
Eric Blake writes: > On 9/10/19 1:37 AM, Markus Armbruster wrote: >> We document the language by giving patterns of valid JSON objects. >> The patterns contain placeholders we don't define anywhere; their >> names have to speak for themselves. I guess they do, but I'd prefer a >> bit more

Re: [Qemu-devel] [PATCH v3 3/3] xen: perform XenDevice clean-up in XenBus watch handler

2019-09-13 Thread Anthony PERARD
On Fri, Sep 13, 2019 at 09:21:58AM +0100, Paul Durrant wrote: > Cleaning up offline XenDevice objects directly in > xen_device_backend_changed() is dangerous as xen_device_unrealize() will > modify the watch list that is being walked. Even the QLIST_FOREACH_SAFE() > used in notifier_list_notify()

[Qemu-devel] [PATCH v5 2/3] block/qcow2: refactor threaded encryption code

2019-09-13 Thread Maxim Levitsky
Change do_perform_cow_encrypt and its callee qcow2_co_encrypt to just receive full host and guest offsets and in pariticular remove the offset_in_cluster parameter of do_perform_cow_encrypt, since it is misleading, because that offset can be larger than cluster size currently. Also document the

[Qemu-devel] [PATCH v5 1/3] Fix qcow2+luks corruption introduced by commit 8ac0f15f335

2019-09-13 Thread Maxim Levitsky
This fixes subtle corruption introduced by luks threaded encryption in commit 8ac0f15f335 Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1745922 The corruption happens when we do a write that * writes to two or more unallocated clusters at once * doesn't fully cover the first sector

[Qemu-devel] [PATCH v5 0/3] Fix qcow2+luks corruption introduced by commit 8ac0f15f335

2019-09-13 Thread Maxim Levitsky
Commit 8ac0f15f335 accidently broke the COW of non changed areas of newly allocated clusters, when the write spans multiple clusters, and needs COW both prior and after the write. This results in 'after' COW area being encrypted with wrong sector address, which render it corrupted. Bugzilla:

[Qemu-devel] [PATCH v5 3/3] qemu-iotests: Add test for bz #1745922

2019-09-13 Thread Maxim Levitsky
Signed-off-by: Maxim Levitsky --- tests/qemu-iotests/263 | 91 ++ tests/qemu-iotests/263.out | 40 + tests/qemu-iotests/group | 2 + 3 files changed, 133 insertions(+) create mode 100755 tests/qemu-iotests/263 create mode 100644

[Qemu-devel] [PATCH v2 1/2] blockdev: release the AioContext at drive_backup_prepare

2019-09-13 Thread Sergio Lopez
do_drive_backup() already acquires the AioContext, so release it before the call. Signed-off-by: Sergio Lopez --- blockdev.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/blockdev.c b/blockdev.c index fbef6845c8..3927fdab80 100644 --- a/blockdev.c +++ b/blockdev.c @@

[Qemu-devel] [PATCH v2 0/2] blockdev: avoid acquiring AioContext lock twice at do_drive_backup()

2019-09-13 Thread Sergio Lopez
do_drive_backup() acquires the AioContext lock of the corresponding BlockDriverState. This is not a problem when it's called from qmp_drive_backup(), but drive_backup_prepare() also acquires the lock before calling it. Additionally, Max Reitz pointed out that bdrv_try_set_aio_context() is called

[Qemu-devel] [PATCH v2 2/2] blockdev: honor bdrv_try_set_aio_context() context requirements

2019-09-13 Thread Sergio Lopez
bdrv_try_set_aio_context() requires that the old context is held, and the new context is not held. Fix all the ocurrences where it's not done this way. Suggested-by: Max Reitz Signed-off-by: Sergio Lopez --- blockdev.c | 121 + 1 file

Re: [Qemu-devel] [PATCH v8 18/32] riscv: sifive_u: Set the minimum number of cpus to 2

2019-09-13 Thread Bin Meng
Hi Palmer, On Fri, Sep 13, 2019 at 10:33 PM Palmer Dabbelt wrote: > > On Fri, 06 Sep 2019 09:20:05 PDT (-0700), bmeng...@gmail.com wrote: > > It is not useful if we only have one management CPU. > > > > Signed-off-by: Bin Meng > > Reviewed-by: Alistair Francis > > > > --- > > > > Changes in

[Qemu-devel] [PATCH v6 5/6] target/arm: remove run-time semihosting checks for linux-user

2019-09-13 Thread Alex Bennée
Now we do all our checking at translate time we can make cpu_loop a little bit simpler. We also introduce a simple linux-user semihosting test case to defend the functionality. The out-of-tree softmmu based semihosting tests are still more comprehensive. Signed-off-by: Alex Bennée ---

[Qemu-devel] [PATCH v6 4/6] target/arm: remove run time semihosting checks

2019-09-13 Thread Alex Bennée
Now we do all our checking and use a common EXCP_SEMIHOST for semihosting operations we can make helper code a lot simpler. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- v2 - fix re-base conflicts - hoist EXCP_SEMIHOST check - comment cleanups v5 - move CONFIG_TCG ifdefs

[Qemu-devel] [PATCH v6 2/6] target/arm: handle M-profile semihosting at translate time

2019-09-13 Thread Alex Bennée
We do this for other semihosting calls so we might as well do it for M-profile as well. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- v2 - update for change to gen_exception_internal_insn API v3 - update for decode tree v4 - use !IS_USER v5 - return #ifndef CONFIG_USER

  1   2   3   >