[PATCH v2 4/7] tests/Makefile: test-replication needs CONFIG_POSIX

2020-08-23 Thread Thomas Huth
test-replication uses sigaction() and friends which are only available on POSIX-like systems. Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20200804170055.2851-5-th...@redhat.com> Signed-off-by: Thomas Huth --- tests/Makefile.include | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[PATCH v2 0/7] Run cross-compilation build tests in the gitlab-CI

2020-08-23 Thread Thomas Huth
Now that we can use all our QEMU build containers in the gitlab-CI, we can also run the cross-compilation jobs there. Of course, some problems have to be fixed first, so this is taken care of in the first four patches. The following two patches make sure that we can also enable WHPX builds with

[PATCH v2 2/7] tests/docker: Install python3-setuptools in the debian9-mxe containers

2020-08-23 Thread Thomas Huth
The python setuptools are a requirement for meson, so we need to install this additional package now. Signed-off-by: Thomas Huth --- tests/docker/dockerfiles/debian9-mxe.docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/docker/dockerfiles/debian9-mxe.docker

Re: [PULL 00/14] Linux user for 5.2 patches

2020-08-23 Thread Laurent Vivier
Le 21/08/2020 à 21:08, Laurent Vivier a écrit : > Le 21/08/2020 à 18:23, Peter Maydell a écrit : >> On Thu, 13 Aug 2020 at 07:51, Laurent Vivier wrote: >>> >>> The following changes since commit d0ed6a69d399ae193959225cdeaa9382746c91cc: >>> >>> Update version for v5.1.0 release (2020-08-11

[PATCH v2 3/7] tests/Makefile: test-image-locking needs CONFIG_POSIX

2020-08-23 Thread Thomas Huth
test-image-locking.c uses the qemu_lock_fd_test() function which is only available on POSIX-like systems. Reviewed-by: John Snow Message-Id: <20200804170055.2851-4-th...@redhat.com> Signed-off-by: Thomas Huth --- tests/Makefile.include | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v2 1/7] configure: Add system = 'linux' for meson when cross-compiling

2020-08-23 Thread Thomas Huth
Meson needs the "system = xyz" line when cross-compiling. We are already adding a "system = 'windows'" for the MinGW cross-compilation case here, so let's add a "system = 'linux'" now for Linux hosts, too. Signed-off-by: Thomas Huth --- configure | 3 +++ 1 file changed, 3 insertions(+) diff

[PATCH v2 6/7] configure: Allow automatic WHPX detection

2020-08-23 Thread Thomas Huth
The whpx variable is currently initialized to "no" which causes the WHPX check to skip the detection unless the user specified --enable-whpx. Since the detection code should be able to figure it out correctly, let's initialized the variable to "" on MinGW-builds for proper auto-detection instead.

[PATCH v2 5/7] dockerfiles/debian-win64-cross: Download WHPX MinGW headers

2020-08-23 Thread Thomas Huth
To compile-test the WHPX accelerator, we need to download these system headers first (they are unfortunately not part of any released and packaged MinGW toolchain yet). Idea taken from another patch by Stefan Weil. Message-Id: <20200804170055.2851-12-th...@redhat.com> Signed-off-by: Thomas Huth

Re: [PATCH-for-5.2] exec: Remove MemoryRegion::global_locking field

2020-08-23 Thread Robert Foley
On Sat, 22 Aug 2020 at 16:13, Philippe Mathieu-Daudé wrote: > > +Robert > > On 8/7/20 12:16 PM, Paolo Bonzini wrote: > > On 07/08/20 12:02, Stefan Hajnoczi wrote: > >> On Thu, Aug 06, 2020 at 05:07:26PM +0200, Philippe Mathieu-Daudé wrote: > >>> Last uses of memory_region_clear_global_locking()

odd meson failure: Unknown variable "exe_name"

