Re: [PATCH v16 QEMU 08/16] vfio: Register SaveVMHandlers for VFIO device

2020-05-05 Thread Yan Zhao
On Tue, May 05, 2020 at 12:37:26PM +0800, Alex Williamson wrote: > On Tue, 5 May 2020 04:49:10 +0530 > Kirti Wankhede wrote: > > > On 3/26/2020 2:32 AM, Alex Williamson wrote: > > > On Wed, 25 Mar 2020 02:39:06 +0530 > > > Kirti Wankhede wrote: > > > > > >> Define flags to be used as delimete

Re: [PATCH v3 17/17] block: use int64_t instead of int in driver discard handlers

2020-05-05 Thread Vladimir Sementsov-Ogievskiy
30.04.2020 14:10, Vladimir Sementsov-Ogievskiy wrote: We are generally moving to int64_t for both offset and bytes parameters on all io paths. Main motivation is realization of 64-bit write_zeroes operation for fast zeroing large disk chunks, up to the whole disk. We chose signed type, to be co

Re: [PATCH v3 00/17] 64bit block-layer

2020-05-05 Thread Vladimir Sementsov-Ogievskiy
30.04.2020 23:51, no-re...@patchew.org wrote: Patchew URL: https://patchew.org/QEMU/20200430111033.29980-1-vsement...@virtuozzo.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 pro

Re: Infinite loop in bus_unparent(), qdev bug or qdev misuse?

2020-05-05 Thread Markus Armbruster
Paolo Bonzini writes: > On 05/05/20 18:03, Markus Armbruster wrote: >>> That's a good one, and especially a safe one, since it matches >>> qdev_device_add. It has the disadvantage of having to touch all >>> qdev_create() calls. >> >> Also, it moves onboard devices from /machine/unattached/ to >

Re: [PATCH v2 1/3] acpi: Move build_tpm2() in the generic part

2020-05-05 Thread Andrew Jones
On Tue, May 05, 2020 at 04:44:17PM +0200, Eric Auger wrote: > We plan to build the tpm2 table on ARM too. In order to reuse the > generation code, let's move build_tpm2() to aml-build.c. > > No change in the implementation. > > Signed-off-by: Eric Auger > --- > include/hw/acpi/aml-build.h | 2

Re: [PATCH 5/7] audio: Let HWVoice write() handlers take a const buffer

2020-05-05 Thread Volker Rümelin
> diff --git a/audio/dsoundaudio.c b/audio/dsoundaudio.c > index 4cdf19ab67..bba6bafda4 100644 > --- a/audio/dsoundaudio.c > +++ b/audio/dsoundaudio.c > @@ -454,7 +454,7 @@ static void *dsound_get_buffer_out(HWVoiceOut *hw, size_t > *size) > return ret; > } > > -static size_t dsound_put_

Re: [PATCH v16 QEMU 04/16] vfio: Add save and load functions for VFIO PCI devices

2020-05-05 Thread Yan Zhao
On Tue, May 05, 2020 at 12:37:11PM +0800, Alex Williamson wrote: > On Tue, 5 May 2020 04:48:37 +0530 > Kirti Wankhede wrote: > > > On 3/26/2020 1:26 AM, Alex Williamson wrote: > > > On Wed, 25 Mar 2020 02:39:02 +0530 > > > Kirti Wankhede wrote: > > > > > >> These functions save and restore PC

Re: [PATCH v7] audio/jack: add JACK client audiodev

2020-05-05 Thread Geoffrey McRae
On 2020-05-06 16:06, Markus Armbruster wrote: You neglected to cc: the audio maintainer. Doing that for you now. You can use scripts/get_maintainer.pl to find maintainers. Thanks, I was unaware. Find my QAPI schema review inline. Ditto Geoffrey McRae writes: This commit adds a

Re: [PATCH 0/8] iotests skipping

2020-05-05 Thread Vladimir Sementsov-Ogievskiy
04.05.2020 19:32, Kevin Wolf wrote: Am 30.04.2020 um 14:47 hat Vladimir Sementsov-Ogievskiy geschrieben: Hi all! This series adds a bit more support for iotests skipping due to format whitelisting. Not pretend to be something complete. It just lay in its folder I don't know how much time, I for

Re: [PATCH v2 2/6] block/nbd-client: drop max_block restriction from discard

2020-05-05 Thread Vladimir Sementsov-Ogievskiy
04.05.2020 22:59, Eric Blake wrote: On 4/21/20 4:56 PM, Eric Blake wrote: On 4/1/20 10:01 AM, Vladimir Sementsov-Ogievskiy wrote: NBD spec is updated, so that max_block doesn't relate to NBD_CMD_TRIM. So, drop the restriction. Signed-off-by: Vladimir Sementsov-Ogievskiy ---   block/nbd.c | 2

Re: [PATCH v2 3/4] backup: Make sure that source and target size match

