Re: 9 TiB vm memory creation

2022-02-14 Thread David Hildenbrand
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: I failed to spawn a 9 Tib VM. The max I could do was a 2 TiB vm on

Re: Call for GSoC and Outreachy project ideas for summer 2022

2022-02-14 Thread Jason Wang
On Mon, Feb 14, 2022 at 10:02 PM Stefan Hajnoczi wrote: > > On Mon, 14 Feb 2022 at 07:11, Jason Wang wrote: > > > > On Fri, Jan 28, 2022 at 11:47 PM Stefan Hajnoczi wrote: > > > > > > Dear QEMU, KVM, and rust-vmm communities, > > > QEMU will apply for Google Summer of Code 2022 > > >

Re: [PULL 15/28] tests: Update CentOS 8 container to CentOS Stream 8

2022-02-14 Thread Philippe Mathieu-Daudé via
Hi Thomas, On 9/2/22 15:15, Alex Bennée wrote: From: Thomas Huth Support for CentOS 8 has stopped at the end of 2021, so let's switch to the Stream variant instead. Signed-off-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-Id:

Re: Call for GSoC and Outreachy project ideas for summer 2022

2022-02-14 Thread Jason Wang
On Mon, Feb 14, 2022 at 7:48 PM Stefano Garzarella wrote: > > On Mon, Feb 14, 2022 at 03:11:20PM +0800, Jason Wang wrote: > >On Fri, Jan 28, 2022 at 11:47 PM Stefan Hajnoczi wrote: > >> > >> Dear QEMU, KVM, and rust-vmm communities, > >> QEMU will apply for Google Summer of Code 2022 > >>

Re: [PATCH v5 10/16] audio/coreaudio: Remove a deprecation warning on macOS 12

2022-02-14 Thread Philippe Mathieu-Daudé via
On 15/2/22 07:53, Akihiko Odaki wrote: On Tue, Feb 15, 2022 at 3:57 AM Philippe Mathieu-Daudé wrote: 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]

Re: 9 TiB vm memory creation

2022-02-14 Thread Ani Sinha
> > > With KVM enabled it bails out with: > > >qemu-system-x86_64: kvm_set_user_memory_region: > > > KVM_SET_USER_MEMORY_REGION failed, slot=1, start=0x1, > > > size=0x8ff4000: Invalid argument > > > > > I have seen this in my system but not always. Maybe I should have dug >

Re: 9 TiB vm memory creation

2022-02-14 Thread Ani Sinha
> > static hwaddr kvm_max_slot_size = ~0; > > > > And only s390x sets > > > > kvm_set_max_memslot_size(KVM_SLOT_MAX_BYTES); > > > > with > > > > #define KVM_SLOT_MAX_BYTES (4UL * TiB) > > > > > So seems in Igor's system its getting limited by kvm not qemu. oops sorry, I read through the

Re: [PULL 0/5] 9p queue 2022-02-10

2022-02-14 Thread Greg Kurz
On Mon, 14 Feb 2022 17:43:51 +0300 Vitaly Chikunov wrote: > Christian, > > On Mon, Feb 14, 2022 at 12:44:48PM +0100, Christian Schoenebeck wrote: > > On Montag, 14. Februar 2022 11:36:53 CET Greg Kurz wrote: > > > The synth backend should be fixed to honor d_reclen, or > > > at least to

Re: 9 TiB vm memory creation

2022-02-14 Thread Ani Sinha
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: > >> > >> I failed to spawn a 9 Tib VM. The max I could do was a 2 TiB vm on my > >> system with the following

Re: [PATCH v5 10/16] audio/coreaudio: Remove a deprecation warning on macOS 12

2022-02-14 Thread Akihiko Odaki
On Tue, Feb 15, 2022 at 3:57 AM Philippe Mathieu-Daudé wrote: > > 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] >

Re: [PATCH v2] docs: Add measurement calculation details to amd-memory-encryption.txt

2022-02-14 Thread Dov Murik
On 04/01/2022 20:00, Daniel P. Berrangé wrote: > On Mon, Dec 20, 2021 at 10:42:24AM +, Dov Murik wrote: >> Add a section explaining how the Guest Owner should calculate the >> expected guest launch measurement for SEV and SEV-ES. >> >> Also update the name and link to the SEV API Spec

