Re: [PATCH v11 3/4] target/ppc: add PPC_INTERRUPT_EBB and EBB exceptions

2022-02-15 Thread Cédric Le Goater
On 2/14/22 18:52, Daniel Henrique Barboza wrote: On 2/14/22 14:34, Cédric Le Goater wrote: On 2/11/22 19:33, Daniel Henrique Barboza wrote: PPC_INTERRUPT_EBB is a new interrupt that will be used to deliver EBB exceptions that had to be postponed because the thread wasn't in problem state at

[PATCH v6 08/15] audio/coreaudio: Remove a deprecation warning on macOS 12

2022-02-15 Thread Philippe Mathieu-Daudé via
When building on macOS 12 we get: audio/coreaudio.c:50:5: error: 'kAudioObjectPropertyElementMaster' is deprecated: first deprecated in macOS 12.0 [-Werror,-Wdeprecated-declarations] kAudioObjectPropertyElementMaster ^

Re: [PATCH 0/7] tests/qtest: add some tests for virtio-net failover (part 2)

2022-02-15 Thread Laurent Vivier
Ping ? Thanks, Laurent On 03/02/2022 15:15, Laurent Vivier wrote: This series adds more qtest test cases to test virtio-net failover feature. New tests are focused on the behavior when the feature is not available. Laurent Vivier (7): tests/qtest: failover: clean up pathname of tests

[PULL 03/30] tests/qemu-iotests/testrunner: Print diff to stderr in TAP mode

2022-02-15 Thread Paolo Bonzini
From: Thomas Huth When running in TAP mode, stdout is reserved for the TAP protocol. To see the "diff" of the failed test, we have to print it to stderr instead. Signed-off-by: Thomas Huth Message-Id: <20220209101530.3442837-8-th...@redhat.com> Signed-off-by: Paolo Bonzini ---

[PULL 16/30] configure, meson: move coroutine options to meson_options.txt

2022-02-15 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- configure | 31 --- meson.build | 11 +-- meson_options.txt | 4 scripts/meson-buildoptions.sh | 7 +++ 4 files changed, 20 insertions(+), 33 deletions(-) diff --git

Re: 9 TiB vm memory creation

2022-02-15 Thread Ani Sinha
On Tue, Feb 15, 2022 at 3:14 PM David Hildenbrand wrote: > > On 15.02.22 10:40, Ani Sinha wrote: > > On Tue, Feb 15, 2022 at 2:08 PM David Hildenbrand wrote: > >> > >> On 15.02.22 09:12, Ani Sinha wrote: > >>> On Tue, Feb 15, 2022 at 1:25 PM David Hildenbrand > >>> wrote: > > On

[PULL 26/30] meson: do not make qga/vss-win32/meson.build conditional on C++ presence

2022-02-15 Thread Paolo Bonzini
From: Marc-André Lureau C++ presence is checked by the qga/ directory, so it can be assumed when building VSS module. Signed-off-by: Marc-André Lureau Reviewed-by: Konstantin Kostiuk Signed-off-by: Paolo Bonzini --- qga/vss-win32/meson.build | 41 +++ 1

[PULL 27/30] qga/vss-win32: require widl/midl, remove pre-built TLB file

2022-02-15 Thread Paolo Bonzini
From: Marc-André Lureau There are no good reason anymore to keep a pre-built file in the repository. Signed-off-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Konstantin Kostiuk Signed-off-by: Paolo Bonzini --- meson.build | 4 qga/meson.build

Re: 9 TiB vm memory creation

2022-02-15 Thread Daniel P . Berrangé
On Tue, Feb 15, 2022 at 09:38:34AM +0100, David Hildenbrand wrote: > On 15.02.22 09:12, Ani Sinha wrote: > > On Tue, Feb 15, 2022 at 1:25 PM David Hildenbrand wrote: > >> > >> On 15.02.22 08:00, Ani Sinha wrote: > >>> > >>> > >>> On Mon, 14 Feb 2022, David Hildenbrand wrote: > >>> > On

[RFC PATCH 4/4] ui/cocoa: Ignore 'initializer overrides' warnings

2022-02-15 Thread Philippe Mathieu-Daudé via
We globally ignore the 'initializer overrides' warnings in C code since commit c1556a812a ("configure: Disable (clang) initializer-overrides warnings"). Unfortunately the ${gcc_flags} variable is not propagated to Objective-C flags ($OBJCFLAGS). Instead of reworking the configure script to test

[PATCH v6 14/15] lcitool: Refresh

2022-02-15 Thread Philippe Mathieu-Daudé via
Run 'make lcitool-refresh' again. Signed-off-by: Philippe Mathieu-Daudé --- tests/docker/dockerfiles/ubuntu1804.docker | 2 -- tests/docker/dockerfiles/ubuntu2004.docker | 2 -- 2 files changed, 4 deletions(-) diff --git a/tests/docker/dockerfiles/ubuntu1804.docker

[PATCH v6 01/15] MAINTAINERS: Add Akihiko Odaki to macOS-relateds

2022-02-15 Thread Philippe Mathieu-Daudé via
From: Akihiko Odaki Signed-off-by: Akihiko Odaki Reviewed-by: Christian Schoenebeck Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220213021215.1974-1-akihiko.od...@gmail.com> Signed-off-by: Philippe Mathieu-Daudé --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH v2 7/8] tests/qemu-iotests/testrunner: Print diff to stderr in TAP mode