2020-05-05 Thread Vladimir Sementsov-Ogievskiy
05.05.2020 13:03, Kevin Wolf wrote: Am 30.04.2020 um 20:21 hat Vladimir Sementsov-Ogievskiy geschrieben: 30.04.2020 17:27, Kevin Wolf wrote: Since the introduction of a backup filter node in commit 00e30f05d, the backup block job crashes when the target image is smaller than the source image be

Re: [PATCH v7] audio/jack: add JACK client audiodev

2020-05-05 Thread Markus Armbruster
You neglected to cc: the audio maintainer. Doing that for you now. You can use scripts/get_maintainer.pl to find maintainers. Find my QAPI schema review inline. Geoffrey McRae writes: > This commit adds a new audiodev backend to allow QEMU to use JACK as > both an audio sink and source. > > S

Re: [PATCH v4 0/5] block-copy: use aio-task-pool

2020-05-05 Thread Vladimir Sementsov-Ogievskiy
05.05.2020 14:06, Max Reitz wrote: On 29.04.20 15:08, Vladimir Sementsov-Ogievskiy wrote: Hi all! v4 01: add Max's r-b 04: move variable definition to the top of the block, add Max's r-b 05: - change error-codes in block_copy_task_run(), document them and be more accurate about error cod

Re: backing chain & block status & filters

2020-05-05 Thread Vladimir Sementsov-Ogievskiy
01.05.2020 6:04, Andrey Shinkevich wrote: Sounds good to me generally. Also, we need to identify the filter by its node name when the file names of a node and of the filter above it are the same. And what about automatically generated node name for the filter? We will want to pass it to the str

Re: [PATCH v7 0/7] reference implementation of RSS and hash report

2020-05-05 Thread Jason Wang
On 2020/5/1 下午12:01, Yuri Benditovich wrote: Michael/Jason, As Linux headers was updated in qemu and now include RSC/RSS/Hash definitions, please let me know what you prefer: 1. You apply this series as is, then I submit clean-up series that will remove all the redundant defines from virtio-

[Bug 1866870] Re: KVM Guest pauses after upgrade to Ubuntu 20.04

2020-05-05 Thread Christian Ehrhardt 
Hi Andreas, so the only upgrade you did to trigger this for you was to bump the kernel from 5.4.0-28.33 to 5.4.0-29.34 - nothing else? I have not (yet?) heard other similar reports, but it might be just too early? At least on my system for now things still work with the new kernel like before. I

RE: [Bug 1877015] [NEW] virtio only support packed ring size power of 2 between 256 and 1024

2020-05-05 Thread xuan
Thank you for your reply. I think the code should add the handling for packed ring size to follow the spec. -Original Message- From: boun...@canonical.com On Behalf Of Yonggang Luo Sent: Wednesday, May 6, 2020 12:32 PM To: Ding, Xuan Subject: Re: [Bug 1877015] [NEW] virtio only support

[Bug 1877015] Re: virtio only support packed ring size power of 2

2020-05-05 Thread xuan
Thank you for your reply. I think the code should add the handling for packed ring size to follow the spec. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1877015 Title: virtio only support packed r

Re: [Bug 1877015] [NEW] virtio only support packed ring size power of 2 between 256 and 1024

2020-05-05 Thread Yonggang Luo
Maybe the virtio need to be revised? On Wed, May 6, 2020 at 10:51 AM xuan <1877...@bugs.launchpad.net> wrote: > Public bug reported: > > Issue discription: > When QEMU starts with "-device > virtio-net-pci,netdev=netdev0,mac=52:54:00:00:00:01,disable-modern=false,mrg_rxbuf=on,rx_queue_size=1025,t

[Bug 1860056] Re: mips binaries segfault

2020-05-05 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/1860056 Title: mips binari

[PATCH 0/2] migration/multifd: fix two memleaks

2020-05-05 Thread Pan Nengyuan
Fix two memleaks in multifd_send_thread/multifd_new_send_channel_async when error happen. Pan Nengyuan (2): migration/multifd: fix memleaks in multifd_new_send_channel_async migration/multifd: Do error_free after migrate_set_error to avoid memleaks migration/multifd.c | 5 + 1 file

[PATCH 2/2] migration/multifd: Do error_free after migrate_set_error to avoid memleaks

2020-05-05 Thread Pan Nengyuan
When error happen in multifd_send_thread, it use error_copy to set migrate error in multifd_send_terminate_threads(). We should call error_free after it. Similarly, fix another two places in multifd_recv_thread/multifd_save_cleanup. The leak stack: Direct leak of 48 byte(s) in 1 object(s) alloca

[PATCH 1/2] migration/multifd: fix memleaks in multifd_new_send_channel_async

2020-05-05 Thread Pan Nengyuan
When error happen in multifd_new_send_channel_async, 'sioc' will not be used to create the multifd_send_thread. Let's free it to avoid a memleak. And also do error_free after migrate_set_error() to avoid another leak in the same place. The leak stack: Direct leak of 2880 byte(s) in 8 object(s) all

[Bug 1877015] Re: virtio only support packed ring size power of 2

2020-05-05 Thread xuan
** Summary changed: - virtio only support packed ring size power of 2 between 256 and 1024 + virtio only support packed ring size power of 2 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1877015 Tit