Re: [PATCH] [RESEND] docs: Add spec of OVMF GUIDed table for SEV guests

2022-02-14 Thread Dov Murik
On 04/01/2022 20:07, Daniel P. Berrangé wrote: > On Mon, Jan 03, 2022 at 11:14:13AM +0200, Dov Murik wrote: >> Add docs/specs/sev-guest-firmware.rst which describes the GUIDed table >> in the end of OVMF's image which is parsed by QEMU, and currently used >> to describe some values for SEV and

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

2022-02-14 Thread Rohit Kumar
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. Aborted (core dumped)

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

2022-02-14 Thread Nicholas Piggin
This moves the logic to reset the QEMU exception state into its own function. Signed-off-by: Nicholas Piggin --- target/ppc/excp_helper.c | 41 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/target/ppc/excp_helper.c

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

2022-02-14 Thread Nicholas Piggin
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 --- target/ppc/excp_helper.c | 14 +- 1 file

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

2022-02-14 Thread Nicholas Piggin
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. Signed-off-by: Nicholas Piggin --- hw/ppc/spapr.c

[PATCH 3/9] ppc: allow the hdecr timer to be created/destroyed

2022-02-14 Thread Nicholas Piggin
Machines which don't emulate the HDEC facility are able to use the timer for something else. Provide functions to start and stop the hdecr timer. Signed-off-by: Nicholas Piggin --- hw/ppc/ppc.c | 20 include/hw/ppc/ppc.h | 3 +++ 2 files changed, 23 insertions(+)

[PATCH 9/9] spapr: implement nested-hv capability for the virtual hypervisor

2022-02-14 Thread Nicholas Piggin
This implements the Nested KVM HV hcall API for spapr under TCG. The L2 is switched in when the H_ENTER_NESTED hcall is made, and the L1 is switched back in returned from the hcall when a HV exception is sent to the vhyp. Register state is copied in and out according to the nested KVM HV hcall

[PATCH 2/9] spapr: prevent hdec timer being set up under virtual hypervisor

2022-02-14 Thread Nicholas Piggin
The spapr virtual hypervisor does not require the hdecr timer. Remove it. Signed-off-by: Nicholas Piggin --- hw/ppc/ppc.c| 2 +- hw/ppc/spapr_cpu_core.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/ppc/ppc.c b/hw/ppc/ppc.c index

[PATCH 8/9] target/ppc: Introduce a vhyp framework for nested HV support

2022-02-14 Thread Nicholas Piggin
Introduce virtual hypervisor methods that can support a "Nested KVM HV" implementation using the bare metal 2-level radix MMU, and using HV exceptions to return from H_ENTER_NESTED (rather than cause interrupts). HV exceptions can now be raised in the TCG spapr machine when running a nested KVM

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

2022-02-14 Thread Nicholas Piggin
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 --- target/ppc/mmu-radix64.c | 4 ++-- 1 file changed, 2

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

2022-02-14 Thread Nicholas Piggin
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 abstract that logic. Signed-off-by: Nicholas

[PATCH 0/9] ppc: nested KVM HV for spapr virtual hypervisor

2022-02-14 Thread Nicholas Piggin
Here is the rollup of patches in much better shape since the RFC. I include the 2 first ones unchanged from independent submission just to be clear that this series requires them. Thanks Cedric and Fabiano for wading through my poor quality RFC code, very good changes suggested and I hope I got

Re: [PATCH 0/6] ui/dbus: Share one listener for a console

2022-02-14 Thread Akihiko Odaki
On 2022/02/15 4:49, Marc-André Lureau wrote: Hi On Mon, Feb 14, 2022 at 5:15 PM Akihiko Odaki > wrote: On Mon, Feb 14, 2022 at 9:07 PM Marc-André Lureau mailto:marcandre.lur...@gmail.com>> wrote: > > Hi Akihiko > > On Sun, Feb 13,

Re: [PATCH 1/1] vdpa: Make ncs autofree

2022-02-14 Thread Jason Wang
On Tue, Feb 15, 2022 at 3:34 AM Eugenio Pérez wrote: > > Simplifying memory management. > > Signed-off-by: Eugenio Pérez Acked-by: Jason Wang > --- > net/vhost-vdpa.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/net/vhost-vdpa.c b/net/vhost-vdpa.c > index