2022-02-15 Thread Paolo Bonzini
On 2/9/22 11:15, Thomas Huth wrote: When running in TAP mode, stdout is reserved for the TAP protocol. To see the "diff" of the failed test, we have to print it to stderr instead. Signed-off-by: Thomas Huth --- tests/qemu-iotests/testrunner.py | 5 - 1 file changed, 4 insertions(+), 1

[PATCH] target/riscv: Add isa extenstion strings to the device tree

2022-02-15 Thread Atish Patra
Append the available ISA extensions to the "riscv,isa" string if it is enabled so that kernel can process it. Signed-off-by: Atish Patra --- target/riscv/cpu.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c

[PULL 17/30] configure, meson: move smbd options to meson_options.txt

2022-02-15 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- configure | 26 ++ meson.build | 15 +-- meson_options.txt | 4 net/slirp.c | 16 scripts/meson-buildoptions.py | 1 +

[PULL 09/30] configure, meson: move libnuma detection to meson

2022-02-15 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- configure | 31 --- meson.build | 25 - meson_options.txt | 2 ++ scripts/meson-buildoptions.sh | 3 +++ 4 files changed, 25 insertions(+), 36 deletions(-)

[PULL 25/30] configure, meson: replace VSS SDK checks and options with --enable-vss-sdk

2022-02-15 Thread Paolo Bonzini
From: Marc-André Lureau The VSS headers are part of standard MS VS SDK, at least since version 15, and probably before that. They are also included with MinGW, although currently broken. Let's streamline a bit the options, by not making it so special, and instead rely on proper system headers

Re: [PATCH v3 0/4] virtio-iommu: Support VIRTIO_IOMMU_F_BYPASS_CONFIG

2022-02-15 Thread Jean-Philippe Brucker
On Tue, Feb 15, 2022 at 10:16:40AM +0100, Eric Auger wrote: > Hi Connie, > > On 2/14/22 6:34 PM, Cornelia Huck wrote: > > On Mon, Feb 14 2022, Jean-Philippe Brucker wrote: > > > >> Replace the VIRTIO_IOMMU_F_BYPASS feature with > >> VIRTIO_IOMMU_F_BYPASS_CONFIG, which enables a config space bit

[PATCH v2 6/6] libvduse: Add support for reconnecting

2022-02-15 Thread Xie Yongji
To support reconnecting after restart or crash, VDUSE backend might need to resubmit inflight I/Os. This stores the metadata such as the index of inflight I/O's descriptors to a shm file so that VDUSE backend can restore them during reconnecting. Signed-off-by: Xie Yongji ---

[PATCH v2 4/6] vduse-blk: implements vduse-blk export

2022-02-15 Thread Xie Yongji
This implements a VDUSE block backends based on the libvduse library. We can use it to export the BDSs for both VM and container (host) usage. The new command-line syntax is: $ qemu-storage-daemon \ --blockdev file,node-name=drive0,filename=test.img \ --export

Implementing ATC[Address Translation Cache] within emulated pcie end-point

2022-02-15 Thread Vishwanath MG
Looking for QEMU support in emulating ATC inside pcie EP (emulated). So that ATC behaviour can be modelled, deriving right set of ATC parameters and the right caching algorithm. Looked at patches https://lists.nongnu.org/archive/html/qemu-devel/2016-11/msg00642.html where ATS support has been

Re: 9 TiB vm memory creation

2022-02-15 Thread Ani Sinha
On Tue, Feb 15, 2022 at 1:25 PM David Hildenbrand wrote: > > On 15.02.22 08:00, Ani Sinha wrote: > > > > > > On Mon, 14 Feb 2022, David Hildenbrand wrote: > > > >> On 14.02.22 13:36, Igor Mammedov wrote: > >>> On Mon, 14 Feb 2022 10:54:22 +0530 (IST) > >>> Ani Sinha wrote: > >>> > Hi Igor:

Re: [PATCH v3 0/4] virtio-iommu: Support VIRTIO_IOMMU_F_BYPASS_CONFIG

2022-02-15 Thread Eric Auger
Hi Jean, On 2/14/22 1:43 PM, Jean-Philippe Brucker wrote: > Replace the VIRTIO_IOMMU_F_BYPASS feature with > VIRTIO_IOMMU_F_BYPASS_CONFIG, which enables a config space bit to switch > global bypass on and off. > > Add a boot-bypass option, which defaults to 'on' to be in line with > other vIOMMUs

[PULL 13/30] configure, meson: move block layer options to meson_options.txt

2022-02-15 Thread Paolo Bonzini
Unlike image formats, these also require an entry in config-host.h. Signed-off-by: Paolo Bonzini --- block/meson.build | 4 +++- configure | 20 meson.build | 11 --- meson_options.txt | 4

[PULL 14/30] meson: define qemu_cflags/qemu_ldflags

2022-02-15 Thread Paolo Bonzini
Prepare for moving more compiler tests to Meson. If the full set of compiler flags is needed in a cc.compiles/cc.links test, it will be handy to have a variable analogous to QEMU_CFLAGS. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- meson.build | 13 +++-- 1

[PULL 24/30] qga/vss: use standard windows headers location