[Bug 1877015] [NEW] virtio only support packed ring size power of 2 between 256 and 1024

2020-05-05 Thread xuan
Public bug reported: Issue discription: When QEMU starts with "-device virtio-net-pci,netdev=netdev0,mac=52:54:00:00:00:01,disable-modern=false,mrg_rxbuf=on,rx_queue_size=1025,tx_queue_size=1025,mq=on,vectors=15,packed=on" It raises error: Invalid rx_queue_size (= 1025), must be a power of 2 bet

Re: [PATCH v2 1/1] target-ppc: fix rlwimi, rlwinm, rlwnm for Clang-9

2020-05-05 Thread David Gibson
On Tue, May 05, 2020 at 02:38:17PM -0400, Daniele Buono wrote: > Starting with Clang v9, -Wtype-limits is implemented and triggers a > few "result of comparison is always true" errors when compiling PPC32 > targets. > > The comparisons seem to be necessary only on PPC64, since the > else branch in

Re: [PATCH for-5.1 V3 0/7] mips: Add Loongson-3 machine support (with KVM)

2020-05-05 Thread Huacai Chen
Hi, Aleksandar, On Tue, May 5, 2020 at 6:12 PM Aleksandar Markovic wrote: > > > > уторак, 05. мај 2020., chen huacai је написао/ла: >> >> Hi, Aleksandar, >> >> On Sun, May 3, 2020 at 6:50 PM Aleksandar Markovic >> wrote: >> > >> > нед, 3. мај 2020. у 12:21 Huacai Chen је >> > написао/ла: >> >

Re: [PATCH] riscv: Change the default behavior if no -bios option is specified

2020-05-05 Thread Bin Meng
Hi Alistair, On Wed, May 6, 2020 at 6:37 AM Alistair Francis wrote: > > On Tue, May 5, 2020 at 1:34 PM Alistair Francis wrote: > > > > On Fri, May 1, 2020 at 5:21 AM Bin Meng wrote: > > > > > > From: Bin Meng > > > > > > Per QEMU deprecated doc, QEMU 4.1 introduced support for the -bios > > >

Re: [PATCH v2 00/18] qom: Spring cleaning

2020-05-05 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200505152926.18877-1-arm...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20200505152926.18877-1-arm...@redhat.com Subject: [PATCH v2 00/18] qom: Spring cleaning Type: series ===

[PATCH v1 2/2] target/riscv: Drop support for ISA spec version 1.09.1

2020-05-05 Thread Alistair Francis
The RISC-V ISA spec version 1.09.1 has been deprecated in QEMU since 4.1. It's not commonly used so let's remove support for it. Signed-off-by: Alistair Francis --- target/riscv/cpu.c| 30 --- target/riscv/cpu.h| 8 -- target/riscv/csr

[PATCH v1 1/2] hw/riscv: spike: Remove deprecated ISA specific machines

2020-05-05 Thread Alistair Francis
The ISA specific Spike machines have been deprecated in QEMU since 4.1, let's finally remove them. Signed-off-by: Alistair Francis --- hw/riscv/spike.c | 217 --- include/hw/riscv/spike.h | 6 +- 2 files changed, 2 insertions(+), 221 deletions(-) d

[PATCH v1 0/2] RTISC-V: Remove deprecated ISA, CPUs and machines

2020-05-05 Thread Alistair Francis
Alistair Francis (2): hw/riscv: spike: Remove deprecated ISA specific machines target/riscv: Drop support for ISA spec version 1.09.1 hw/riscv/spike.c | 217 -- include/hw/riscv/spike.h | 6 +- target/riscv/cpu.c

Re: [PATCH v2 00/18] qom: Spring cleaning

2020-05-05 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200505152926.18877-1-arm...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20200505152926.18877-1-arm...@redhat.com Subject: [PATCH v2 00/18] qom: Spring cleaning Type: series ===

[Bug 1805256] Re: qemu-img hangs on rcu_call_ready_event logic in Aarch64 when converting images

2020-05-05 Thread dann frazier
fyi, I backported that fix also to focal/groovy and eoan, and with those builds. On my test systems the hang reliable occurs within 20 iterations. After the fix, they have survived > 500 iterations thus far. I'll leave running overnight just to be sure. -- You received this bug notification becau

Re: [PATCH v2 00/18] qom: Spring cleaning

2020-05-05 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200505152926.18877-1-arm...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20200505152926.18877-1-arm...@redhat.com Subject: [PATCH v2 00/18] qom: Spring cleaning Type: series ===

[PULL 0/1] Register API Queue

2020-05-05 Thread Alistair Francis
g-to-apply-20200505 for you to fetch changes up to f08085f49fb66a5cdc86653bd896d0e728bcee50: hw/core/register: Add register_init_block8 helper. (2020-05-05 13:37:51 -0700) Pull request for RegisterAPI This is a single patch to add

[PULL 1/1] hw/core/register: Add register_init_block8 helper.