Re: [RFC PATCH 3/3] spapr: implement nested-hv support for the TCG virtual hypervisor

2022-02-14 Thread Nicholas Piggin
Excerpts from Nicholas Piggin's message of February 15, 2022 9:28 am: > Excerpts from Cédric Le Goater's message of February 15, 2022 4:31 am: >> On 2/10/22 07:53, Nicholas Piggin wrote: >>> +void spapr_enter_nested(PowerPCCPU *cpu) >>> +{ >>> +SpaprMachineState *spapr =

Re: [PATCH 1/2] spapr: Add SPAPR_CAP_AIL_MODE_3 for AIL mode 3 support for H_SET_MODE hcall

2022-02-14 Thread David Gibson
On Mon, Feb 14, 2022 at 09:17:48PM +1000, Nicholas Piggin wrote: > The behaviour of the Address Translation Mode on Interrupt resource is > not consistently supported by all CPU versions or all KVM versions. In > particular KVM HV only supports mode 0 on POWER7 processors and some > early POWER9

[NOTFORMERGE PATCH 1/1] target: Add system emulation aiming to target any architecture

2022-02-14 Thread Philippe Mathieu-Daudé via
Add the 'any'-architecture target. - Only consider 64-bit targets - Do not use any hardware accelerator (except qtest) - For architecture constants, use: . max of supported targets phys/virt address space . max of supported targets MMU modes . min of supported targets variable page bits

[NOTFORMERGE PATCH 0/1] target: Toward heterogeneous machine

2022-02-14 Thread Philippe Mathieu-Daudé via
Hi, following last week KVM call [1], I'm posting my playground machine to slowly work toward heterogeneous QEMU. This is orthogonal to Paolo / Markus / Daniel effort to have a qemu-system-qmp CLI entrypoint [2]. After refactoring a bit the headers to remove target-specific dependencies, we can

Re: [RFC PATCH 3/3] spapr: implement nested-hv support for the TCG virtual hypervisor

2022-02-14 Thread Nicholas Piggin
Excerpts from Cédric Le Goater's message of February 15, 2022 4:31 am: > On 2/10/22 07:53, Nicholas Piggin wrote: >> +void cpu_ppc_hdecr_init (CPUPPCState *env) >> +{ >> +PowerPCCPU *cpu = env_archcpu(env); >> + >> +assert(env->tb_env->hdecr_timer == NULL); >> + >> +

Re: [RFC PATCH 3/3] spapr: implement nested-hv support for the TCG virtual hypervisor

2022-02-14 Thread Nicholas Piggin
Excerpts from Fabiano Rosas's message of February 15, 2022 12:32 am: > Nicholas Piggin writes: > >> This implements the nested-hv hcall API for spapr under TCG. >> It's still a bit rough around the edges, concept seems to work. >> >> Some HV exceptions can be raised now in the TCG spapr machine

Re: [PATCH] spapr: prevent hdec timer being set up under virtual hypervisor

2022-02-14 Thread Nicholas Piggin
Excerpts from Cédric Le Goater's message of February 15, 2022 4:05 am: > On 2/14/22 14:32, Fabiano Rosas wrote: >> Nicholas Piggin writes: >> >>> The spapr virtual hypervisor does not require the hdecr timer. >> >> Why is that? Is this not needed for an emulated powernv running KVM >> guests?

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

2022-02-14 Thread Nicholas Piggin
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 is only proposed the KVM CAP has

Re: [PATCH v6 09/11] 9p: darwin: Implement compatibility for mknodat

2022-02-14 Thread Philippe Mathieu-Daudé via
On 10/2/22 14:29, Will Cohen wrote: From: Keno Fischer Darwin does not support mknodat. However, to avoid race conditions with later setting the permissions, we must avoid using mknod on the full path instead. We could try to fchdir, but that would cause problems if multiple threads try to

Re: [PATCH 1/3] ui/console: fix crash when using gl context with non-gl listeners

2022-02-14 Thread Philippe Mathieu-Daudé via
On 14/2/22 21:13, marcandre.lur...@redhat.com wrote: From: Marc-André Lureau The commit 7cc712e98 ("ui: dispatch GL events to all listener") mechanically replaced the dpy_gl calls with a dispatch loop, using the same pre-conditions. However, it didn't take into account that all listeners do

Re: [PATCH 1/1] vdpa: Make ncs autofree

2022-02-14 Thread Philippe Mathieu-Daudé via
On 14/2/22 20:34, Eugenio Pérez wrote: Simplifying memory management. Signed-off-by: Eugenio Pérez --- net/vhost-vdpa.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PULL 0/3] Block layer patches