2022-02-15 Thread Paolo Bonzini
From: Marc-André Lureau Stop using special paths with outdated headers from an old SDK. Instead, use standard include paths. You can still build against the old SDK by running configure with --extra-cxxflags="-isystem /path/to/inc/win2003/" (this also allows to build against MinGW headers,

Re: [PATCH 7/9] target/ppc: Add powerpc_reset_excp_state helper

2022-02-15 Thread Cédric Le Goater
On 2/15/22 04:16, Nicholas Piggin wrote: This moves the logic to reset the QEMU exception state into its own function. Signed-off-by: Nicholas Piggin Reviewed-by: Cédric Le Goater Thanks, C. --- target/ppc/excp_helper.c | 41 1 file changed,

Re: [PATCH v3 0/4] virtio-iommu: Support VIRTIO_IOMMU_F_BYPASS_CONFIG

2022-02-15 Thread Cornelia Huck
On Tue, Feb 15 2022, Jean-Philippe Brucker wrote: > On Tue, Feb 15, 2022 at 10:16:40AM +0100, Eric Auger wrote: >> Hi Connie, >> >> On 2/14/22 6:34 PM, Cornelia Huck wrote: >> > On Mon, Feb 14 2022, Jean-Philippe Brucker >> > wrote: >> > >> >> Replace the VIRTIO_IOMMU_F_BYPASS feature with >>

[PATCH v6 07/15] block/file-posix: Remove a deprecation warning on macOS 12

2022-02-15 Thread Philippe Mathieu-Daudé via
When building on macOS 12 we get: block/file-posix.c:3335:18: warning: 'IOMasterPort' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations] kernResult = IOMasterPort( MACH_PORT_NULL, ); ^~~~ IOMainPort Replace by

[PATCH v6 15/15] gitlab-ci: Support macOS 12 via cirrus-run

2022-02-15 Thread Philippe Mathieu-Daudé via
Add support for macOS 12 build on Cirrus-CI, similarly to commit 0e103a65ba1 ("gitlab: support for ... macOS 11 via cirrus-run"), but with the following differences: - Enable modules (configure --enable-modules) - Do not run softfloat3 tests (make check-softfloat) - Run Aarch64 qtests instead

Re: [PATCH v5 3/3] virtiofsd: Add support for FUSE_SYNCFS request without announce_submounts

2022-02-15 Thread Greg Kurz
On Mon, 14 Feb 2022 13:27:22 -0500 Vivek Goyal wrote: > On Mon, Feb 14, 2022 at 02:58:20PM +0100, Greg Kurz wrote: > > This adds the missing bits to support FUSE_SYNCFS in the case submounts > > aren't announced to the client. > > > > Iterate over all inodes and call syncfs() on the ones marked

[PULL 20/30] configure, meson: move OpenGL check to meson

2022-02-15 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- configure | 40 --- meson.build | 16 +- meson_options.txt | 2 ++ scripts/meson-buildoptions.sh | 3 +++ ui/meson.build| 16 +++--- 5 files

qdev instance_init vs realize split

2022-02-15 Thread Damien Hedde
Hi, I'm wondering if there are rules or convention about what we put in the instance_init() vs realize() for simple devices ? (For complex ones we generally have no choice to put everything in realize()) For example we can declare irqs and mmios in instance_init() or realize() if they do

Re: 9 TiB vm memory creation

2022-02-15 Thread David Hildenbrand
On 15.02.22 09:12, Ani Sinha wrote: > On Tue, Feb 15, 2022 at 1:25 PM David Hildenbrand wrote: >> >> On 15.02.22 08:00, Ani Sinha wrote: >>> >>> >>> On Mon, 14 Feb 2022, David Hildenbrand wrote: >>> On 14.02.22 13:36, Igor Mammedov wrote: > On Mon, 14 Feb 2022 10:54:22 +0530 (IST) >

Re: [PATCH 0/4] Make qemu-img dd more flexible

2022-02-15 Thread Fabian Ebner
Am 11.02.22 um 17:42 schrieb Hanna Reitz: > On 11.02.22 17:31, Eric Blake wrote: >> On Thu, Feb 10, 2022 at 02:31:19PM +0100, Fabian Ebner wrote: >>> Adds support for reading from stdin and writing to stdout (when raw >>> format is used), as well as overriding the size of the output and >>> input

[PATCH 1/2] linux headers: update against Linux 5.17-rc4

2022-02-15 Thread Gautam Dawar
This update is done to bring in the definition of VIRTIO_F_IN_ORDER from Linux kernel's include/uapi/linux/virtio_config.h. A patch was recently published to add VIRTIO_F_IN_ORDER's definition in the Linux kernel on top of version 5.17-rc4 Signed-off-by: Gautam Dawar ---

Re: [PATCH v3 0/4] virtio-iommu: Support VIRTIO_IOMMU_F_BYPASS_CONFIG

2022-02-15 Thread Eric Auger
Hi Connie, On 2/14/22 6:34 PM, Cornelia Huck wrote: > On Mon, Feb 14 2022, Jean-Philippe Brucker wrote: > >> Replace the VIRTIO_IOMMU_F_BYPASS feature with >> VIRTIO_IOMMU_F_BYPASS_CONFIG, which enables a config space bit to switch >> global bypass on and off. >> >> Add a boot-bypass option,