2020-05-05 Thread Alistair Francis
From: Joaquin de Andres There was no support for 8 bits block registers. Changed register_init_block32 to be generic and static, adding register size in bits as parameter. Created one helper for each size. Signed-off-by: Joaquin de Andres Message-Id: <20200402162839.76636-1...@xcancerberox.com.

Re: [PATCH] riscv: Change the default behavior if no -bios option is specified

2020-05-05 Thread Alistair Francis
On Tue, May 5, 2020 at 1:34 PM Alistair Francis wrote: > > On Fri, May 1, 2020 at 5:21 AM Bin Meng wrote: > > > > From: Bin Meng > > > > Per QEMU deprecated doc, QEMU 4.1 introduced support for the -bios > > option in QEMU for RISC-V for the virt machine and sifive_u machine. > > The default beh

[Bug 1856335] Re: Cache Layout wrong on many Zen Arch CPUs

2020-05-05 Thread Babu Moger
Hi Seiger, I am not an expert on libvirt. I mostly use qemu command line for my test. I was able to achieve the 3960X configuration with the following command line. # qemu-system-x86_64 -name rhel7 -m 16384 -smp 24,cores=12,threads=2,sockets=1 -hda vdisk.qcow2 -enable-kvm -net nic -net bridge,b

Re: [PATCH v5 19/31] qcow2: Add subcluster support to calculate_l2_meta()

2020-05-05 Thread Eric Blake
On 5/5/20 12:38 PM, Alberto Garcia wrote: If an image has subclusters then there are more copy-on-write scenarios that we need to consider. Let's say we have a write request from the middle of subcluster #3 until the end of the cluster: 1) If we are writing to a newly allocated cluster then we n

linux-user - time64 question

2020-05-05 Thread Sid Manning
I’m looking at a testcase failure when my target uses 64bit time in msg.h (struct msqid_ds). I’ve been able to get around this but changing target_msqid_ds like so: @@ -3900,18 +3901,9 @@ static inline abi_long do_semop(int semid, abi_long ptr, unsigned nsops) struct target_msqid_ds { st

Re: [PATCH v2 00/18] qom: Spring cleaning

2020-05-05 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200505152926.18877-1-arm...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20200505152926.18877-1-arm...@redhat.com Subject: [PATCH v2 00/18] qom: Spring cleaning Type: series ===

Re: [PATCH v2 6/6] iotests: Add test 291 to for qemu-img bitmap coverage

2020-05-05 Thread Eric Blake
On 5/4/20 8:05 AM, Max Reitz wrote: On 21.04.20 23:20, Eric Blake wrote: Add a new test covering the 'qemu-img bitmap' subcommand, as well as 'qemu-img convert --bitmaps', both added in recent patches. Signed-off-by: Eric Blake +echo +echo "=== Bitmap preservation not possible to non-qcow2

Re: [PATCH v5 15/31] qcow2: Add qcow2_cluster_is_allocated()

2020-05-05 Thread Eric Blake
On 5/5/20 12:38 PM, Alberto Garcia wrote: This helper function tells us if a cluster is allocated (that is, there is an associated host offset for it). Signed-off-by: Alberto Garcia --- block/qcow2.h | 6 ++ 1 file changed, 6 insertions(+) Reviewed-by: Eric Blake diff --git a/block

Re: [PATCH v5 14/31] qcow2: Add QCow2SubclusterType and qcow2_get_subcluster_type()

2020-05-05 Thread Eric Blake
On 5/5/20 12:38 PM, Alberto Garcia wrote: This patch adds QCow2SubclusterType, which is the subcluster-level version of QCow2ClusterType. All QCOW2_SUBCLUSTER_* values have the the same meaning as their QCOW2_CLUSTER_* equivalents (when they exist). See below for details and caveats. In images w

Re: [PATCH v4 00/14] LUKS: encryption slot management using amend interface

2020-05-05 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200505200819.5662-1-mlevi...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20200505200819.5662-1-mlevi...@redhat.com Subject: [PATCH v4 00/14] LUKS: encryption slot management usi

Re: [PATCH v5 07/18] nvme: add max_ioqpairs device parameter

2020-05-05 Thread Klaus Jensen
On May 5 07:48, Klaus Jensen wrote: > From: Klaus Jensen > > The num_queues device paramater has a slightly confusing meaning because > it accounts for the admin queue pair which is not really optional. > Secondly, it is really a maximum value of queues allowed. > > Add a new max_ioqpairs param

Re: [PATCH v2] target/riscv: fix check of guest pa top bits

2020-05-05 Thread Alistair Francis
On Fri, May 1, 2020 at 11:51 AM Jose Martins wrote: > > The spec states that on sv39x4 guest physical "address bits 63:41 must > all be zeros, or else a guest-page-fault exception occurs.". However, > the check performed for these top bits of the virtual address on the > second stage is the same

Re: [PATCH] riscv: Change the default behavior if no -bios option is specified

2020-05-05 Thread Alistair Francis
On Fri, May 1, 2020 at 5:21 AM Bin Meng wrote: > > From: Bin Meng > > Per QEMU deprecated doc, QEMU 4.1 introduced support for the -bios > option in QEMU for RISC-V for the virt machine and sifive_u machine. > The default behavior has been that QEMU does not automatically load > any firmware if n

[PATCH 1/2] hw/block/nvme: fix pin-based interrupt behavior

2020-05-05 Thread Klaus Jensen
From: Klaus Jensen First, since the device only supports MSI-X or pin-based interrupt, if MSI-X is not enabled, it should not accept interrupt vectors different from 0 when creating completion queues. Secondly, the irq_status NvmeCtrl member is meant to be compared to the INTMS register, so it s

[PATCH 0/2] hw/block/nvme: fixes for interrupt behavior

2020-05-05 Thread Klaus Jensen
From: Klaus Jensen Klaus Jensen (2): hw/block/nvme: fix pin-based interrupt behavior hw/block/nvme: allow use of any valid msix vector hw/block/nvme.c | 14 +- hw/block/nvme.h | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) -- 2.26.2