2022-02-14 Thread Peter Maydell
On Fri, 11 Feb 2022 at 17:59, Kevin Wolf wrote: > > 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 +) > > are available in the Git

Re: [PATCH v6 00/11] 9p: Add support for darwin

2022-02-14 Thread Will Cohen
Hello all, I'm seeing on the updated release schedule that we're now looking at March 8 for soft feature freeze ( https://wiki.qemu.org/Planning/7.0#Release_Schedule). Is there anything additional that should be prepared for this patch set to hopefully be able to target 7.0? Will On Thu, Feb

[PATCH 3/3] ui: do not create a surface when resizing a GL scanout

2022-02-14 Thread marcandre . lureau
From: Marc-André Lureau qemu_console_resize() will create a blank surface and replace the current scanout with it if called while the current scanout is GL (texture or dmabuf). This is not only very costly, but also can produce glitches on the display/listener side. Instead, compare the

[PATCH 2/3] ui/console: fix texture leak when calling surface_gl_create_texture()

2022-02-14 Thread marcandre . lureau
From: Marc-André Lureau Make surface_gl_create_texture() idempotent: if the surface is already bound to a texture, do not create a new one. This fixes texture leaks when there are multiple DBus listeners, for example. Reported-by: Akihiko Odaki Signed-off-by: Marc-André Lureau ---

[PATCH 0/3] GL console related fixes

2022-02-14 Thread marcandre . lureau
From: Marc-André Lureau Hi, In the thread "[PATCH 0/6] ui/dbus: Share one listener for a console", Akihiko Odaki reported a number of issues with the GL and D-Bus display. His series propose a different design, and reverting some of my previous generic console changes to fix those issues.

[PATCH 1/3] ui/console: fix crash when using gl context with non-gl listeners

2022-02-14 Thread marcandre . lureau
From: Marc-André Lureau The commit 7cc712e98 ("ui: dispatch GL events to all listener") mechanically replaced the dpy_gl calls with a dispatch loop, using the same pre-conditions. However, it didn't take into account that all listeners do not have to implement the GL callbacks. Add the missing

Re: [PATCH 0/6] ui/dbus: Share one listener for a console

2022-02-14 Thread Marc-André Lureau
Hi On Mon, Feb 14, 2022 at 5:15 PM Akihiko Odaki wrote: > On Mon, Feb 14, 2022 at 9:07 PM Marc-André Lureau > wrote: > > > > Hi Akihiko > > > > On Sun, Feb 13, 2022 at 6:44 AM Akihiko Odaki > wrote: > >> > >> ui/dbus required to have multiple DisplayChangeListeners (possibly with > OpenGL) >

[RFC PATCH 9/9] vdpa: control virtqueue support on shadow virtqueue

2022-02-14 Thread Eugenio Pérez
Introduce the control virtqueue support for vDPA shadow virtqueue. This is needed for advanced networking features like multiqueue. To demonstrate command handling, VIRTIO_NET_F_CTROL_MACADDR is implemented. If vDPA device is started with SVQ support, and MAC changes in the source VM, it will be

Re: [PULL 10/24] iotest 065: explicit compression type

2022-02-14 Thread Thomas Huth
On 01/02/2022 15.42, Hanna Reitz wrote: From: Vladimir Sementsov-Ogievskiy The test checks different options. It of course fails if set IMGOPTS='compression_type=zstd'. So, let's be explicit in what compression type we want and independent of IMGOPTS. Test both existing compression types.

Re: [PULL 00/34] tcg patch queue

2022-02-14 Thread Peter Maydell
On Fri, 11 Feb 2022 at 01:31, Richard Henderson wrote: > > 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 +) > > are available in the Git

[RFC PATCH 8/9] vhost: Add vhost_svq_start_op