[PULL 18/30] configure, meson: move guest-agent, tools to meson

2022-02-15 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- configure | 48 ++-- contrib/vhost-user-gpu/meson.build | 2 +- docs/meson.build | 2 -- meson.build| 50 -- meson_options.txt

[PULL 11/30] configure, meson: cleanup qemu-ga libraries

2022-02-15 Thread Paolo Bonzini
Move LIBS_QGA to meson.build, remove dead QGA_VSS_PROVIDER variable. Signed-off-by: Paolo Bonzini --- configure | 7 --- qga/meson.build | 25 + 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/configure b/configure index 54eb954296..ee7c4aed0a

[PULL 19/30] meson: refine check for whether to look for virglrenderer

2022-02-15 Thread Paolo Bonzini
The check should be performed even if !have_system, as long as there is some hope that vhost-user-gpu will be built. Store into have_vhost_user_gpu whether vhost-user-gpu will be built; we will also use the variable to decide whether to look for libepoxy. Signed-off-by: Paolo Bonzini ---

Re: [PATCH 4/9] target/ppc: add vhyp addressing mode helper for radix MMU

2022-02-15 Thread Cédric Le Goater
On 2/15/22 04:16, Nicholas Piggin wrote: The radix on vhyp MMU uses a single-level radix table walk, with the partition scope mapping provided by the flat QEMU machine memory. A subsequent change will use the two-level radix walk on vhyp in some situations, so provide a helper which can

Holding RISCV CPUs in reset

2022-02-15 Thread vysakh pillai
Hi, In an SMP system like the sifive_u machine which has a RISCV e_cpu as hart0 and a set of u_cpus as hart 1-N, is there a way to start just the hart0 and hold the other CPUs in reset until explicitly released by hart0 SW? I am working on a machine similar to the sifive_u machine that has a

[PATCH v2 1/6] block: Support passing NULL ops to blk_set_dev_ops()

2022-02-15 Thread Xie Yongji
This supports passing NULL ops to blk_set_dev_ops() so that we can remove stale ops in some cases. Signed-off-by: Xie Yongji --- block/block-backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/block-backend.c b/block/block-backend.c index 4ff6b4d785..08dd0a3093

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

2022-02-15 Thread Peter Maydell
On Sat, 12 Feb 2022 at 00:07, Alistair Francis wrote: > > From: Alistair Francis > > The following changes since commit 0a301624c2f4ced3331ffd5bce85b4274fe132af: > > Merge remote-tracking branch > 'remotes/pmaydell/tags/pull-target-arm-20220208' into staging (2022-02-08 > 11:40:08 +) > >

Re: [RFC PATCH 4/4] ui/cocoa: Ignore 'initializer overrides' warnings

2022-02-15 Thread Peter Maydell
On Tue, 15 Feb 2022 at 12:13, Philippe Mathieu-Daudé via wrote: > > We globally ignore the 'initializer overrides' warnings in C code > since commit c1556a812a ("configure: Disable (clang) > initializer-overrides warnings"). Unfortunately the ${gcc_flags} > variable is not propagated to

Re: [PATCH v5 3/3] virtiofsd: Add support for FUSE_SYNCFS request without announce_submounts

2022-02-15 Thread Greg Kurz
On Mon, 14 Feb 2022 14:09:47 -0500 Vivek Goyal wrote: > On Mon, Feb 14, 2022 at 01:56:08PM -0500, Vivek Goyal wrote: > > On Mon, Feb 14, 2022 at 01:27:22PM -0500, Vivek Goyal wrote: > > > On Mon, Feb 14, 2022 at 02:58:20PM +0100, Greg Kurz wrote: > > > > This adds the missing bits to support

[PULL 00/30] Misc mostly build system patches for 2022-02-15

2022-02-15 Thread Paolo Bonzini
The following changes since commit 2d88a3a595f1094e3ecc6cd2fd1e804634c84b0f: Merge remote-tracking branch 'remotes/kwolf-gitlab/tags/for-upstream' into staging (2022-02-14 19:54:00 +) are available in the Git repository at: https://gitlab.com/bonzini/qemu.git tags/for-upstream for you

[PULL 05/30] meson: use .require() and .disable_auto_if() method for features

2022-02-15 Thread Paolo Bonzini
The method is now in 0.59, using it simplifies some conditionals. There is a small change, which is to build virtfs-proxy-helper in a tools-only build. This is done for consistency with other tools, which are not culled by the absence of system emulator binaries. .disable_auto_if() would also

[PULL 07/30] configure, meson: move membarrier test to meson

2022-02-15 Thread Paolo Bonzini
The test is a bit different from the others, in that it does not run if $membarrier is empty. For meson, the default can simply be disabled; if one day we will toggle the default, no change is needed in meson.build. Signed-off-by: Paolo Bonzini --- configure | 40

[PULL 10/30] configure, meson: move TPM check to meson

2022-02-15 Thread Paolo Bonzini
The check is simply for a POSIX system. Signed-off-by: Paolo Bonzini --- backends/tpm/meson.build | 14 ++ configure | 25 - docs/devel/kconfig.rst| 2 +- hw/acpi/meson.build | 4 +++- meson.build

[PATCH 2/2] Allow VIRTIO_F_IN_ORDER to be negotiated for vdpa devices