2020-08-23 Thread Peter Maydell
On my x86-64 Linux box, one of my local build trees turned out not to work: $ rm -rf build/x86 && mkdir build/x86 && (cd build/x86 && '../../configure' '--target-list=arm-softmmu,aarch64-softmmu,arm-linux-user,aarch64-linux-user' '--enable-debug' '--cc=ccache gcc' '--audio-drv-list=pa'

[PULL 3/6] linux-user: Adjust guest page protection for the host

2020-08-23 Thread Laurent Vivier
From: Richard Henderson Executable guest pages are never directly executed by the host, but do need to be readable for translation. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell Message-Id: <20200519185645.3915-3-richard.hender...@linaro.org>

[PULL 1/6] linux-user: Fix "print_fdset()" in "strace.c" to not print ", " after last value

2020-08-23 Thread Laurent Vivier
From: Filip Bozuta Function "print_fdset()" in "strace.c" is used to print the file descriptor values in "print__newselect()" which prints arguments of syscall _newselect(). Until changes from this patch, this function was printing "," even after the last value of the fd_set argument. This was

[PULL 0/6] Linux user for 5.2 patches

2020-08-23 Thread Laurent Vivier
The following changes since commit d7df0ceee0fd2e512cd214a9074ebeeb40da3099: Merge remote-tracking branch 'remotes/philmd-gitlab/tags/sd-next-20200821' = into staging (2020-08-22 23:53:08 +0100) are available in the Git repository at: git://github.com/vivier/qemu.git

[PULL 2/6] linux-user: Validate mmap/mprotect prot value

2020-08-23 Thread Laurent Vivier
From: Richard Henderson The kernel will return -EINVAL for bits set in the prot argument that are unknown or invalid. Previously we were simply cropping out the bits that we care about. Introduce validate_prot_to_pageflags to perform this check in a single place between the two syscalls.

Re: odd meson failure: Unknown variable "exe_name"

2020-08-23 Thread Peter Maydell
On Sun, 23 Aug 2020 at 11:45, Peter Maydell wrote: > > On my x86-64 Linux box, one of my local build trees turned out not > to work: > > $ rm -rf build/x86 && mkdir build/x86 && (cd build/x86 && > '../../configure' > '--target-list=arm-softmmu,aarch64-softmmu,arm-linux-user,aarch64-linux-user' >

[PATCH v2 7/7] gitlab-ci: Add cross-compiling build tests

2020-08-23 Thread Thomas Huth
Now that we can use all our QEMU test containers in the gitlab-CI, we can easily add some jobs that test cross-compilation for various architectures. There is just only small ugliness: Since the shared runners on gitlab.com are single-threaded, we have to split each compilation job into two parts

Re: [PATCH] scripts/qemu-version.sh: Add missing space before ']'

2020-08-23 Thread Marc-André Lureau
Hi On Sun, Aug 23, 2020 at 2:26 PM Thomas Huth wrote: > > When configure has been run with --with-pkgversion=xyz, the shell complains > about a missing ']' in this script. > > Fixes: 2c273f32d3 ("meson: generate qemu-version.h") > Signed-off-by: Thomas Huth oops, my bad Reviewed-by:

[PATCH] scripts/qemu-version.sh: Add missing space before ']'

2020-08-23 Thread Thomas Huth
When configure has been run with --with-pkgversion=xyz, the shell complains about a missing ']' in this script. Fixes: 2c273f32d3 ("meson: generate qemu-version.h") Signed-off-by: Thomas Huth --- scripts/qemu-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PULL 0/6] Meson build system fixes

2020-08-23 Thread Peter Maydell
On Fri, 21 Aug 2020 at 22:18, Paolo Bonzini wrote: > > meson fixes: > > * --disable-tools --enable-system build > * s390 no-TCG build > * fdmon-io_uring > * 'shift' error message in version_ge() > >

Re: [PATCH] meson: Build qemu-nbd on macOS again

2020-08-23 Thread Marc-André Lureau
Hi On Sun, Aug 23, 2020 at 12:32 PM Thomas Huth wrote: > > Before switching to the meson build system, we used to compile qemu-nbd > for macOS, too, which is especially important for running the iotests > there. Commit b7c70bf2c5 disabled it by accident, since it did not take > into

Re: [PATCH 04/12] elf2dmp/pdb: Plug memleak in pdb_init_from_file

2020-08-23 Thread Viktor Prutyanov
On Fri, 14 Aug 2020 12:02:33 -0400 Pan Nengyuan wrote: > Missing g_error_free in pdb_init_from_file() error path. Fix that. > > Reported-by: Euler Robot > Signed-off-by: Pan Nengyuan > --- > Cc: Viktor Prutyanov > --- > contrib/elf2dmp/pdb.c | 1 + > 1 file changed, 1 insertion(+) > > diff

Re: [PULL 00/23] SD/MMC patches for 2020-08-21

2020-08-23 Thread Peter Maydell
On Fri, 21 Aug 2020 at 18:29, Philippe Mathieu-Daudé wrote: > > The following changes since commit d6f83a72a7db94a3ede9f5cc4fb39f9c8e89f954: > > Merge remote-tracking branch 'remotes/philmd-gitlab/tags/acceptance-testing= > -20200812' into staging (2020-08-21 14:51:43 +0100) > > are available

Re: [PATCH] linux-user: warn if trying to use qemu-mipsn32[el] with non n32 ELF

2020-08-23 Thread Carlo Arenas
The differences of bit width and endianness are already being taken care of by the current code. The differences in ABI for ILP32 are the only ones missing and so the new version[1] (sorry, not a series since it makes sense as a single change anyway) should be enough to fix any inconsistencies.

Re: [PATCH v2] linux-user: detect mismatched ELF ABI in qemu-mips[n32][el]

2020-08-23 Thread Laurent Vivier
Le 23/08/2020 à 12:17, Carlo Marcelo Arenas Belón a écrit : > MIPS provides 2 ILP32 ABIs, and therefore 4 possible qemu-mips binaries > with 2 pairs using the same endianess and bitness. > > This could lead to an O32 image loading in the N32 binary or vice versa > and in cryptic errors (if lucky

Re: [PULL 00/40] ppc-for-5.2 queue 20200818

2020-08-23 Thread Peter Maydell
On Tue, 18 Aug 2020 at 05:19, David Gibson wrote: > > The following changes since commit d0ed6a69d399ae193959225cdeaa9382746c91cc: > > Update version for v5.1.0 release (2020-08-11 17:07:03 +0100) > > are available in the Git repository at: > > git://github.com/dgibson/qemu.git

Re: [PULL v3 00/20] riscv-to-apply queue

2020-08-23 Thread Peter Maydell
On Sat, 22 Aug 2020 at 06:53, Alistair Francis wrote: > > The following changes since commit f86d9a093dada59bde5582c7ec320487c4b8: > > Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' > into staging (2020-08-21 17:26:52 +0100) > > are available in the Git repository

[PATCH] configure: avoid compiling qemu-keymap by default

2020-08-23 Thread Laurent Vivier
qemu-keymap is not needed with linux-user, so disable it by default if tools are disabled (tools are disabled by default with linux-user). Avoid this error with statically linked binaries: Linking target qemu-keymap /usr/bin/ld: cannot find -lxkbcommon Signed-off-by: Laurent Vivier ---

Re: [PULL] nvme updates

2020-08-23 Thread Peter Maydell
On Wed, 19 Aug 2020 at 20:23, Keith Busch wrote: > > We're trying our first nvme pull request from a dedicated development > tree containing various fixes, cleanups, spec compliance, and welcoming > Klaus Jensen to maintaining the emulated nvme device development. > > The following changes since

Re: [PATCH 03/12] elf2dmp/qemu_elf: Plug memleak in QEMU_Elf_init

2020-08-23 Thread Viktor Prutyanov
On Fri, 14 Aug 2020 12:02:32 -0400 Pan Nengyuan wrote: > Missing g_error_free in QEMU_Elf_init() error path. Fix that. > > Reported-by: Euler Robot > Signed-off-by: Pan Nengyuan > --- > Cc: Viktor Prutyanov > --- > contrib/elf2dmp/qemu_elf.c | 1 + > 1 file changed, 1 insertion(+) > > diff

[PATCH v2] linux-user: detect mismatched ELF ABI in qemu-mips[n32][el]

2020-08-23 Thread Carlo Marcelo Arenas Belón
MIPS provides 2 ILP32 ABIs, and therefore 4 possible qemu-mips binaries with 2 pairs using the same endianess and bitness. This could lead to an O32 image loading in the N32 binary or vice versa and in cryptic errors (if lucky that the CPU doesn't match the FPU used) like : qemu: Unexpected

[PULL 5/6] linux-user: Add support for a group of 2038 safe syscalls

2020-08-23 Thread Laurent Vivier
From: Filip Bozuta This patch implements functionality for following time64 syscalls: *clock_getres_time64 This a year 2038 safe variant of syscall: int clock_getres(clockid_t clockid, struct timespec *res) --finding the resoultion of a specified clock-- man page:

[PULL 4/6] linux-user: Modify 'target_to_host/host_to_target_itimerspec()'

2020-08-23 Thread Laurent Vivier
From: Filip Bozuta Functions 'target_to_host_itimerspec()' and 'host_to_target_itimerspec()' are used to convert values of type 'struct itimerspec' between target and host. This type has 'struct timespec' as its fields. That is the reason why this patch introduces a little modification to the

[PULL 6/6] linux-user: Fix 'utimensat()' implementation

2020-08-23 Thread Laurent Vivier
From: Filip Bozuta Implementation of syscall 'utimensat()' in 'syscall.c' uses functions target_to_host/host_to_target_timespec() to convert values of 'struct timespec' between host and target. However, the implementation doesn't check whether the conversion succeeds and thus can cause an

Re: [PULL 0/6] Linux user for 5.2 patches

2020-08-23 Thread Peter Maydell
On Sun, 23 Aug 2020 at 16:00, Laurent Vivier wrote: > > The following changes since commit d7df0ceee0fd2e512cd214a9074ebeeb40da3099: > > Merge remote-tracking branch 'remotes/philmd-gitlab/tags/sd-next-20200821' = > into staging (2020-08-22 23:53:08 +0100) > > are available in the Git

Re: [PATCH 2/2] travis.yml: Drop the Python 3.5 and 3.6 builds

2020-08-23 Thread Thomas Huth
On 05/08/2020 20.49, Thomas Huth wrote: > Python 3.5 is already the default in Ubuntu Xenial (which we use for > most jobs on Travis), and Python 3.6 is the default on Ubuntu Bionic > (which we use for the s390x jobs on Travis for example already), so > explicitely defining tests for Python 3.5

Re: [PATCH 0/1] qcow2: Skip copy-on-write when allocating a zero cluster

2020-08-23 Thread Dave Chinner
On Fri, Aug 21, 2020 at 08:59:44AM -0400, Brian Foster wrote: > On Fri, Aug 21, 2020 at 01:42:52PM +0200, Alberto Garcia wrote: > > On Fri 21 Aug 2020 01:05:06 PM CEST, Brian Foster > > wrote: > > And yes, (4) is a bit slower than (1) in my tests. On ext4 I get 10% > > more IOPS. > > > > I just

RE: [PATCH 07/18] hw/sd: sd: Fix incorrect populated function switch status data structure

2020-08-23 Thread Sai Pavan Boddu
Hi Bin, > -Original Message- > From: Bin Meng > Sent: Friday, August 21, 2020 3:38 PM > To: Sai Pavan Boddu > Cc: Philippe Mathieu-Daudé ; Alistair Francis > ; Bastian Koppelmann paderborn.de>; Palmer Dabbelt ; Sagar > Karandikar ; qemu-devel@nongnu.org; qemu- > ri...@nongnu.org; Bin

Re: [PATCH v6 2/4] copy-on-read: add filter append/drop functions

2020-08-23 Thread Andrey Shinkevich
On 23.08.2020 22:35, Andrey Shinkevich wrote: On 19.08.2020 13:21, Vladimir Sementsov-Ogievskiy wrote: 19.08.2020 00:24, Andrey Shinkevich wrote: Provide API for the COR-filter insertion/removal. Also, drop the filter child permissions for an inactive state when the filter node is being

Re: [PATCH v6 4/4] block: apply COR-filter to block-stream jobs

2020-08-23 Thread Andrey Shinkevich
On 19.08.2020 13:46, Vladimir Sementsov-Ogievskiy wrote: 19.08.2020 00:24, Andrey Shinkevich wrote: The patch completes the series with the COR-filter insertion to any block-stream operation. It also makes changes to the iotests 030. The test case 'test_stream_parallel' was deleted due to

Re: [PATCH] configure: avoid compiling qemu-keymap by default

2020-08-23 Thread Paolo Bonzini
Hi Laurent, there are two ways to do this in Meson without having to add more special casing in configure. The simplest is to build qemu-keymap by default only if have_tools. This is a one-liner adding the "build_by_default: have_tools" argument. The second is to move the detection of xkbcommon

unknown fs driver type 'virtiofs'

2020-08-23 Thread Pedro Serrano
Folks The instructions posted on http://blog.vmsplice.net/2020/04/virtio-fs-has-landed-in-qemu-50.html are simple and I followed them. I've updated my Debian Buster QEMU and LIBVIRT packages to all the newest buster-backports versions, and am running on: Linux ps01ubx 5.7.0-0.bpo.2-amd64 #1 SMP

Re: [PATCH v6 3/4] qapi: add filter-node-name to block-stream

2020-08-23 Thread Andrey Shinkevich
On 19.08.2020 13:29, Vladimir Sementsov-Ogievskiy wrote: 19.08.2020 00:24, Andrey Shinkevich wrote: Provide the possibility to pass the 'filter-node-name' parameter to the block-stream job as it is done for the commit block job. That will be needed for further iotests implementations. and for

Re: [PATCH 0/1] qcow2: Skip copy-on-write when allocating a zero cluster

2020-08-23 Thread Dave Chinner
On Fri, Aug 21, 2020 at 02:12:32PM +0200, Alberto Garcia wrote: > On Fri 21 Aug 2020 01:42:52 PM CEST, Alberto Garcia wrote: > > On Fri 21 Aug 2020 01:05:06 PM CEST, Brian Foster > > wrote: > >>> > 1) off: for every write request QEMU initializes the cluster (64KB) > >>> > with

[Fwd] Issue 25164 in oss-fuzz: qemu: Fuzzing build failure

2020-08-23 Thread Alexander Bulekov
Hi Paolo, Our oss-fuzz builds started failing, after the meson merge. I think I tracked down the issues: 1.) Looking at the build-log here: https://oss-fuzz-build-logs.storage.googleapis.com/log-d43d402c-1ce5-4422-b3db-ccbf83a862a0.txt The error happens at link-time. Re-running the build with V=1:

Re: [PULL 00/40] ppc-for-5.2 queue 20200818

2020-08-23 Thread David Gibson
On Sun, Aug 23, 2020 at 02:54:26PM +0100, Peter Maydell wrote: > On Tue, 18 Aug 2020 at 05:19, David Gibson > wrote: > > > > The following changes since commit d0ed6a69d399ae193959225cdeaa9382746c91cc: > > > > Update version for v5.1.0 release (2020-08-11 17:07:03 +0100) > > > > are available

[PATCH RFC v2 01/10] qemu/: fix some comment spelling errors

2020-08-23 Thread zhaolichang
I found that there are many spelling errors in the comments of qemu, so I used the spellcheck tool to check the spelling errors and finally found some spelling errors in the folder. Signed-off-by: zhaolichang --- Changelog | 2 +- accel/tcg/user-exec.c | 2 +- audio/audio.c

[PATCH] linux-user: Add support for a group of '_V2' btrfs ioctls

2020-08-23 Thread Filip Bozuta
This patch introduces functionality for following btrfs ioctls: BTRFS_IOC_SUBVOL_CREATE_V2 - Adding a new btrfs subvolume Create a new btrfs subvolume (same as with BTRFS_IOC_SUBVOL_CREATE). The third ioctl's argument is a pointer to a following type: struct btrfs_ioctl_vol_args_v2

[PATCH v4 03/12] migration/dirtyrate: Add RamlockDirtyInfo to store sampled page info

2020-08-23 Thread Chuan Zheng
Add RamlockDirtyInfo to store sampled page info of each ramblock. Signed-off-by: Chuan Zheng --- migration/dirtyrate.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/migration/dirtyrate.h b/migration/dirtyrate.h index 33669b7..7da 100644 --- a/migration/dirtyrate.h

[PATCH v4 01/12] migration/dirtyrate: setup up query-dirtyrate framwork

2020-08-23 Thread Chuan Zheng
Add get_dirtyrate_thread() functions to setup query-dirtyrate framework. Signed-off-by: Chuan Zheng Signed-off-by: YanYing Zhuang --- migration/Makefile.objs | 1 + migration/dirtyrate.c | 39 +++ migration/dirtyrate.h | 32

[PATCH v4 05/12] migration/dirtyrate: move RAMBLOCK_FOREACH_MIGRATABLE into ram.h

2020-08-23 Thread Chuan Zheng
RAMBLOCK_FOREACH_MIGRATABLE is need in dirtyrate measure, move the existing definition up into migration/ram.h Signed-off-by: Chuan Zheng --- migration/dirtyrate.c | 1 + migration/ram.c | 11 +-- migration/ram.h | 10 ++ 3 files changed, 12 insertions(+), 10

Re: [PATCH v6 2/4] copy-on-read: add filter append/drop functions

2020-08-23 Thread Andrey Shinkevich
On 19.08.2020 13:21, Vladimir Sementsov-Ogievskiy wrote: 19.08.2020 00:24, Andrey Shinkevich wrote: Provide API for the COR-filter insertion/removal. Also, drop the filter child permissions for an inactive state when the filter node is being removed. Signed-off-by: Andrey Shinkevich ---  

[PATCH v3 1/8] linux-user: Add support for a group of btrfs ioctls used for subvolumes

2020-08-23 Thread Filip Bozuta
This patch implements functionality of following ioctls: BTRFS_IOC_SUBVOL_CREATE - Creating a btrfs subvolume Create a btrfs subvolume. The subvolume is created using the ioctl's third argument which represents a pointer to a following structure type: struct btrfs_ioctl_vol_args

[PATCH v3 6/8] linux-user: Add support for two btrfs ioctls used for subvolume

2020-08-23 Thread Filip Bozuta
This patch implements functionality for following ioctl: BTRFS_IOC_DEFAULT_SUBVOL - Setting a default subvolume Set a default subvolume for a btrfs filesystem. The third ioctl's argument is a '__u64' (unsigned long long) which represents the id of a subvolume that is to be set as

[PATCH v3 3/8] linux-user: Add support for btrfs ioctls used to manipulate with devices

2020-08-23 Thread Filip Bozuta
This patch implements functionality for following ioctls: BTRFS_IOC_SCAN_DEV - Scanning device for a btrfs filesystem Scan a device for a btrfs filesystem. The device that is to be scanned is passed in the ioctl's third argument which represents a pointer to a 'struct ioc_vol_args'

[PATCH v3 5/8] linux-user: Add support for a group of btrfs inode ioctls

2020-08-23 Thread Filip Bozuta
This patch implements functionality of following ioctls: BTRFS_IOC_INO_LOOKUP - Reading tree root id and path Read tree root id and path for a given file or directory. The name and tree root id are returned in an ioctl's third argument that represents a pointer to a following type:

[PATCH 2/2] coroutine: take exactly one batch from global pool at a time

2020-08-23 Thread wanghonghao
This patch replace the global coroutine queue with a lock-free stack of which the elements are coroutine queues. Threads can put coroutine queues into the stack or take queues from it and each coroutine queue has exactly POOL_BATCH_SIZE coroutines. Note that the stack is not strictly LIFO, but

[PATCH 1/2] QSLIST: add atomic replace operation

2020-08-23 Thread wanghonghao
Replace a queue with another atomicly. It's useful when we need to transfer queues between threads. Signed-off-by: wanghonghao --- include/qemu/queue.h | 4 1 file changed, 4 insertions(+) diff --git a/include/qemu/queue.h b/include/qemu/queue.h index 456a5b01ee..a3ff544193 100644 ---

[PATCH v3 8/8] linux-user: Add support for btrfs ioctls used to scrub a filesystem

2020-08-23 Thread Filip Bozuta
This patch implements functionality for following ioctls: BTRFS_IOC_SCRUB - Starting a btrfs filesystem scrub Start a btrfs filesystem scrub. The third ioctls argument is a pointer to a following type: struct btrfs_ioctl_scrub_args { __u64 devid;

[PATCH v3 2/8] linux-user: Add support for a group of btrfs ioctls used for snapshots

2020-08-23 Thread Filip Bozuta
This patch implements functionality for following ioctls: BTRFS_IOC_SNAP_CREATE - Creating a subvolume snapshot Create a snapshot of a btrfs subvolume. The snapshot is created using the ioctl's third argument that is a pointer to a 'struct btrfs_ioctl_vol_args' (which was mentioned

[PATCH v3 4/8] linux-user: Add support for btrfs ioctls used to get/set features

2020-08-23 Thread Filip Bozuta
This patch implements functionality for following ioctls: BTRFS_IOC_GET_FEATURES - Getting feature flags Read feature flags for a btrfs filesystem. The feature flags are returned inside the ioctl's third argument which represents a pointer to a following structure type: struct

[PATCH v3 7/8] linux-user: Add support for btrfs ioctls used to manage quota

2020-08-23 Thread Filip Bozuta
This patch implements functionality for following ioctls: BTRFS_IOC_QUOTA_CTL - Enabling/Disabling quota support Enable or disable quota support for a btrfs filesystem. Quota support is enabled or disabled using the ioctls third argument which represents a pointer to a following

RE: [PULL v2 00/24] target/xtensa updates for 5.2

2020-08-23 Thread Taylor Simpson
> -Original Message- > From: Philippe Mathieu-Daudé On > Behalf Of Philippe Mathieu-Daudé > Sent: Saturday, August 22, 2020 4:21 AM > To: Max Filippov ; qemu-devel@nongnu.org > Cc: Peter Maydell ; Richard Henderson > ; Taylor Simpson > Subject: Re: [PULL v2 00/24] target/xtensa updates

[PATCH v4 11/12] migration/dirtyrate: Implement qmp_cal_dirty_rate()/qmp_get_dirty_rate() function

2020-08-23 Thread Chuan Zheng
Implement qmp_cal_dirty_rate()/qmp_get_dirty_rate() function which could be called Signed-off-by: Chuan Zheng --- migration/dirtyrate.c | 45 + qapi/migration.json | 44 2 files changed, 89 insertions(+)

[PATCH v4 02/12] migration/dirtyrate: add DirtyRateStatus to denote calculation status

2020-08-23 Thread Chuan Zheng
add DirtyRateStatus to denote calculating status. Signed-off-by: Chuan Zheng --- migration/dirtyrate.c | 22 ++ qapi/migration.json | 17 + 2 files changed, 39 insertions(+) diff --git a/migration/dirtyrate.c b/migration/dirtyrate.c index 366f4e9..91987c5

[PATCH v4 06/12] migration/dirtyrate: Record hash results for each sampled page

2020-08-23 Thread Chuan Zheng
Record hash results for each sampled page, crc32 is taken to calculate hash results for each sampled 4K-page. Signed-off-by: Chuan Zheng Signed-off-by: YanYing Zhuang --- migration/dirtyrate.c | 136 ++ migration/dirtyrate.h | 15 ++ 2 files

[PATCH v4 09/12] migration/dirtyrate: Implement get_sample_page_period() and block_sample_page_period()

2020-08-23 Thread Chuan Zheng
Implement get_sample_page_period() and set_sample_page_period() to sleep specific time between sample actions. Signed-off-by: Chuan Zheng --- migration/dirtyrate.c | 24 migration/dirtyrate.h | 2 ++ 2 files changed, 26 insertions(+) diff --git a/migration/dirtyrate.c

[PATCH v4 04/12] migration/dirtyrate: Add dirtyrate statistics series functions

2020-08-23 Thread Chuan Zheng
Add dirtyrate statistics to record/update dirtyrate info. Signed-off-by: Chuan Zheng --- migration/dirtyrate.c | 29 + migration/dirtyrate.h | 10 ++ 2 files changed, 39 insertions(+) diff --git a/migration/dirtyrate.c b/migration/dirtyrate.c index

[PATCH v4 10/12] migration/dirtyrate: Implement calculate_dirtyrate() function

2020-08-23 Thread Chuan Zheng
Implement calculate_dirtyrate() function. Signed-off-by: Chuan Zheng Signed-off-by: YanYing Zhuang --- migration/dirtyrate.c | 45 +++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/migration/dirtyrate.c b/migration/dirtyrate.c index

Re: [PATCH v3 1/2] meson: convert pc-bios/keymaps/Makefile

2020-08-23 Thread Gerd Hoffmann
> --- a/pc-bios/meson.build > +++ b/pc-bios/meson.build > @@ -25,3 +25,4 @@ if 'DECOMPRESS_EDK2_BLOBS' in config_host > endif > > subdir('descriptors') > +subdir('keymaps') Hmm, this hooks up the keymaps update to the default build. Not a good plan. The output is not static, but defaults on

[PATCH v3 0/8] linux-user: Adding support for a group of btrfs ioctls

2020-08-23 Thread Filip Bozuta
This series covers support for following btrfs ioctls *BTRFS_SUBVOL_CREATE *BTRFS_IOC_ADD_DEV *BTRFS_SUBVOL_SETFLAGS *BTRFS_IOC_RM_DEV *BTRFS_SUBVOL_GETFLAGS *BTRFS_IOC_DEV_INFO *BTRFS_GET_SUBVOL_INFO *BTRFS_IOC_GET_DEV_STATS

Re: odd meson failure: Unknown variable "exe_name"

2020-08-23 Thread Paolo Bonzini
It's a rebase issue from the introduction of fuzzing binaries. I will send a fix. Paolo Il dom 23 ago 2020, 12:54 Peter Maydell ha scritto: > On Sun, 23 Aug 2020 at 11:45, Peter Maydell > wrote: > > > > On my x86-64 Linux box, one of my local build trees turned out not > > to work: > > > > $

[REPORT] Nightly Performance Tests - Sunday, August 23, 2020

2020-08-23 Thread Ahmed Karaman
Host CPU : Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz Host Memory : 15.49 GB Start Time (UTC) : 2020-08-23 21:30:02 End Time (UTC) : 2020-08-23 22:02:16 Execution Time : 0:32:14.028460 Status : FAILURE

[PATCH v4 08/12] migration/dirtyrate: skip sampling ramblock with size below MIN_RAMBLOCK_SIZE

2020-08-23 Thread Chuan Zheng
In order to sample real RAM, skip ramblock with size below MIN_RAMBLOCK_SIZE which is set as 128M. Signed-off-by: Chuan Zheng --- migration/dirtyrate.c | 24 migration/dirtyrate.h | 10 ++ 2 files changed, 34 insertions(+) diff --git a/migration/dirtyrate.c

[PATCH v4 07/12] migration/dirtyrate: Compare page hash results for recorded sampled page

2020-08-23 Thread Chuan Zheng
Compare page hash results for recorded sampled page. Signed-off-by: Chuan Zheng Signed-off-by: YanYing Zhuang --- migration/dirtyrate.c | 64 +++ 1 file changed, 64 insertions(+) diff --git a/migration/dirtyrate.c b/migration/dirtyrate.c index

[PATCH v4 00/12] *** A Method for evaluating dirty page rate ***

2020-08-23 Thread Chuan Zheng
v3 -> v4: use crc32 to get hash result instead of md5 add DirtyRateStatus to denote calculation status add some trace_calls to make it easier to debug fix some comments accroding to review v2 -> v3: fix size_t compile warning fix codestyle checked by checkpatch.pl v1 ->

[PATCH v4 12/12] migration/dirtyrate: Add trace_calls to make it easier to debug

2020-08-23 Thread Chuan Zheng
Add trace_calls to make it easier to debug Signed-off-by: Chuan Zheng --- migration/dirtyrate.c | 7 +++ migration/trace-events | 8 2 files changed, 15 insertions(+) diff --git a/migration/dirtyrate.c b/migration/dirtyrate.c index 08c46d3..3513ef3 100644 ---

Re: [PATCH v6 4/8] ppc/e500: Use start-powered-off CPUState property

2020-08-23 Thread David Gibson
On Sat, Aug 22, 2020 at 10:59:56AM +0200, Cédric Le Goater wrote: > Hello, > > On 8/19/20 6:43 PM, Thiago Jung Bauermann wrote: > > Instead of setting CPUState::halted to 1 in ppce500_cpu_reset_sec(), use > > the start-powered-off property which makes cpu_common_reset() initialize it > > to 1 in

Re: [PULL 00/14] Linux user for 5.2 patches

2020-08-23 Thread Laurent Vivier
Le 21/08/2020 à 21:08, Laurent Vivier a écrit : > Le 21/08/2020 à 18:23, Peter Maydell a écrit : >> On Thu, 13 Aug 2020 at 07:51, Laurent Vivier wrote: >>> >>> The following changes since commit d0ed6a69d399ae193959225cdeaa9382746c91cc: >>> >>> Update version for v5.1.0 release (2020-08-11

Re: [PATCH v2] CODING_STYLE.rst: flesh out our naming conventions.

2020-08-23 Thread Thomas Huth
On 10/08/2020 12.51, Alex Bennée wrote: Mention a few of the more common naming conventions we follow in the code base including common variable names and function prefix and suffix examples. Signed-off-by: Alex Bennée --- v2 - punctuation fixes suggested by Cornelia - re-worded section

[PATCH] meson: Build qemu-nbd on macOS again

2020-08-23 Thread Thomas Huth
Before switching to the meson build system, we used to compile qemu-nbd for macOS, too, which is especially important for running the iotests there. Commit b7c70bf2c5 disabled it by accident, since it did not take into consideration that the $bsd variable in the configure script was also set to

[PATCH] meson: Don't make object files for dtrace on macOS

2020-08-23 Thread Roman Bolshakov
dtrace on macOS uses unresolved symbols with a special prefix to define probes [1], only headers should be generated for USDT (dtrace(1)). But it doesn't support backwards compatible no-op -G flag [2] and implicit build rules fail. 1. https://markmail.org/message/6grq2ygr5nwdwsnb 2.