2022-02-14 Thread Eugenio Pérez
Signed-off-by: Eugenio Pérez --- hw/virtio/vhost-shadow-virtqueue.h | 4 +++- hw/virtio/vhost-shadow-virtqueue.c | 4 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/hw/virtio/vhost-shadow-virtqueue.h b/hw/virtio/vhost-shadow-virtqueue.h index 767b0a82ba..8f2377bbc4 100644

[PATCH v5 15/16] lcitool: refresh

2022-02-14 Thread Philippe Mathieu-Daudé via
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 b/tests/docker/dockerfiles/ubuntu1804.docker index

[RFC PATCH 6/9] vdpa: Add map/unmap operation callback to SVQ

2022-02-14 Thread Eugenio Pérez
Signed-off-by: Eugenio Pérez --- hw/virtio/vhost-shadow-virtqueue.h | 13 - hw/virtio/vhost-shadow-virtqueue.c | 12 +++- hw/virtio/vhost-vdpa.c | 20 +++- 3 files changed, 42 insertions(+), 3 deletions(-) diff --git

[PATCH v5 14/16] ui/cocoa: Do not alert even without block devices

2022-02-14 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 ---

[RFC PATCH 3/9] virtio: Make virtqueue_alloc_element non-static

2022-02-14 Thread Eugenio Pérez
So SVQ can allocate elements using it Signed-off-by: Eugenio Pérez --- include/hw/virtio/virtio.h | 1 + hw/virtio/virtio.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index f095637058..6f4cccfd42 100644

[PATCH v5 13/16] ui/cocoa: Add Services menu

2022-02-14 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:

[RFC PATCH 1/9] virtio-net: Expose ctrl virtqueue logic

2022-02-14 Thread Eugenio Pérez
This allows external vhost-net devices to modify the state of the VirtIO device model once vhost-vdpa device has acknowledge the control commands. Signed-off-by: Eugenio Pérez --- include/hw/virtio/virtio-net.h | 3 ++ hw/net/virtio-net.c| 83 -- 2

[PATCH 0/1] vdpa: Make ncs autofree

2022-02-14 Thread Eugenio Pérez
Trivial patch extracted from [1] series. It helps to simplify the memory management of the function when adding exit paths following the qemu guidelines. Thanks! [1] https://patchwork.kernel.org/project/qemu-devel/patch/20220121202733.404989-30-epere...@redhat.com/ Eugenio Pérez (1): vdpa:

[PATCH v5 10/16] audio/coreaudio: Remove a deprecation warning on macOS 12

2022-02-14 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 ^

[RFC PATCH 0/9] Net Control VQ support in vDPA SVQ

2022-02-14 Thread Eugenio Pérez
Control virtqueue is used by networking device for accepting various commands from the driver. It's a must to support multiqueue and other configurations. Shadow VirtQueue (SVQ) [1] already makes possible migration of virtqueue states, effectively intercepting them so qemu can track what regions

[PATCH 1/1] vdpa: Make ncs autofree

2022-02-14 Thread Eugenio Pérez
Simplifying memory management. Signed-off-by: Eugenio Pérez --- net/vhost-vdpa.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/vhost-vdpa.c b/net/vhost-vdpa.c index 4125d13118..4befba5cc7 100644 --- a/net/vhost-vdpa.c +++ b/net/vhost-vdpa.c @@ -264,7 +264,8 @@ int

[RFC PATCH 5/9] vhost: Add custom used buffer callback

2022-02-14 Thread Eugenio Pérez
The callback allows SVQ users to know the VirtQueue requests and responses. QEMU can use this to synchronize virtio device model state, allowing to migrate it with minimum changes to the migration code. In the case of networking, this will be used to inspect control virtqueue messages.

[PATCH v5 09/16] block/file-posix: Remove a deprecation warning on macOS 12

2022-02-14 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

[RFC PATCH 4/9] vhost: Add SVQElement

2022-02-14 Thread Eugenio Pérez
This allows SVQ to add metadata to the different queue elements Signed-off-by: Eugenio Pérez --- hw/virtio/vhost-shadow-virtqueue.c | 52 ++ 1 file changed, 31 insertions(+), 21 deletions(-) diff --git a/hw/virtio/vhost-shadow-virtqueue.c

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