2022-02-15 Thread Gautam Dawar
This patch adds the ability to negotiate VIRTIO_F_IN_ORDER bit for vhost-vdpa backend when the underlying device supports this feature. This would aid in reaping performance benefits with HW devices that implement this feature. At the same time, it shouldn't have any negative impact as vhost-vdpa

[PULL 28/30] meson: require dynamic linking for VSS support

2022-02-15 Thread Paolo Bonzini
From: Marc-André Lureau The glib_dynamic detection does not work because the dependency is overridden in the main meson.build. Signed-off-by: Marc-André Lureau [Rewritten commit message, added requirement in qga/meson.build - Paolo] Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Konstantin

Re: [PATCH 5/9] target/ppc: make vhyp get_pate method take lpid and return success

2022-02-15 Thread Cédric Le Goater
On 2/15/22 04:16, Nicholas Piggin wrote: In prepartion for implementing a full partition table option for vhyp, update the get_pate method to take an lpid and return a success/fail indicator. The spapr implementation currently just asserts lpid is always 0 and always return success.

Re: [PATCH 6/9] target/ppc: add helper for books vhyp hypercall handler

2022-02-15 Thread Cédric Le Goater
On 2/15/22 04:16, Nicholas Piggin wrote: The virtual hypervisor currently always intercepts and handles hypercalls but with a future change this will not always be the case. Add a helper for the test so the logic is abstracted from the mechanism. Signed-off-by: Nicholas Piggin Reviewed-by:

[PATCH v2 0/6] Support exporting BDSs via VDUSE

2022-02-15 Thread Xie Yongji
Hi all, Last few months ago, VDUSE (vDPA Device in Userspace) [1] has been merged into Linux kernel as a framework that make it possible to emulate a vDPA device in userspace. This series aimed at implementing a VDUSE block backend based on the qemu-storage-daemon infrastructure. To support

Re: Holding RISCV CPUs in reset

2022-02-15 Thread Peter Maydell
On Tue, 15 Feb 2022 at 10:30, vysakh pillai wrote: > > Hi, > In an SMP system like the sifive_u machine which has a RISCV e_cpu as hart0 > and a set of u_cpus as hart 1-N, is there a way to start just the hart0 and > hold the other CPUs in reset until explicitly released by hart0 SW? > > I

Re: qdev instance_init vs realize split

2022-02-15 Thread Peter Maydell
On Tue, 15 Feb 2022 at 10:32, Damien Hedde wrote: > I'm wondering if there are rules or convention about what we put in the > instance_init() vs realize() for simple devices ? (For complex ones we > generally have no choice to put everything in realize()) > > For example we can declare irqs and

[PATCH 2/4] osdep: Un-inline qemu_thread_jit_execute/write

2022-02-15 Thread Philippe Mathieu-Daudé via
qemu_thread_jit_execute() and qemu_thread_jit_write() call pthread_jit_write_protect_np() which is declared in "pthread.h". Since we don't want all C files to preprocess unused headers, avoid adding yet another header here and move the function definitions to osdep.c, un-inlining them.

[RFC PATCH 3/4] audio: Rename coreaudio extension to use Objective-C compiler

2022-02-15 Thread Philippe Mathieu-Daudé via
The coreaudio library includes Objective-C declarations (using the caret '^' symbol to declare block references [*]). When building with a C compiler we get: [175/839] Compiling C object libcommon.fa.p/audio_coreaudio.c.o In file included from

[PATCH v6 11/15] ui/cocoa: Add Services menu

2022-02-15 Thread Philippe Mathieu-Daudé via
From: Akihiko Odaki Services menu functionality of Cocoa is described at: https://developer.apple.com/design/human-interface-guidelines/macos/extensions/services/ Signed-off-by: Akihiko Odaki Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-Id:

[PULL 04/30] meson: use .allowed() method for features

2022-02-15 Thread Paolo Bonzini
The method is now in 0.59, using it simplifies some boolean conditions. The other new methods .require() and .disable_auto_if() can be used too, but introducing them is not just a matter of search-and-replace. Signed-off-by: Paolo Bonzini --- meson.build | 42

[PULL 06/30] configure, meson: move AVX tests to meson

2022-02-15 Thread Paolo Bonzini
For consistency with other tests, --enable-avx2 and --enable-avx512f fail to compile on x86 systems if cpuid.h is not available. Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- configure | 103 -- meson.build

Re: [PATCH RFCv2 2/4] i386/pc: relocate 4g start to 1T where applicable

2022-02-15 Thread Gerd Hoffmann
Hi, > I don't know what behavior should be if firmware tries to program > PCI64 hole beyond supported phys-bits. Well, you are basically f*cked. Unfortunately there is no reliable way to figure what phys-bits actually is. Because of that the firmware (both seabios and edk2) tries to place

[PULL 22/30] meson: drop --with-win-sdk

2022-02-15 Thread Paolo Bonzini
From: Marc-André Lureau It's no longer used. Signed-off-by: Marc-André Lureau Signed-off-by: Paolo Bonzini --- configure | 29 - meson.build | 5 - 2 files changed, 34 deletions(-) diff --git a/configure b/configure index 4c9f3f7cb4..20968ca7ac 100755 ---

Re: 9 TiB vm memory creation