[PATCH 2/2] hw/block/nvme: allow use of any valid msix vector

2020-05-05 Thread Klaus Jensen
From: Klaus Jensen If the device uses MSI-X, any of the 2048 MSI-X interrupt vectors are valid. If the device is not using MSI-X, vector will and can only be zero at this point. Signed-off-by: Klaus Jensen --- hw/block/nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

Re: [PATCH v2 00/18] qom: Spring cleaning

2020-05-05 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200505152926.18877-1-arm...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20200505152926.18877-1-arm...@redhat.com Subject: [PATCH v2 00/18] qom: Spring cleaning Type: series ===

[PATCH v4 12/14] block/crypto: implement blockdev-amend

2020-05-05 Thread Maxim Levitsky
Signed-off-by: Maxim Levitsky Reviewed-by: Daniel P. Berrangé --- block/crypto.c | 72 qapi/block-core.json | 14 - 2 files changed, 66 insertions(+), 20 deletions(-) diff --git a/block/crypto.c b/block/crypto.c index b71e57f777..d7725d

[PATCH v4 11/14] block/core: add generic infrastructure for x-blockdev-amend qmp command

2020-05-05 Thread Maxim Levitsky
blockdev-amend will be used similiar to blockdev-create to allow on the fly changes of the structure of the format based block devices. Current plan is to first support encryption keyslot management for luks based formats (raw and embedded in qcow2) Signed-off-by: Maxim Levitsky Reviewed-by: Dan

[PATCH v4 13/14] block/qcow2: implement blockdev-amend

2020-05-05 Thread Maxim Levitsky
Currently the implementation only supports amending the encryption options, unlike the qemu-img version Signed-off-by: Maxim Levitsky Reviewed-by: Daniel P. Berrangé --- block/qcow2.c| 39 +++ qapi/block-core.json | 16 +++- 2 files change

[PATCH v4 08/14] block/qcow2: extend qemu-img amend interface with crypto options

2020-05-05 Thread Maxim Levitsky
Now that we have all the infrastructure in place, wire it in the qcow2 driver and expose this to the user. Signed-off-by: Maxim Levitsky Reviewed-by: Daniel P. Berrangé --- block/qcow2.c | 72 +- tests/qemu-iotests/082.out | 45 ++

[PATCH v4 09/14] iotests: filter few more luks specific create options

2020-05-05 Thread Maxim Levitsky
This allows more tests to be able to have same output on both qcow2 luks encrypted images and raw luks images Signed-off-by: Maxim Levitsky Reviewed-by: Daniel P. Berrangé --- tests/qemu-iotests/087.out | 6 ++--- tests/qemu-iotests/134.out | 2 +- tests/qemu-iotests/158.out

[PATCH v4 14/14] iotests: add tests for blockdev-amend

2020-05-05 Thread Maxim Levitsky
This commit adds two tests that cover the new blockdev-amend functionality of luks and qcow2 driver Signed-off-by: Maxim Levitsky Reviewed-by: Daniel P. Berrangé --- tests/qemu-iotests/302 | 278 + tests/qemu-iotests/302.out | 40 ++ tests/qemu-iotes

[PATCH v4 06/14] block/crypto: rename two functions

2020-05-05 Thread Maxim Levitsky
rename the write_func to create_write_func, and init_func to create_init_func. This is preparation for other write_func that will be used to update the encryption keys. No functional changes Signed-off-by: Maxim Levitsky Reviewed-by: Daniel P. Berrangé --- block/crypto.c | 25

[PATCH v4 10/14] iotests: qemu-img tests for luks key management

2020-05-05 Thread Maxim Levitsky
This commit adds two tests, which test the new amend interface of both luks raw images and qcow2 luks encrypted images. Signed-off-by: Maxim Levitsky Reviewed-by: Daniel P. Berrangé --- tests/qemu-iotests/300 | 207 + tests/qemu-iotests/300.out | 99

[PATCH v4 07/14] block/crypto: implement the encryption key management