2022-02-14 Thread Vivek Goyal
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 FUSE_SYNCFS in the case submounts > > > aren't announced to the

[RFC PATCH 7/9] vhost: Add vhost_svq_inject

2022-02-14 Thread Eugenio Pérez
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 | 2 + hw/virtio/vhost-shadow-virtqueue.c | 142

[PATCH v5 01/16] MAINTAINERS: Add Akihiko Odaki to macOS-relateds

2022-02-14 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

[PATCH v5 11/16] audio/dbus: Fix building with modules on macOS

2022-02-14 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:

[RFC PATCH 2/9] vdpa: Extract get geatures part from vhost_vdpa_get_max_queue_pairs

2022-02-14 Thread Eugenio Pérez
To know the device features is also needed for CVQ SVQ. Extract from vhost_vdpa_get_max_queue_pairs so we can reuse it. Report errno in case of failure getting them while we're at it. Signed-off-by: Eugenio Pérez --- net/vhost-vdpa.c | 30 -- 1 file changed, 20

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

2022-02-14 Thread Vivek Goyal
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 FUSE_SYNCFS in the case submounts > > aren't announced to the client. > > > > Iterate over all inodes and call syncfs() on the ones

Re: [RFC v4 20/21] vfio-user: migration support

2022-02-14 Thread John Johnson
> On Feb 11, 2022, at 5:31 AM, Thanos Makatos > wrote: > > >> -Original Message- >> From: Qemu-devel > bounces+thanos.makatos=nutanix@nongnu.org> On Behalf Of John >> Johnson >> Sent: 12 January 2022 00:44 >> To: qemu-devel@nongnu.org >> Subject: [RFC v4 20/21] vfio-user:

[PATCH v5 12/16] ui/cocoa: Remove allowedFileTypes restriction in SavePanel

2022-02-14 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 v5 05/16] hvf: Fix OOB write in RDTSCP instruction decode

2022-02-14 Thread Philippe Mathieu-Daudé via
From: Cameron Esfahani A guest could craft a specific stream of instructions that will have QEMU write 0xF9 to inappropriate locations in memory. Add additional asserts to check for this. Generate a #UD if there are more than 14 prefix bytes. Found by Julian Stecklina Signed-off-by: Cameron

[PATCH v5 16/16] gitlab-ci: Support macOS 12 via cirrus-run

2022-02-14 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] hw/ide: implement ich6 ide controller support

2022-02-14 Thread Liav Albani
Hello BALATON, Thank you for helping keeping this patch noticeable to everyone :) I tried to reach out to John via a private email last Saturday (two days ago) so I don't "spam" the mailing list for no good reason. It might be that I should actually refrain from doing so and talk to the

[PATCH v5 08/16] hvf: Remove deprecated hv_vcpu_flush() calls

2022-02-14 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]

[PATCH v5 04/16] hvf: Use standard CR0 and CR4 register definitions

2022-02-14 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 v5 07/16] hvf: Make hvf_get_segments() / hvf_put_segments() local

2022-02-14 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 v5 06/16] hvf: Enable RDTSCP support

2022-02-14 Thread Philippe Mathieu-Daudé via
From: Cameron Esfahani Pass through RDPID and RDTSCP support in CPUID if host supports it. Correctly detect if CPU_BASED_TSC_OFFSET and CPU_BASED2_RDTSCP would be supported in primary and secondary processor-based VM-execution controls. Enable RDTSCP in secondary processor controls if RDTSCP

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

2022-02-14 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 v5 00/16] host: Support macOS 12

2022-02-14 Thread Philippe Mathieu-Daudé via
Few patches to be able to build QEMU on macOS 12 (Monterey). This basically consists of adapting deprecated APIs. CI job added to avoid bitrotting. Since v4: - Use MAC_OS_X_VERSION_MIN_REQUIRED definition (Akihiko) - Include patches from Akihiko Since v3: - Fix --enable-modules - Ignore

[PATCH v2 11/14] target: Use forward declared type instead of structure type