2022-02-15 Thread David Hildenbrand
On 15.02.22 10:40, Ani Sinha wrote: > On Tue, Feb 15, 2022 at 2:08 PM David Hildenbrand wrote: >> >> On 15.02.22 09:12, Ani Sinha wrote: >>> On Tue, Feb 15, 2022 at 1:25 PM David Hildenbrand wrote: On 15.02.22 08:00, Ani Sinha wrote: > > > On Mon, 14 Feb 2022, David

Re: [RFC PATCH 7/9] vhost: Add vhost_svq_inject

2022-02-15 Thread Eugenio Perez Martin
On Mon, Feb 14, 2022 at 8:28 PM Eugenio Pérez wrote: > > This allows qemu to inject packets to the device without guest's notice. > > This will be use to inject net CVQ messages to restore status in the > destination > > Signed-off-by: Eugenio Pérez > --- > hw/virtio/vhost-shadow-virtqueue.h |

[PATCH v2 3/6] libvduse: Add VDUSE (vDPA Device in Userspace) library

2022-02-15 Thread Xie Yongji
VDUSE [1] is a linux framework that makes it possible to implement software-emulated vDPA devices in userspace. This adds a library as a subproject to help implementing VDUSE backends in QEMU. [1] https://www.kernel.org/doc/html/latest/userspace-api/vduse.html Signed-off-by: Xie Yongji ---

[PATCH v2 5/6] vduse-blk: Add vduse-blk resize support

2022-02-15 Thread Xie Yongji
To support block resize, this uses vduse_dev_update_config() to update the capacity field in configuration space and inject config interrupt on the block resize callback. Signed-off-by: Xie Yongji --- block/export/vduse-blk.c | 20 1 file changed, 20 insertions(+) diff

[PATCH v6 09/15] audio/dbus: Fix building with modules on macOS

2022-02-15 Thread Philippe Mathieu-Daudé via
When configuring QEMU with --enable-modules we get on macOS: --- stderr --- Dependency ui-dbus cannot be satisfied ui-dbus depends on pixman and opengl, so add these dependencies to audio-dbus. Fixes: 739362d420 ("audio: add "dbus" audio backend") Reviewed-by: Li Zhang Signed-off-by:

[PATCH v6 06/15] hvf: Remove deprecated hv_vcpu_flush() calls

2022-02-15 Thread Philippe Mathieu-Daudé via
When building on macOS 11 [*], we get: In file included from ../target/i386/hvf/hvf.c:59: ../target/i386/hvf/vmx.h:174:5: error: 'hv_vcpu_flush' is deprecated: first deprecated in macOS 11.0 - This API has no effect and always returns HV_UNSUPPORTED [-Werror,-Wdeprecated-declarations]

Re: [PATCH 1/9] target/ppc: raise HV interrupts for partition table entry problems

2022-02-15 Thread Cédric Le Goater
On 2/15/22 04:16, Nicholas Piggin wrote: Invalid or missing partition table entry exceptions should cause HV interrupts. HDSISR is set to bad MMU config, which is consistent with the ISA and experimentally matches what POWER9 generates. Signed-off-by: Nicholas Piggin Adding the previous R-b

Re: [PATCH v2 10/14] target/hexagon: Add missing 'hw/core/cpu.h' include

2022-02-15 Thread Damien Hedde
On 2/14/22 19:31, Philippe Mathieu-Daudé via wrote: HexagonCPU field parent_class is of type CPUClass, which is declared in "hw/core/cpu.h". Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Damien Hedde --- target/hexagon/cpu.h | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH v2] Check and report for incomplete 'global' option format