2020-05-05 Thread Maxim Levitsky
This implements the encryption key management using the generic code in qcrypto layer and exposes it to the user via qemu-img This code adds another 'write_func' because the initialization write_func works directly on the underlying file, and amend works on instance of luks device. This commit al

[PATCH v4 04/14] block/amend: separate amend and create options for qemu-img

2020-05-05 Thread Maxim Levitsky
Some options are only useful for creation (or hard to be amended, like cluster size for qcow2), while some other options are only useful for amend, like upcoming keyslot management options for luks Since currently only qcow2 supports amend, move all its options to a common macro and then include i

[PATCH v4 05/14] block/amend: refactor qcow2 amend options

2020-05-05 Thread Maxim Levitsky
Some qcow2 create options can't be used for amend. Remove them from the qcow2 create options and add generic logic to detect such options in qemu-img Signed-off-by: Maxim Levitsky Reviewed-by: Daniel P. Berrangé --- block/qcow2.c | 108 ++--- qemu-img.c

[PATCH v4 01/14] qcrypto/core: add generic infrastructure for crypto options amendment

2020-05-05 Thread Maxim Levitsky
This will be used first to implement luks keyslot management. block_crypto_amend_opts_init will be used to convert qemu-img cmdline to QCryptoBlockAmendOptions Signed-off-by: Maxim Levitsky Reviewed-by: Daniel P. Berrangé --- block/crypto.c | 17 + block/crypto.h

[PATCH v4 02/14] qcrypto/luks: implement encryption key management

2020-05-05 Thread Maxim Levitsky
Next few patches will expose that functionality to the user. Signed-off-by: Maxim Levitsky --- crypto/block-luks.c | 395 +++- qapi/crypto.json| 61 ++- 2 files changed, 452 insertions(+), 4 deletions(-) diff --git a/crypto/block-luks.c b/crypto/

Re: [PATCH v1 8/9] hw/dma/xilinx_axidma: s2mm: Support stream fragments

2020-05-05 Thread Alistair Francis
On Thu, Apr 30, 2020 at 9:31 AM Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > Add support for stream fragments. > > Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis Alistair > --- > hw/dma/xilinx_axidma.c | 14 +++--- > 1 file changed, 7 insertions(+), 7 d

[PATCH v4 03/14] block/amend: add 'force' option

2020-05-05 Thread Maxim Levitsky
'force' option will be used for some unsafe amend operations. This includes things like erasing last keyslot in luks based formats (which destroys the data, unless the master key is backed up by external means), but that _might_ be desired result. Signed-off-by: Maxim Levitsky Reviewed-by: Danie

[PATCH v4 00/14] LUKS: encryption slot management using amend interface

2020-05-05 Thread Maxim Levitsky
Hi! Here is the updated series of my patches, incorporating all the feedback I received. This implements the API interface that we agreed upon except that I merged the LUKSKeyslotActive/LUKSKeyslotInactive union into a struct because otherwise I need nested unions which are not supported currentl

Re: [PATCH v1 7/9] hw/dma/xilinx_axidma: mm2s: Stream descriptor by descriptor

2020-05-05 Thread Alistair Francis
On Thu, Apr 30, 2020 at 9:31 AM Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > Stream descriptor by descriptor from memory instead of > buffering entire packets before pushing. This enables > non-packet streaming clients to work and also lifts the > limitation that our internal DMA bu

Re: [PATCH v1 9/9] MAINTAINERS: Add myself as streams maintainer

2020-05-05 Thread Alistair Francis
On Thu, Apr 30, 2020 at 9:34 AM Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > Since we're missing a maintainer, add myself. > > Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis Alistair > --- > MAINTAINERS | 6 ++ > 1 file changed, 6 insertions(+) > > diff --g

Re: [PATCH v5 13/31] qcow2: Update get/set_l2_entry() and add get/set_l2_bitmap()

2020-05-05 Thread Eric Blake
On 5/5/20 12:38 PM, Alberto Garcia wrote: Extended L2 entries are 128-bit wide: 64 bits for the entry itself and 64 bits for the subcluster allocation bitmap. In order to support them correctly get/set_l2_entry() need to be updated so they take the entry width into account in order to calculate

Re: [PATCH 1/1] target/riscv: fix VS interrupts forwarding to HS

2020-05-05 Thread Alistair Francis
On Fri, May 1, 2020 at 11:57 AM Jose Martins wrote: > > Reached out to Andrew Waterman. This was his response: > > "I think the encoding of the privileged modes is a red herring. HS is > inherently more privileged than VS, since it controls memory > protection and interrupt delegation for VS. > C

Re: [PATCH v5 11/31] qcow2: Add offset_into_subcluster() and size_to_subclusters()

2020-05-05 Thread Eric Blake
On 5/5/20 12:38 PM, Alberto Garcia wrote: Like offset_into_cluster() and size_to_clusters(), but for subclusters. Signed-off-by: Alberto Garcia --- block/qcow2.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/block/qcow2.h b/block/qcow2.h index e68febb15b..8b1ed1cbcf 100644

Re: [PATCH v5 07/31] qcow2: Document the Extended L2 Entries feature