2022-02-14 Thread Philippe Mathieu-Daudé via
The CPU / CPU state are forward declared. $ git grep -E 'struct [A-Za-z]+CPU\ \*' target/arm/hvf_arm.h:16:void hvf_arm_set_cpu_features_from_host(struct ARMCPU *cpu); target/openrisc/cpu.h:234:int (*cpu_openrisc_map_address_code)(struct OpenRISCCPU *cpu, target/openrisc/cpu.h:238:

[PATCH v5 02/16] configure: Allow passing extra Objective C compiler flags

2022-02-14 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 v2 10/14] target/hexagon: Add missing 'hw/core/cpu.h' include

2022-02-14 Thread Philippe Mathieu-Daudé via
HexagonCPU field parent_class is of type CPUClass, which is declared in "hw/core/cpu.h". Signed-off-by: Philippe Mathieu-Daudé --- target/hexagon/cpu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/target/hexagon/cpu.h b/target/hexagon/cpu.h index 096aa2deb6..76cd1d5021 100644 ---

[PATCH v2 13/14] target: Introduce and use OBJECT_DECLARE_CPU_TYPE() macro

2022-02-14 Thread Philippe Mathieu-Daudé via
Replace the boilerplate code to declare CPU QOM types and macros, and forward-declare the CPU instance type. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/core/cpu.h | 18 ++ target/alpha/cpu-qom.h | 3 +-- target/alpha/cpu.h | 2 --

[PATCH v2 12/14] target: Use CPUArchState as interface to target-specific CPU state

2022-02-14 Thread Philippe Mathieu-Daudé via
While CPUState is our interface with generic code, CPUArchState is our interface with target-specific code. Use CPUArchState as an abstract type, defined by each target. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- include/exec/poison.h | 2 --

[PATCH v2 09/14] target: Include missing 'cpu.h'