2022-02-15 Thread Markus Armbruster
Rohit Kumar writes: > Qemu might crash when provided incomplete '-global' option. > For example: > qemu-system-x86_64 -global driver=isa-fdc > qemu-system-x86_64: ../../devel/qemu/qapi/string-input-visitor.c:394: > string_input_visitor_new: Assertion `str' failed. >

Re: 9 TiB vm memory creation

2022-02-15 Thread David Hildenbrand
On 15.02.22 10:48, Ani Sinha wrote: > On Tue, Feb 15, 2022 at 3:14 PM David Hildenbrand wrote: >> >> On 15.02.22 10:40, Ani Sinha wrote: >>> On Tue, Feb 15, 2022 at 2:08 PM David Hildenbrand wrote: On 15.02.22 09:12, Ani Sinha wrote: > On Tue, Feb 15, 2022 at 1:25 PM David

[PULL 23/30] qga/vss-win32: use widl if available

2022-02-15 Thread Paolo Bonzini
From: Marc-André Lureau widl from mingw64-tools and wine can compile a TLB file. Signed-off-by: Marc-André Lureau Reviewed-by: Konstantin Kostiuk Signed-off-by: Paolo Bonzini --- qga/vss-win32/meson.build | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git

[PULL 21/30] qga/vss-win32: fix midl arguments

2022-02-15 Thread Paolo Bonzini
From: Marc-André Lureau Microsoft midl compiler doesn't take "-options" form, nor does it take OUTPUT filename. The -I option seems needless as well (at least with VS15). It's not clear what was actually used when it was introduced in commit b39297aedfabe9. strings says "Created by MIDL

Re: [PATCH v3 0/4] virtio-iommu: Support VIRTIO_IOMMU_F_BYPASS_CONFIG

2022-02-15 Thread Jean-Philippe Brucker
On Tue, Feb 15, 2022 at 10:25:21AM +0100, Eric Auger wrote: > Hi Jean, > > On 2/14/22 1:43 PM, Jean-Philippe Brucker wrote: > > Replace the VIRTIO_IOMMU_F_BYPASS feature with > > VIRTIO_IOMMU_F_BYPASS_CONFIG, which enables a config space bit to switch > > global bypass on and off. > > > > Add a

Re: 9 TiB vm memory creation

2022-02-15 Thread Ani Sinha
On Tue, Feb 15, 2022 at 2:08 PM David Hildenbrand wrote: > > On 15.02.22 09:12, Ani Sinha wrote: > > On Tue, Feb 15, 2022 at 1:25 PM David Hildenbrand wrote: > >> > >> On 15.02.22 08:00, Ani Sinha wrote: > >>> > >>> > >>> On Mon, 14 Feb 2022, David Hildenbrand wrote: > >>> > On 14.02.22

[RFC PATCH 0/4] buildsys: More fixes to use GCC on macOS

2022-02-15 Thread Philippe Mathieu-Daudé via
Few fixes to be able to use GCC extensions which are not available on Clang. Philippe Mathieu-Daudé (4): osdep: Avoid using Clang-specific __builtin_available() osdep: Un-inline qemu_thread_jit_execute/write audio: Rename coreaudio extension to use Objective-C compiler ui/cocoa: Ignore

[RFC PATCH 1/4] osdep: Avoid using Clang-specific __builtin_available()

2022-02-15 Thread Philippe Mathieu-Daudé via
Replace MAC_OS_X_VERSION_MAX_ALLOWED upper check by the lower one (MAC_OS_X_VERSION_MIN_REQUIRED) and remove the Clang specific __builtin_available() to allow building with GCC. Remove the Clang specific __builtin_available() to allow building with GCC, otherwise we get: include/qemu/osdep.h:

Re: [PATCH 2/2] target/ppc/kvm: Use KVM_CAP_PPC_AIL_MODE_3 to determine cap-ail-mode-3 support

2022-02-15 Thread Fabiano Rosas
Nicholas Piggin writes: > Excerpts from Fabiano Rosas's message of February 14, 2022 11:13 pm: >> Nicholas Piggin writes: >> >>> Use KVM_CAP_PPC_AIL_MODE_3 to determine cap-ail-mode-3 support for KVM >>> guests. Keep the fallback heuristic for KVM hosts that pre-date this >>> CAP. >>> >>> This

[PATCH 0/2] Allow VIRTIO_F_IN_ORDER negotiation with vhost-vdpa

2022-02-15 Thread Gautam Dawar
The VIRTIO_F_IN_ORDER feature is implemented by DPDK virtio_net driver but not by the Linux kernel's virtio_net driver. However, this feature can't be tested using vhost-vdpa even with HW devices that implement it as VIRTIO_F_IN_ORDER isn't defined in kernel's virtio_config.h header file yet and

Re: [PATCH] ui/cocoa: Fix the leak of qemu_console_get_label

2022-02-15 Thread Philippe Mathieu-Daudé via
On 13/2/22 12:11, BALATON Zoltan wrote: On Sun, 13 Feb 2022, Akihiko Odaki wrote: Signed-off-by: Akihiko Odaki --- ui/cocoa.m | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index ac18e14ce01..fdf52a7c2f7 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m

[PATCH v6 05/15] hvf: Make hvf_get_segments() / hvf_put_segments() local

2022-02-15 Thread Philippe Mathieu-Daudé via
Both hvf_get_segments/hvf_put_segments() functions are only used within x86hvf.c: do not declare them as public API. Reviewed-by: Roman Bolshakov Tested-by: Roman Bolshakov Signed-off-by: Philippe Mathieu-Daudé --- target/i386/hvf/x86hvf.c | 4 ++-- target/i386/hvf/x86hvf.h | 2 -- 2 files

[PATCH v6 02/15] configure: Allow passing extra Objective C compiler flags

2022-02-15 Thread Philippe Mathieu-Daudé via
We can pass C/CPP/LD flags via CFLAGS/CXXFLAGS/LDFLAGS environment variables, or via configure --extra-cflags / --extra-cxxflags / --extra-ldflags options. Provide similar behavior for Objective C: use existing flags from $OBJCFLAGS, or passed via --extra-objcflags. Signed-off-by: Philippe

[PATCH v6 04/15] hvf: Use standard CR0 and CR4 register definitions

2022-02-15 Thread Philippe Mathieu-Daudé via
From: Cameron Esfahani No need to have our own definitions of these registers. Signed-off-by: Cameron Esfahani Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé --- target/i386/hvf/vmx.h | 17 + target/i386/hvf/x86.c | 6 +++---

[PATCH v6 00/15] host: Support macOS 12

2022-02-15 Thread Philippe Mathieu-Daudé via
Few patches to be able to build QEMU on macOS 12 (Monterey). Since v5: - Fixed failed rebase between patches 10 and 16 (Akihiko) - Include "ui/cocoa: Fix the leak of qemu_console_get_label" Since v4: - Use MAC_OS_X_VERSION_MIN_REQUIRED definition (Akihiko) - Include patches from Akihiko Since

[PATCH v6 03/15] tests/fp/berkeley-testfloat-3: Ignore ignored #pragma directives

2022-02-15 Thread Philippe Mathieu-Daudé via
Since we already use -Wno-unknown-pragmas, we can also use -Wno-ignored-pragmas. This silences hundred of warnings using clang 13 on macOS Monterey: [409/771] Compiling C object tests/fp/libtestfloat.a.p/berkeley-testfloat-3_source_test_az_f128_rx.c.o

[PATCH v6 12/15] ui/cocoa: Do not alert even without block devices

2022-02-15 Thread Philippe Mathieu-Daudé via
From: Akihiko Odaki Signed-off-by: Akihiko Odaki Message-Id: <20220213021418.2155-1-akihiko.od...@gmail.com> Signed-off-by: Philippe Mathieu-Daudé --- ui/cocoa.m | 5 - 1 file changed, 5 deletions(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index becca58cb7..6cadd43309 100644 ---

[PATCH v6 10/15] ui/cocoa: Remove allowedFileTypes restriction in SavePanel

2022-02-15 Thread Philippe Mathieu-Daudé via
setAllowedFileTypes is deprecated in macOS 12. Per Akihiko Odaki [*]: An image file, which is being chosen by the panel, can be a raw file and have a variety of file extensions and many are not covered by the provided list (e.g. "udf"). Other platforms like GTK can provide an option to

[PATCH v6 13/15] ui/cocoa: Fix the leak of qemu_console_get_label

2022-02-15 Thread Philippe Mathieu-Daudé via
From: Akihiko Odaki Signed-off-by: Akihiko Odaki Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220213021329.2066-1-akihiko.od...@gmail.com> [PMD: Use g_autofree, suggested by Zoltan BALATON] Signed-off-by: Philippe Mathieu-Daudé --- ui/cocoa.m | 4 +++- 1 file changed, 3 insertions(+),

Re: [PATCH] hw/arm/virt: Fix CPU's default NUMA node ID

2022-02-15 Thread Andrew Jones
On Tue, Feb 15, 2022 at 04:19:01PM +0800, Gavin Shan wrote: > The issue isn't related to CPU topology directly. It's actually related > to the fact: the default NUMA node ID will be picked for one particular > CPU if the associated NUMA node ID isn't provided by users explicitly. > So it's related

Re: [PATCH] hw/arm/virt: Fix CPU's default NUMA node ID

2022-02-15 Thread Gavin Shan
On 1/28/22 3:05 PM, wangyanan (Y) via wrote On 2022/1/26 17:14, Igor Mammedov wrote: On Wed, 26 Jan 2022 13:24:10 +0800 Gavin Shan wrote: The default CPU-to-NUMA association is given by mc->get_default_cpu_node_id() when it isn't provided explicitly. However, the CPU topology isn't fully

[PULL 01/30] target/i386: add TCG support for UMIP

2022-02-15 Thread Paolo Bonzini
From: Gareth Webb Signed-off-by: Gareth Webb Message-Id: <164425598317.21902.425775915932975614...@git.sr.ht> Signed-off-by: Paolo Bonzini --- target/i386/cpu.c | 2 +- target/i386/cpu.h | 4 +++- target/i386/helper.c| 8 +++- target/i386/tcg/translate.c |

[PULL 12/30] configure, meson: move image format options to meson_options.txt

2022-02-15 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- block/meson.build | 47 +++--- configure | 73 --- meson.build | 16 meson_options.txt | 16 scripts/meson-buildoptions.sh | 24

[PULL 02/30] memory: Fix qemu crash on starting dirty log twice with stopped VM

2022-02-15 Thread Paolo Bonzini
From: Peter Xu QEMU can now easily crash with two continuous migration carried out: (qemu) migrate -d exec:cat>out (qemu) migrate_cancel (qemu) migrate -d exec:cat>out [crash] ../softmmu/memory.c:2782: memory_global_dirty_log_start: Assertion `!(global_dirty_tracking & flags)' failed. It's