2020-05-05 Thread Eric Blake
On 5/5/20 12:38 PM, Alberto Garcia wrote: Subcluster allocation in qcow2 is implemented by extending the existing L2 table entries and adding additional information to indicate the allocation status of each subcluster. This patch documents the changes to the qcow2 format and how they affect the

Re: [PATCH v5 05/31] qcow2: Process QCOW2_CLUSTER_ZERO_ALLOC clusters in handle_copied()

2020-05-05 Thread Eric Blake
On 5/5/20 12:38 PM, Alberto Garcia wrote: When writing to a qcow2 file there are two functions that take a virtual offset and return a host offset, possibly allocating new clusters if necessary: - handle_copied() looks for normal data clusters that are already allocated and have a refe

[Bug 1805256] Re: qemu-img hangs on rcu_call_ready_event logic in Aarch64 when converting images

2020-05-05 Thread Rafael David Tinoco
Hello Ike, Please, let me know if you want me to go after the needed SRUs for this fix or if you will. I'll wait for the final feedback from tests with your PPA. Cheers! -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.

[PATCH v2 0/1] target-ppc: fix rlwimi, rlwinm, rlwnm for Clang-9

2020-05-05 Thread Daniele Buono
This patch fixes a compilation error with Clang v9 and higher in target/ppc/translate.c, on a comparison that is always true in PPC32 because of type sizes. More information about the issue are in the first version of the patch. v2, changed to avoid the nested ifdef/conditional solution of v1, an

[PATCH v2 1/1] target-ppc: fix rlwimi, rlwinm, rlwnm for Clang-9

2020-05-05 Thread Daniele Buono
Starting with Clang v9, -Wtype-limits is implemented and triggers a few "result of comparison is always true" errors when compiling PPC32 targets. The comparisons seem to be necessary only on PPC64, since the else branch in PPC32 only has a "g_assert_not_reached();" in all cases. This patch restr

Re: [PATCH v2 00/18] qom: Spring cleaning

2020-05-05 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200505152926.18877-1-arm...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20200505152926.18877-1-arm...@redhat.com Subject: [PATCH v2 00/18] qom: Spring cleaning Type: series ===

Re: [PATCH v2 0/4] softfloat: fix floatx80 emulation bugs

2020-05-05 Thread Richard Henderson
On 5/4/20 4:36 PM, Joseph Myers wrote: > Joseph Myers (4): > softfloat: silence sNaN for conversions to/from floatx80 > softfloat: fix floatx80 pseudo-denormal addition / subtraction > softfloat: fix floatx80 pseudo-denormal comparisons > softfloat: fix floatx80 pseudo-denormal round to int

Re: Postcopy with different page sizes on source and destination

2020-05-05 Thread Dr. David Alan Gilbert
* Florian Schmidt (flo...@nutanix.com) wrote: > Hi, Hi Florian, > with precopy live migration, change in page size on source and > destination is possible: using hugetlbfs memory backing for the VM on > the source and anonymous memory on the destination, and vice versa. For > postcopy migratio

Re: [PATCH v6] audio/jack: add JACK client audiodev

2020-05-05 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200505151055.5ead73a0...@moya.office.hostfission.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20200505151055.5ead73a0...@moya.office.hostfission.com Subject: [PATCH v6] audio/jack: add

[PATCH v7] audio/jack: add JACK client audiodev

2020-05-05 Thread Geoffrey McRae
This commit adds a new audiodev backend to allow QEMU to use JACK as both an audio sink and source. Signed-off-by: Geoffrey McRae --- audio/Makefile.objs| 5 + audio/audio.c | 1 + audio/audio_template.h | 2 + audio/jackaudio.c | 677 +

[PATCH v5 16/31] qcow2: Add cluster type parameter to qcow2_get_host_offset()

2020-05-05 Thread Alberto Garcia
This function returns an integer that can be either an error code or a cluster type (a value from the QCow2ClusterType enum). We are going to start using subcluster types instead of cluster types in some functions so it's better to use the exact data types instead of integers for clarity and in or

[PATCH v5 25/31] qcow2: Clear the L2 bitmap when allocating a compressed cluster

2020-05-05 Thread Alberto Garcia
Compressed clusters always have the bitmap part of the extended L2 entry set to 0. Signed-off-by: Alberto Garcia Reviewed-by: Max Reitz --- block/qcow2-cluster.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index 4544a40aa0..0a295076a3 100

[PATCH v5 23/31] qcow2: Add subcluster support to check_refcounts_l2()

2020-05-05 Thread Alberto Garcia
Setting the QCOW_OFLAG_ZERO bit of the L2 entry is forbidden if an image has subclusters. Instead, the individual 'all zeroes' bits must be used. Signed-off-by: Alberto Garcia Reviewed-by: Max Reitz Reviewed-by: Vladimir Sementsov-Ogievskiy --- block/qcow2-refcount.c | 9 +++-- 1 file chan

[PATCH v5 26/31] qcow2: Add subcluster support to handle_alloc_space()