2022-02-14 Thread Philippe Mathieu-Daudé via
These target-specific files use the target-specific CPU state but lack to include "cpu.h"; i.e.: ../target/riscv/pmp.h:61:23: error: unknown type name 'CPURISCVState' void pmpcfg_csr_write(CPURISCVState *env, uint32_t reg_index, ^ ../target/nios2/mmu.h:43:18:

[PATCH v2 14/14] target: Use ArchCPU as interface to target CPU

2022-02-14 Thread Philippe Mathieu-Daudé via
ArchCPU is our interface with target-specific code. Use it as a forward-declared opaque pointer (abstract type), having its structure defined by each target. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/core/cpu.h | 4 ++-- include/qemu/typedefs.h | 1 + target/alpha/cpu.h | 2 +-

[PATCH v2 07/14] target/i386/tcg/sysemu: Include missing 'exec/exec-all.h' header

2022-02-14 Thread Philippe Mathieu-Daudé via
excp_helper.c requires "exec/exec-all.h" for tlb_set_page_with_attrs() and misc_helper.c for tlb_flush(). Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- target/i386/tcg/sysemu/excp_helper.c | 1 + target/i386/tcg/sysemu/misc_helper.c | 1 + 2 files changed, 2

[PATCH v2 05/14] cpu: Add missing 'exec/exec-all.h' and 'qemu/accel.h' headers

2022-02-14 Thread Philippe Mathieu-Daudé via
cpu.c requires "exec/exec-all.h" to call tlb_flush() and "qemu/accel.h" to call accel_cpu_realizefn(). Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpu.c b/cpu.c index d5d4cbf8cb..d564886149 100644 ---

[PATCH v2 06/14] target/i386/cpu: Ensure accelerators set CPU addressble physical bits

2022-02-14 Thread Philippe Mathieu-Daudé via
The only accelerator allowed to use zero as default value is TCG. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- target/i386/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index aa9e636800..16523a78d9 100644 ---

[PATCH v2 08/14] Hexagon (target/hexagon) convert to OBJECT_DECLARE_TYPE

2022-02-14 Thread Philippe Mathieu-Daudé via
From: Taylor Simpson Suggested-by: Richard Henderson Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220211033034.21107-1-tsimp...@quicinc.com> [PMD: Add missing "qom/object.h" include] Signed-off-by: Philippe Mathieu-Daudé ---

[PATCH v2 04/14] exec/cpu_ldst: Include 'cpu.h' to get target_ulong definition

2022-02-14 Thread Philippe Mathieu-Daudé via
Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- include/exec/cpu_ldst.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/exec/cpu_ldst.h b/include/exec/cpu_ldst.h index da987fe8ad..6adacf8928 100644 --- a/include/exec/cpu_ldst.h +++ b/include/exec/cpu_ldst.h

[PATCH v2 01/14] meson: Display libfdt as disabled when system emulation is disabled

2022-02-14 Thread Philippe Mathieu-Daudé via
When configuring QEMU with --disable-system, meson keeps showing libfdt as "auto". Mark it as disabled instead. Acked-by: Paolo Bonzini Signed-off-by: Philippe Mathieu-Daudé --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index

Re: [RFC PATCH 3/3] spapr: implement nested-hv support for the TCG virtual hypervisor

2022-02-14 Thread Cédric Le Goater
On 2/10/22 07:53, Nicholas Piggin wrote: This implements the nested-hv hcall API for spapr under TCG. It's still a bit rough around the edges, concept seems to work. Some HV exceptions can be raised now in the TCG spapr machine when running a nested guest. The main ones are the lev==1 syscall,

[PATCH v2 03/14] hw/tricore: Remove unused and incorrect header

2022-02-14 Thread Philippe Mathieu-Daudé via
TriCore boards certainly don't need the ARM loader API :) Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Signed-off-by: Philippe Mathieu-Daudé --- include/hw/tricore/triboard.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/hw/tricore/triboard.h

[PATCH v2 02/14] hw/m68k/mcf: Add missing 'exec/hwaddr.h' header

2022-02-14 Thread Philippe Mathieu-Daudé via
hwaddr type is defined in "exec/hwaddr.h". Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Signed-off-by: Philippe Mathieu-Daudé --- include/hw/m68k/mcf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/hw/m68k/mcf.h b/include/hw/m68k/mcf.h index decf17ce42..8cbd587bbf

[PATCH v2 00/14] target: Use ArchCPU & CPUArchState as abstract interface to target CPU

2022-02-14 Thread Philippe Mathieu-Daudé via
Missing review: 10, 13, 14 Since v1: - Include Hexagon OBJECT_DECLARE_TYPE() patch - Add missing includes to Hexagon - Introduce OBJECT_DECLARE_CPU_TYPE() macro - Use OBJECT_DECLARE_CPU_TYPE() Kind of respin of the "exec: Move translation declarations to 'translate-all.h'" series, but without

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

2022-02-14 Thread Vivek Goyal
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 as submounts. > Since syncfs() can block for an indefinite time,

Re: [PATCH] spapr: prevent hdec timer being set up under virtual hypervisor

2022-02-14 Thread Cédric Le Goater
On 2/14/22 14:32, Fabiano Rosas wrote: Nicholas Piggin writes: The spapr virtual hypervisor does not require the hdecr timer. Why is that? Is this not needed for an emulated powernv running KVM guests? It is now also running in the QEMU pseries machine (L0) when a nested is running.

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

2022-02-14 Thread Daniel Henrique Barboza
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 the time the event-based branch was supposed to

[PULL 0/3] Block patches

2022-02-14 Thread Stefan Hajnoczi
The following changes since commit cc5ce8b8b6be83e5fe3b668dbd061ad97c534e3f: Merge remote-tracking branch 'remotes/legoater/tags/pull-ppc-20220210' into staging (2022-02-13 20:33:28 +) are available in the Git repository at: https://gitlab.com/stefanha/qemu.git tags/block-pull-request

Re: [PULL 0/5] 9p queue 2022-02-10

2022-02-14 Thread Christian Schoenebeck
On Montag, 14. Februar 2022 15:43:51 CET Vitaly Chikunov wrote: > Christian, > > On Mon, Feb 14, 2022 at 12:44:48PM +0100, Christian Schoenebeck wrote: > > On Montag, 14. Februar 2022 11:36:53 CET Greg Kurz wrote: > > > The synth backend should be fixed to honor d_reclen, or > > > at least to

Re: [PATCH 5/6] test-bdrv-drain.c: remove test_detach_by_parent_cb()

2022-02-14 Thread Paolo Bonzini
On 2/14/22 16:28, Kevin Wolf wrote: The BlockBackend could safely return false from blk_root_drained_poll() while requests are still in their callbacks (if they do anything that touches a node, they would increase in_flight again), it just doesn't do it yet. It's only blk_drain(_all)() that

  1   2   3   >