[PULL 08/30] configure, meson: move AF_ALG test to meson

2022-02-15 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- configure | 36 --- crypto/meson.build| 4 +++- meson.build | 16 +++- meson_options.txt | 2 ++ scripts/meson-buildoptions.sh | 3 +++ 5 files changed,

[PULL 15/30] configure, meson: move some default-disabled options to meson_options.txt

2022-02-15 Thread Paolo Bonzini
These do not depend on --with-default-features, so they become booleans in meson too. Signed-off-by: Paolo Bonzini --- configure | 61 +- crypto/meson.build | 2 +- meson.build| 23 +

[PULL 29/30] meson, configure: move ntddscsi API check to meson

2022-02-15 Thread Paolo Bonzini
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Reviewed-by: Konstantin Kostiuk Signed-off-by: Paolo Bonzini --- configure| 23 --- meson.build | 18 +- qga/commands-win32.c | 6 +++--- qga/meson.build | 2 +- 4 files

Re: [PATCH] target/riscv: Add isa extenstion strings to the device tree

2022-02-15 Thread Heiko Stübner
Hi Atish, Am Dienstag, 15. Februar 2022, 10:05:30 CET schrieb Atish Patra: > Append the available ISA extensions to the "riscv,isa" string if it > is enabled so that kernel can process it. For people glancing at these patches, a bit more insight into how the isa string comes together might be

  1   2   3   4   >