2020-05-05 Thread Alberto Garcia
The bdrv_co_pwrite_zeroes() call here fills complete clusters with zeroes, but it can happen that some subclusters are not part of the write request or the copy-on-write. This patch makes sure that only the affected subclusters are overwritten. A potential improvement would be to also fill with ze

[PATCH v5 00/31] Add subcluster allocation to qcow2

2020-05-05 Thread Alberto Garcia
Hi, here's the new version of the patches to add subcluster allocation support to qcow2. Please refer to the cover letter of the first version for a full description of the patches: https://lists.gnu.org/archive/html/qemu-block/2019-10/msg00983.html Important changes here: - I fixed hopeful

[PATCH v5 19/31] qcow2: Add subcluster support to calculate_l2_meta()

2020-05-05 Thread Alberto Garcia
If an image has subclusters then there are more copy-on-write scenarios that we need to consider. Let's say we have a write request from the middle of subcluster #3 until the end of the cluster: 1) If we are writing to a newly allocated cluster then we need copy-on-write. The previous contents

[PATCH v5 30/31] qcow2: Add subcluster support to qcow2_measure()

2020-05-05 Thread Alberto Garcia
Extended L2 entries are bigger than normal L2 entries so this has an impact on the amount of metadata needed for a qcow2 file. Signed-off-by: Alberto Garcia Reviewed-by: Max Reitz --- block/qcow2.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/block/qc

[PATCH v5 31/31] iotests: Add tests for qcow2 images with extended L2 entries

2020-05-05 Thread Alberto Garcia
Signed-off-by: Alberto Garcia --- tests/qemu-iotests/271 | 664 + tests/qemu-iotests/271.out | 519 + tests/qemu-iotests/group | 1 + 3 files changed, 1184 insertions(+) create mode 100755 tests/qemu-iotests/271 create mode

[PATCH v5 17/31] qcow2: Replace QCOW2_CLUSTER_* with QCOW2_SUBCLUSTER_*

2020-05-05 Thread Alberto Garcia
In order to support extended L2 entries some functions of the qcow2 driver need to start dealing with subclusters instead of clusters. qcow2_get_host_offset() is modified to return the subcluster type instead of the cluster type, and all callers are updated to replace all values of QCow2ClusterTyp

[PATCH v5 05/31] qcow2: Process QCOW2_CLUSTER_ZERO_ALLOC clusters in handle_copied()

2020-05-05 Thread Alberto Garcia
When writing to a qcow2 file there are two functions that take a virtual offset and return a host offset, possibly allocating new clusters if necessary: - handle_copied() looks for normal data clusters that are already allocated and have a reference count of 1. In those clusters we ca

[PATCH v5 28/31] qcow2: Add the 'extended_l2' option and the QCOW2_INCOMPAT_EXTL2 bit

2020-05-05 Thread Alberto Garcia
Now that the implementation of subclusters is complete we can finally add the necessary options to create and read images with this feature, which we call "extended L2 entries". Signed-off-by: Alberto Garcia Reviewed-by: Max Reitz --- qapi/block-core.json | 7 +++ block/qcow2.h

[PATCH v5 14/31] qcow2: Add QCow2SubclusterType and qcow2_get_subcluster_type()

2020-05-05 Thread Alberto Garcia
This patch adds QCow2SubclusterType, which is the subcluster-level version of QCow2ClusterType. All QCOW2_SUBCLUSTER_* values have the the same meaning as their QCOW2_CLUSTER_* equivalents (when they exist). See below for details and caveats. In images without extended L2 entries clusters are trea

[PATCH v5 27/31] qcow2: Add subcluster support to qcow2_co_pwrite_zeroes()

2020-05-05 Thread Alberto Garcia
This works now at the subcluster level and pwrite_zeroes_alignment is updated accordingly. qcow2_cluster_zeroize() is turned into qcow2_subcluster_zeroize() with the following changes: - The request can now be subcluster-aligned. - The cluster-aligned body of the request is still zeroized

[PATCH v5 20/31] qcow2: Add subcluster support to qcow2_get_host_offset()

2020-05-05 Thread Alberto Garcia
The logic of this function remains pretty much the same, except that it uses count_contiguous_subclusters(), which combines the logic of count_contiguous_clusters() / count_contiguous_clusters_unallocated() and checks individual subclusters. Signed-off-by: Alberto Garcia --- block/qcow2.h

[PATCH v5 07/31] qcow2: Document the Extended L2 Entries feature

2020-05-05 Thread Alberto Garcia
Subcluster allocation in qcow2 is implemented by extending the existing L2 table entries and adding additional information to indicate the allocation status of each subcluster. This patch documents the changes to the qcow2 format and how they affect the calculation of the L2 cache size. Signed-of

[PATCH v5 12/31] qcow2: Add l2_entry_size()

2020-05-05 Thread Alberto Garcia
qcow2 images with subclusters have 128-bit L2 entries. The first 64 bits contain the same information as traditional images and the last 64 bits form a bitmap with the status of each individual subcluster. Because of that we cannot assume that L2 entries are sizeof(uint64_t) anymore. This function

  1   2   3   4   >