Re: [PATCH qemu] ui/gtk: Reuse input event slots for GdkEventTouch

2024-07-22 Thread Sergio Lopez Pascual
Marc-André Lureau writes: > Hi > > On Mon, Jul 22, 2024 at 3:58 PM Sergio Lopez Pascual wrote: > >> Marc-André Lureau writes: >> >> > Hi >> > >> > Adding Sergio in CC, who wrote that code. I don't have means to test it, >>

Re: [PATCH qemu] ui/gtk: Reuse input event slots for GdkEventTouch

2024-07-22 Thread Sergio Lopez Pascual
Marc-André Lureau writes: > Hi > > Adding Sergio in CC, who wrote that code. I don't have means to test it, > which also limits my understanding and ability to check this. > > On Sat, Jul 20, 2024 at 11:58 PM ~katharine_chui > wrote: > >> From: Katharine Chui >> >> There seems to be no guarante

Re: [PATCH 0/3] vhost-user-gpu: support dmabuf modifiers

2023-07-17 Thread Sergio Lopez
-- > contrib/vhost-user-gpu/vugpu.h | 9 + > docs/interop/vhost-user-gpu.rst | 26 - > hw/display/vhost-user-gpu.c | 17 - > 5 files changed, 102 insertions(+), 6 deletions(-) Series: Reviewed-by: Sergio Lopez signature.asc Description: PGP signature

[PATCH v5 3/6] virtio-input: add a virtio-mulitouch device

2023-05-26 Thread Sergio Lopez
any backends. The following patches will add a PCI-based multitouch device, some helpers in "ui" and will enable the GTK3 backend to transpose multi-touch events from the host to the guest. Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau --- hw/input/virtio-input-hid.c

[PATCH v5 4/6] virtio-input-pci: add virtio-multitouch-pci

2023-05-26 Thread Sergio Lopez
Add virtio-multitouch-pci, a Multitouch-capable input device, to the list of devices that can be provided by virtio-input-pci. Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau --- hw/virtio/virtio-input-pci.c | 25 + 1 file changed, 21 insertions(+), 4

[PATCH v5 5/6] ui: add helpers for virtio-multitouch events

2023-05-26 Thread Sergio Lopez
Add helpers for generating Multi-touch events from the UI backends that can be sent to the guest through a virtio-multitouch device. Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau --- include/ui/input.h | 5 + ui/input.c | 36 2

[PATCH v5 1/6] virtio-input: generalize virtio_input_key_config()

2023-05-26 Thread Sergio Lopez
As there are other bitmap-based config properties that need to be dealt in a similar fashion as VIRTIO_INPUT_CFG_EV_BITS, generalize the function to receive select and subsel as arguments, and rename it to virtio_input_extend_config() Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau

[PATCH v5 2/6] ui: add the infrastructure to support MT events

2023-05-26 Thread Sergio Lopez
Add the required infrastructure to support generating multitouch events. Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau Reviewed-by: Markus Armbruster --- include/ui/input.h| 3 ++ qapi/ui.json | 68 +-- replay/replay-input.c

[PATCH v5 0/6] Implement virtio-multitouch and enable GTK3 to use it

2023-05-26 Thread Sergio Lopez
/ui.json (Marc-André). - Print a warning if touch->sequence >= INPUT_EVENT_SLOTS_MAX (Marc-André). - Only send SYN_REPORT once, if needed (Marc-André). - Rebase and collect R-b. Sergio Lopez (6): virtio-input: generalize virtio_input_key_config() ui: add the infrastructure to support MT

[PATCH v5 6/6] ui/gtk: enable backend to send multi-touch events

2023-05-26 Thread Sergio Lopez
run guests that can also receive those events and interpret them as gestures, when appropriate. An example of this in action can be seen here: https://fosstodon.org/@slp/109545849296546767 Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau --- ui/

Re: [PATCH 2/4] hw/i386/microvm: Simplify using object_dynamic_cast()

2023-05-26 Thread Sergio Lopez
On Tue, May 23, 2023 at 08:12:05AM +0200, Philippe Mathieu-Daudé wrote: > Use object_dynamic_cast() to determine if 'dev' is a TYPE_VIRTIO_MMIO. > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/i386/microvm.c | 3 +-- > 1 file changed, 1 insertion(+), 2 delet

[PATCH v4 5/6] ui: add helpers for virtio-multitouch events

2023-05-09 Thread Sergio Lopez
Add helpers for generating Multi-touch events from the UI backends that can be sent to the guest through a virtio-multitouch device. Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau --- include/ui/input.h | 5 + ui/input.c | 36 2

[PATCH v4 1/6] virtio-input: generalize virtio_input_key_config()

2023-05-09 Thread Sergio Lopez
As there are other bitmap-based config properties that need to be dealt in a similar fashion as VIRTIO_INPUT_CFG_EV_BITS, generalize the function to receive select and subsel as arguments, and rename it to virtio_input_extend_config() Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau

[PATCH v4 6/6] ui/gtk: enable backend to send multi-touch events

2023-05-09 Thread Sergio Lopez
run guests that can also receive those events and interpret them as gestures, when appropriate. An example of this in action can be seen here: https://fosstodon.org/@slp/109545849296546767 Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau --- ui/

[PATCH v4 4/6] virtio-input-pci: add virtio-multitouch-pci

2023-05-09 Thread Sergio Lopez
Add virtio-multitouch-pci, a Multitouch-capable input device, to the list of devices that can be provided by virtio-input-pci. Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau --- hw/virtio/virtio-input-pci.c | 25 + 1 file changed, 21 insertions(+), 4

[PATCH v4 3/6] virtio-input: add a virtio-mulitouch device

2023-05-09 Thread Sergio Lopez
any backends. The following patches will add a PCI-based multitouch device, some helpers in "ui" and will enable the GTK3 backend to transpose multi-touch events from the host to the guest. Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau --- hw/input/virtio-input-hid.c

[PATCH v4 2/6] ui: add the infrastructure to support MT events

2023-05-09 Thread Sergio Lopez
Add the required infrastructure to support generating multitouch events. Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau --- include/ui/input.h| 3 +++ qapi/ui.json | 58 --- replay/replay-input.c | 18 ++ ui/input.c

[PATCH v4 0/6] Implement virtio-multitouch and enable GTK3 to use it

2023-05-09 Thread Sergio Lopez
- Only send SYN_REPORT once, if needed (Marc-André). - Rebase and collect R-b. Sergio Lopez (6): virtio-input: generalize virtio_input_key_config() ui: add the infrastructure to support MT events virtio-input: add a virtio-mulitouch device virtio-input-pci: add virtio-multitouch-pci u

Re: [PATCH v3 2/6] ui: add the infrastructure to support MT events

2023-05-09 Thread Sergio Lopez
On Mon, Apr 17, 2023 at 12:57:08PM +0200, Markus Armbruster wrote: > Sergio Lopez writes: > > > Add the required infrastructure to support generating multitouch events. > > > > Signed-off-by: Sergio Lopez > > Reviewed-by: Marc-André Lureau > > --- > >

[PATCH v3 3/6] virtio-input: add a virtio-mulitouch device

2023-04-13 Thread Sergio Lopez
any backends. The following patches will add a PCI-based multitouch device, some helpers in "ui" and will enable the GTK3 backend to transpose multi-touch events from the host to the guest. Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau --- hw/input/virtio-input-hid.c

[PATCH v3 5/6] ui: add helpers for virtio-multitouch events

2023-04-13 Thread Sergio Lopez
Add helpers for generating Multi-touch events from the UI backends that can be sent to the guest through a virtio-multitouch device. Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau --- include/ui/input.h | 5 + ui/input.c | 36 2

[PATCH v3 0/6] Implement virtio-multitouch and enable GTK3 to use it

2023-04-13 Thread Sergio Lopez
nce >= INPUT_EVENT_SLOTS_MAX (Marc-André). - Only send SYN_REPORT once, if needed (Marc-André). - Rebase and collect R-b. Sergio Lopez (6): virtio-input: generalize virtio_input_key_config() ui: add the infrastructure to support MT events virtio-input: add a virtio-mulitouch device virtio-input-pc

[PATCH v3 2/6] ui: add the infrastructure to support MT events

2023-04-13 Thread Sergio Lopez
Add the required infrastructure to support generating multitouch events. Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau --- include/ui/input.h| 3 +++ qapi/ui.json | 46 --- replay/replay-input.c | 18 + ui

[PATCH v3 6/6] ui/gtk: enable backend to send multi-touch events

2023-04-13 Thread Sergio Lopez
run guests that can also receive those events and interpret them as gestures, when appropriate. An example of this in action can be seen here: https://fosstodon.org/@slp/109545849296546767 Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau --- ui/

[PATCH v3 4/6] virtio-input-pci: add virtio-multitouch-pci

2023-04-13 Thread Sergio Lopez
Add virtio-multitouch-pci, a Multitouch-capable input device, to the list of devices that can be provided by virtio-input-pci. Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau --- hw/virtio/virtio-input-pci.c | 25 + 1 file changed, 21 insertions(+), 4

[PATCH v3 1/6] virtio-input: generalize virtio_input_key_config()

2023-04-13 Thread Sergio Lopez
As there are other bitmap-based config properties that need to be dealt in a similar fashion as VIRTIO_INPUT_CFG_EV_BITS, generalize the function to receive select and subsel as arguments, and rename it to virtio_input_extend_config() Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau

Re: [PATCH v2 6/6] ui/gtk: enable backend to send multi-touch events

2023-03-20 Thread Sergio Lopez
On Fri, Mar 17, 2023 at 12:02:41PM +0400, Marc-André Lureau wrote: > Hi > > On Thu, Mar 16, 2023 at 4:07 PM Sergio Lopez wrote: > > > > GTK3 provides the infrastructure to receive and process multi-touch > > events through the "touch-event" signal and the G

Re: [PATCH 4/4] ui/gtk: enable backend to send multi-touch events

2023-03-16 Thread Sergio Lopez
On Sun, Feb 19, 2023 at 12:28:22PM +0400, Marc-André Lureau wrote: > Hi Sergio > > On Sat, Feb 18, 2023 at 8:23 PM Sergio Lopez wrote: > > > > GTK3 provides the infrastructure to receive and process multi-touch > > events through the "touch-event" signal and

[PATCH v2 1/6] virtio-input: generalize virtio_input_key_config()

2023-03-16 Thread Sergio Lopez
As there are other bitmap-based config properties that need to be dealt in a similar fashion as VIRTIO_INPUT_CFG_EV_BITS, generalize the function to receive select and subsel as arguments, and rename it to virtio_input_extend_config() Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau

[PATCH v2 2/6] ui: add the infrastructure to support MT events

2023-03-16 Thread Sergio Lopez
Add the required infrastructure to support generating multitouch events. Signed-off-by: Sergio Lopez --- include/ui/input.h| 3 +++ qapi/ui.json | 45 --- replay/replay-input.c | 18 + ui/input.c| 6 ++ ui

[PATCH v2 6/6] ui/gtk: enable backend to send multi-touch events

2023-03-16 Thread Sergio Lopez
run guests that can also receive those events and interpret them as gestures, when appropriate. An example of this in action can be seen here: https://fosstodon.org/@slp/109545849296546767 Signed-off-by: Sergio Lopez --- ui/gtk.c | 92 ++

[PATCH v2 4/6] virtio-input-pci: add virtio-multitouch-pci

2023-03-16 Thread Sergio Lopez
Add virtio-multitouch-pci, a Multitouch-capable input device, to the list of devices that can be provided by virtio-input-pci. Signed-off-by: Sergio Lopez --- hw/virtio/virtio-input-pci.c | 25 + 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/hw/virtio

[PATCH v2 3/6] virtio-input: add a virtio-mulitouch device

2023-03-16 Thread Sergio Lopez
any backends. The following patches will add a PCI-based multitouch device, some helpers in "ui" and will enable the GTK3 backend to transpose multi-touch events from the host to the guest. Signed-off-by: Sergio Lopez --- hw/input/virtio-input-hid.c

[PATCH v2 5/6] ui: add helpers for virtio-multitouch events

2023-03-16 Thread Sergio Lopez
Add helpers for generating Multi-touch events from the UI backends that can be sent to the guest through a virtio-multitouch device. Signed-off-by: Sergio Lopez Reviewed-by: Marc-André Lureau --- include/ui/input.h | 5 + ui/input.c | 36 2

[PATCH v2 0/6] Implement virtio-multitouch and enable GTK3 to use it

2023-03-16 Thread Sergio Lopez
changes in different patches (Marc-André). - Fix versioning in qapi/ui.json (Marc-André). - Print a warning if touch->sequence >= INPUT_EVENT_SLOTS_MAX (Marc-André). - Only send SYN_REPORT once, if needed (Marc-André). - Rebase and collect R-b. Sergio Lopez (6): virtio-input: gene

[PATCH 3/4] ui: add helpers for virtio-multitouch events

2023-02-18 Thread Sergio Lopez
Add helpers for generating Multi-touch events from the UI backends that can be sent to the guest through a virtio-multitouch device. Signed-off-by: Sergio Lopez --- include/ui/input.h | 5 + ui/input.c | 36 2 files changed, 41 insertions

[PATCH 4/4] ui/gtk: enable backend to send multi-touch events

2023-02-18 Thread Sergio Lopez
run guests that can also receive those events and interpret them as gestures, when appropriate. An example of this in action can be seen here: https://fosstodon.org/@slp/109545849296546767 Signed-off-by: Sergio Lopez --- ui/gtk.c | 84 ++

[PATCH 1/4] virtio-input: generalize virtio_input_key_config()

2023-02-18 Thread Sergio Lopez
As there are other bitmap-based config properties that need to be dealt in a similar fashion as VIRTIO_INPUT_CFG_EV_BITS, generalize the function to receive select and subsel as arguments, and rename it to virtio_input_extend_config() Signed-off-by: Sergio Lopez --- hw/input/virtio-input-hid.c

[PATCH 2/4] virtio-input: add a virtio-mulitouch device

2023-02-18 Thread Sergio Lopez
any backends. The following patches will add helpers in "ui" and will enable the GTK3 backend to transpose multi-touch events from the host to the guest. Signed-off-by: Sergio Lopez --- hw/input/virtio-input-hid.c | 123 ++- hw/virtio/virtio-input-pci.c

[PATCH 0/4] Implement virtio-multitouch and enable GTK3 to use it

2023-02-18 Thread Sergio Lopez
receive multi-touch events and transpose them to a guest, so the latter can recognize them as gestures when appropriate. An example of this in action can be seen here: https://fosstodon.org/@slp/109545849296546767 Sergio Lopez (4): virtio-input: generalize virtio_input_key_config() virtio

Re: [Virtio-fs] virtiofsd: Any reason why there's not an "openat2" sandbox mode?

2022-09-28 Thread Sergio Lopez
On Tue, Sep 27, 2022 at 04:14:20PM -0400, Stefan Hajnoczi wrote: > On Tue, Sep 27, 2022 at 01:51:41PM -0400, Colin Walters wrote: > > > > > > On Tue, Sep 27, 2022, at 1:27 PM, German Maglione wrote: > > > > > >> > Now all the development has moved to rust virtiofsd. > > > > Oh, awesome!! The co

Re: [PATCH] microvm: turn off io reservations for pcie root ports

2022-06-05 Thread Sergio Lopez
On Fri, Jun 03, 2022 at 10:59:20AM +0200, Gerd Hoffmann wrote: > The pcie host bridge has no io window on microvm, > so io reservations will not work. > > Signed-off-by: Gerd Hoffmann > --- > hw/i386/microvm.c | 6 ++ > 1 file changed, 6 insertions(+) Revi

Re: [PATCH v3 4/4] docs: vhost-user: add subsection for non-Linux platforms

2022-03-04 Thread Sergio Lopez
On Fri, Mar 04, 2022 at 05:35:01AM -0500, Michael S. Tsirkin wrote: > On Thu, Mar 03, 2022 at 12:59:11PM +0100, Sergio Lopez wrote: > > Add a section explaining how vhost-user is supported on platforms > > other than Linux. > > > > Signed-off-by: Sergio Lopez >

[PATCH v4 4/4] docs: vhost-user: add subsection for non-Linux platforms

2022-03-04 Thread Sergio Lopez
Add a section explaining how vhost-user is supported on platforms other than Linux. Signed-off-by: Sergio Lopez Reviewed-by: Stefan Hajnoczi --- docs/interop/vhost-user.rst | 20 1 file changed, 20 insertions(+) diff --git a/docs/interop/vhost-user.rst b/docs/interop

[PATCH v4 3/4] configure, meson: allow enabling vhost-user on all POSIX systems

2022-03-04 Thread Sergio Lopez
entfd) a linux-only feature. Signed-off-by: Sergio Lopez Reviewed-by: Stefan Hajnoczi --- configure | 4 ++-- meson.build | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index c56ed53ee3..daccf4be7c 100755 --- a/configure +++ b/configure @@ -1

[PATCH v4 2/4] vhost: use wfd on functions setting vring call fd

2022-03-04 Thread Sergio Lopez
When ioeventfd is emulated using qemu_pipe(), only EventNotifier's wfd can be used for writing. Use the recently introduced event_notifier_get_wfd() function to obtain the fd that our peer must use to signal the vring. Signed-off-by: Sergio Lopez Reviewed-by: Stefan Hajnoczi --- hw/v

[PATCH v4 1/4] event_notifier: add event_notifier_get_wfd()

2022-03-04 Thread Sergio Lopez
peer in vhost's SET_VRING_CALL. Add a new event_notifier_get_wfd(const EventNotifier *e) that can be used to obtain wfd where needed. Signed-off-by: Sergio Lopez Reviewed-by: Stefan Hajnoczi --- include/qemu/event_notifier.h | 1 + util/event_notifier-posix.c | 5 + 2 files changed, 6

[PATCH v4 0/4] Enable vhost-user to be used on BSD systems

2022-03-04 Thread Sergio Lopez
Paolo Bonzini) v2->v3: - Add a section to docs/interop/vhost-user.rst explaining how vhost-user is supported on non-Linux platforms. (Stefan Hajnoczi) v3->v4: - Some documentation fixes. (Stefan Hajnoczi) - Pick up Reviewed-by tags. Sergio Lopez (4): event_notifier: add event_n

[PATCH v3 4/4] docs: vhost-user: add subsection for non-Linux platforms

2022-03-03 Thread Sergio Lopez
Add a section explaining how vhost-user is supported on platforms other than Linux. Signed-off-by: Sergio Lopez --- docs/interop/vhost-user.rst | 18 ++ 1 file changed, 18 insertions(+) diff --git a/docs/interop/vhost-user.rst b/docs/interop/vhost-user.rst index edc3ad84a3

[PATCH v3 2/4] vhost: use wfd on functions setting vring call fd

2022-03-03 Thread Sergio Lopez
When ioeventfd is emulated using qemu_pipe(), only EventNotifier's wfd can be used for writing. Use the recently introduced event_notifier_get_wfd() function to obtain the fd that our peer must use to signal the vring. Signed-off-by: Sergio Lopez --- hw/virtio/vhost.c | 6 +++--- 1

[PATCH v3 3/4] configure, meson: allow enabling vhost-user on all POSIX systems

2022-03-03 Thread Sergio Lopez
entfd) a linux-only feature. Signed-off-by: Sergio Lopez --- configure | 4 ++-- meson.build | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index c56ed53ee3..daccf4be7c 100755 --- a/configure +++ b/configure @@ -1659,8 +1659,8 @@ fi #

[PATCH v3 1/4] event_notifier: add event_notifier_get_wfd()

2022-03-03 Thread Sergio Lopez
peer in vhost's SET_VRING_CALL. Add a new event_notifier_get_wfd(const EventNotifier *e) that can be used to obtain wfd where needed. Signed-off-by: Sergio Lopez --- include/qemu/event_notifier.h | 1 + util/event_notifier-posix.c | 5 + 2 files changed, 6 insertions(+) diff

[PATCH v3 0/4] Enable vhost-user to be used on BSD systems

2022-03-03 Thread Sergio Lopez
Paolo Bonzini) v2->v3: - Add a section to docs/interop/vhost-user.rst explaining how vhost-user is supported on non-Linux platforms. (Stefan Hajnoczi) Sergio Lopez (4): event_notifier: add event_notifier_get_wfd() vhost: use wfd on functions setting vring call fd configure, meson: allo

[PATCH v2 2/3] vhost: use wfd on functions setting vring call fd

2022-03-02 Thread Sergio Lopez
When ioeventfd is emulated using qemu_pipe(), only EventNotifier's wfd can be used for writing. Use the recently introduced event_notifier_get_wfd() function to obtain the fd that our peer must use to signal the vring. Signed-off-by: Sergio Lopez --- hw/virtio/vhost.c | 6 +++--- 1

[PATCH v2 0/3] Enable vhost-user to be used on BSD systems

2022-03-02 Thread Sergio Lopez
ions setting vring call fd" - Rename: "Allow building vhost-user in BSD" to "configure, meson: allow enabling vhost-user on all POSIX systems" - Instead of making possible enabling vhost-user on Linux and BSD systems, allow enabling it on all non-Wind

[PATCH v2 1/3] event_notifier: add event_notifier_get_wfd()

2022-03-02 Thread Sergio Lopez
peer in vhost's SET_VRING_CALL. Add a new event_notifier_get_wfd(const EventNotifier *e) that can be used to obtain wfd where needed. Signed-off-by: Sergio Lopez --- include/qemu/event_notifier.h | 1 + util/event_notifier-posix.c | 5 + 2 files changed, 6 insertions(+) diff

[PATCH v2 3/3] configure, meson: allow enabling vhost-user on all POSIX systems

2022-03-02 Thread Sergio Lopez
entfd) a linux-only feature. Signed-off-by: Sergio Lopez --- configure | 4 ++-- meson.build | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index c56ed53ee3..daccf4be7c 100755 --- a/configure +++ b/configure @@ -1659,8 +1659,8 @@ fi #

Re: [PATCH 2/2] Allow building vhost-user in BSD

2022-03-02 Thread Sergio Lopez
On Wed, Mar 02, 2022 at 06:38:07PM +0100, Philippe Mathieu-Daudé wrote: > On 2/3/22 18:31, Sergio Lopez wrote: > > On Wed, Mar 02, 2022 at 06:18:59PM +0100, Philippe Mathieu-Daudé wrote: > > > On 2/3/22 18:10, Paolo Bonzini wrote: > > > > On 3/2/22 12:36, Sergio L

Re: [PATCH 2/2] Allow building vhost-user in BSD

2022-03-02 Thread Sergio Lopez
On Wed, Mar 02, 2022 at 06:18:59PM +0100, Philippe Mathieu-Daudé wrote: > On 2/3/22 18:10, Paolo Bonzini wrote: > > On 3/2/22 12:36, Sergio Lopez wrote: > > > With the possibility of using pipefd as a replacement on operating > > > systems that doesn't support even

Re: [PATCH 1/2] Allow returning EventNotifier's wfd

2022-03-02 Thread Sergio Lopez
On Wed, Mar 02, 2022 at 08:12:34AM -0700, Alex Williamson wrote: > On Wed, 2 Mar 2022 12:36:43 +0100 > Sergio Lopez wrote: > > > event_notifier_get_fd(const EventNotifier *e) always returns > > EventNotifier's read file descriptor (rfd). This is not a problem whe

[PATCH 2/2] Allow building vhost-user in BSD

2022-03-02 Thread Sergio Lopez
d-off-by: Sergio Lopez --- configure | 5 +++-- meson.build | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/configure b/configure index c56ed53ee3..93aa22e345 100755 --- a/configure +++ b/configure @@ -1659,8 +1659,9 @@ fi # vhost interdependencies and host support #

[PATCH 1/2] Allow returning EventNotifier's wfd

2022-03-02 Thread Sergio Lopez
peer in vhost's SET_VRING_CALL. Extend event_notifier_get_fd() to receive an argument which indicates whether the caller wants to obtain rfd (false) or wfd (true). Signed-off-by: Sergio Lopez --- accel/kvm/kvm-all.c | 12 +++ block/linux-aio.c |

[PATCH 0/2] Enable vhost-user to be used on BSD systems

2022-03-02 Thread Sergio Lopez
llows enabling vhost-user on BSD. Sergio Lopez (2): Allow returning EventNotifier's wfd Allow building vhost-user in BSD accel/kvm/kvm-all.c | 12 +++ block/linux-aio.c | 2 +- block/nvme.c| 2 +-

Re: [PATCH v1 2/2] hw/i386: Make pic a property of common x86 base machine type

2022-01-11 Thread Sergio Lopez
86/pc_piix.c | 4 +++- > hw/i386/pc_q35.c | 4 +++- > hw/i386/x86.c | 25 + > include/hw/i386/microvm.h | 2 -- > include/hw/i386/x86.h | 2 ++ > 6 files changed, 34 insertions(+), 30 deletions(-) Reviewed-by: Sergio Lopez signature.asc Description: PGP signature

Re: [PATCH v1 1/2] hw/i386: Make pit a property of common x86 base machine type

2022-01-11 Thread Sergio Lopez
--- > hw/i386/pc.c | 24 +++- > hw/i386/x86.c | 25 + > include/hw/i386/microvm.h | 2 -- > include/hw/i386/pc.h | 2 -- > include/hw/i386/x86.h | 2 ++ > 6 files changed, 31 insertions(+), 5

Re: SEV guest attestation

2021-11-25 Thread Sergio Lopez
On Thu, Nov 25, 2021 at 02:44:51PM +0200, Dov Murik wrote: > [+cc jejb, tobin, jim, hubertus] > > > On 25/11/2021 9:14, Sergio Lopez wrote: > > On Wed, Nov 24, 2021 at 06:29:07PM +, Dr. David Alan Gilbert wrote: > >> * Daniel P. Berrangé (berra...@redhat.com)

Re: SEV guest attestation

2021-11-24 Thread Sergio Lopez
On Wed, Nov 24, 2021 at 06:29:07PM +, Dr. David Alan Gilbert wrote: > * Daniel P. Berrangé (berra...@redhat.com) wrote: > > On Wed, Nov 24, 2021 at 11:34:16AM -0500, Tyler Fanelli wrote: > > > Hi, > > > > > > We recently discussed a way for remote SEV guest attestation through QEMU. > > > My i

Re: [PATCH-for-6.2] hw/i386/microvm: Reduce annoying debug message in dt_setup_microvm()

2021-11-18 Thread Sergio Lopez
On Wed, Nov 17, 2021 at 06:43:31PM +0100, Philippe Mathieu-Daudé wrote: > Fixes: f5918a99283 ("microvm: add device tree support.") > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/i386/microvm-dt.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Reviewed-

Re: [PATCH] microvm: add device tree support.

2021-10-14 Thread Sergio Lopez
u.mak | 1 + > hw/i386/meson.build| 2 +- > 8 files changed, 358 insertions(+), 2 deletions(-) > create mode 100644 hw/i386/microvm-dt.h > create mode 100644 hw/i386/microvm-dt.c Reviewed-by: Sergio Lopez signature.asc Description: PGP signature

Re: [Virtio-fs] [PATCH] tools/virtiofsd: Add fstatfs64 syscall to the seccomp allowlist

2021-09-14 Thread Sergio Lopez
t; Signed-off-by: Thomas Huth > --- > tools/virtiofsd/passthrough_seccomp.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Sergio Lopez > diff --git a/tools/virtiofsd/passthrough_seccomp.c > b/tools/virtiofsd/passthrough_seccomp.c > index f49ed94b5e..a3ce9f898d 100

[PATCH] virtiofsd: Reverse req_list before processing it

2021-08-24 Thread Sergio Lopez
0 zone resets ... With "g_list_reverse()": ... Jobs: 1 (f=1): [W(1)][100.0%][w=84.0MiB/s][w=21.5k IOPS][eta 00m:00s] seqwrite-libaio: (groupid=0, jobs=1): err= 0: pid=716: Tue Aug 24 13:00:15 2021 write: IOPS=21.3k, BW=83.1MiB/s (87.2MB/s)(1663MiB/20001msec); 0 zone resets ... Signed-

Re: [PATCH 11/16] microvm: Drop dead error handling in microvm_machine_state_init()

2021-07-20 Thread Sergio Lopez
On Tue, Jul 20, 2021 at 02:54:03PM +0200, Markus Armbruster wrote: > Stillborn in commit 0ebf007dda "hw/i386: Introduce the microvm machine > type". > > Cc: Sergio Lopez > Signed-off-by: Markus Armbruster > --- > hw/i386/microvm.c | 5 - > 1 file changed

Re: [PATCH v2 2/2] nbd/server: Use drained block ops to quiesce the server

2021-06-02 Thread Sergio Lopez
On Wed, Jun 02, 2021 at 03:06:02PM +0300, Vladimir Sementsov-Ogievskiy wrote: > 02.06.2021 09:05, Sergio Lopez wrote: > > Before switching between AioContexts we need to make sure that we're > > fully quiesced ("nb_requests == 0" for every client) when entering the &g

[PATCH v2 1/2] block-backend: add drained_poll

2021-06-01 Thread Sergio Lopez
-by: Sergio Lopez --- block/block-backend.c | 7 ++- include/sysemu/block-backend.h | 4 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/block/block-backend.c b/block/block-backend.c index de5496af66..8fcc2b4b3d 100644 --- a/block/block-backend.c +++ b/block/block

[PATCH v2 2/2] nbd/server: Use drained block ops to quiesce the server

2021-06-01 Thread Sergio Lopez
ests. With these changes, "blk_aio_attach()" and "blk_aio_detach()" can be reverted to be as simple as they were before f148ae7d36. RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1960137 Suggested-by: Kevin Wolf Signed-off-by: Sergio Lopez --- nbd/server.c | 82 +++

[PATCH v2 0/2] nbd/server: Quiesce server on drained section

2021-06-01 Thread Sergio Lopez
Change .drained_poll comment to reflect that the returned boolean value will be true if the device is still busy, or false otherwise - Drop yield_co_list and use recv_coroutine and read_yielding [Kevin] - Return "true" or "false" in nbd_drained_poll [Kevin] - Fix grammar i

Re: [PATCH 2/2] nbd/server: Use drained block ops to quiesce the server

2021-06-01 Thread Sergio Lopez
On Tue, Jun 01, 2021 at 04:29:07PM -0500, Eric Blake wrote: > On Tue, Jun 01, 2021 at 07:57:28AM +0200, Sergio Lopez wrote: > > Before switching between AioContexts we need to make sure that we're > > fully quiesced ("nb_requests == 0" for every client) when en

Re: [PATCH 1/2] block-backend: add drained_poll

2021-06-01 Thread Sergio Lopez
On Tue, Jun 01, 2021 at 05:59:10PM +0200, Kevin Wolf wrote: > Am 01.06.2021 um 07:57 hat Sergio Lopez geschrieben: > > Allow block backends to poll their devices/users to check if they have > > been quiesced when entering a drained section. > > > > This will be used in

Re: [PATCH 2/2] nbd/server: Use drained block ops to quiesce the server

2021-06-01 Thread Sergio Lopez
On Tue, Jun 01, 2021 at 06:08:41PM +0200, Kevin Wolf wrote: > Am 01.06.2021 um 07:57 hat Sergio Lopez geschrieben: > > Before switching between AioContexts we need to make sure that we're > > fully quiesced ("nb_requests == 0" for every client) when entering the >

[PATCH 2/2] nbd/server: Use drained block ops to quiesce the server

2021-05-31 Thread Sergio Lopez
s. With these changes, "blk_aio_attach()" and "blk_aio_detach()" can be reverted to be as simple as they were before f148ae7d36. RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1960137 Suggested-by: Kevin Wolf Signed-off-by: Sergio Lopez --- nbd/server.c | 99 +++

[PATCH 1/2] block-backend: add drained_poll

2021-05-31 Thread Sergio Lopez
Allow block backends to poll their devices/users to check if they have been quiesced when entering a drained section. This will be used in the next patch to wait for the NBD server to be completely quiesced. Suggested-by: Kevin Wolf Signed-off-by: Sergio Lopez --- block/block-backend.c

[PATCH 0/2] nbd/server: Quiesce server on drained section

2021-05-31 Thread Sergio Lopez
sh this, we add ".drained_poll" to BlockDevOps and use it in the NBD server, along with ".drained_being" and "drained_end", to coordinate the quiescing of the server while entering a drained section. Sergio Lopez (2): block-backend: add drained_poll nbd/server

Re: [PATCH v8 18/19] arm: Enable Windows 10 trusted SMCCC boot call

2021-05-27 Thread Sergio Lopez
> --- > target/arm/kvm-consts.h | 2 ++ > target/arm/psci.c | 2 ++ > 2 files changed, 4 insertions(+) Reviewed-by: Sergio Lopez signature.asc Description: PGP signature

Re: [PATCH v8 16/19] hvf: arm: Implement PSCI handling

2021-05-27 Thread Sergio Lopez
> v8: > > - Do not advance for HVC, PC is already updated by hvf > - Fix checkpatch error > --- > target/arm/cpu.c| 4 +- > target/arm/hvf/hvf.c| 123 ++-- > target/arm/hvf/trace-events | 1 + > 3 files chan

Re: [PATCH v8 19/19] hvf: arm: Handle Windows 10 SMC call

2021-05-27 Thread Sergio Lopez
; --- > > v7 -> v8: > > - fix checkpatch > --- > target/arm/hvf/hvf.c | 4 ++++ > 1 file changed, 4 insertions(+) Reviewed-by: Sergio Lopez Tested-by: Sergio Lopez signature.asc Description: PGP signature

Re: [PATCH v8 17/19] arm: Add Hypervisor.framework build target

2021-05-27 Thread Sergio Lopez
son build file > --- > meson.build| 7 +++ > target/arm/hvf/meson.build | 3 +++ > target/arm/meson.build | 2 ++ > 3 files changed, 12 insertions(+) > create mode 100644 target/arm/hvf/meson.build Reviewed-by: Sergio Lopez signature.asc Description: PGP signature

Re: [PATCH v8 14/19] arm/hvf: Add a WFI handler

2021-05-27 Thread Sergio Lopez
; - Improve comment wording > --- > accel/hvf/hvf-accel-ops.c | 5 ++- > include/sysemu/hvf_int.h | 1 + > target/arm/hvf/hvf.c | 68 +++ > 3 files changed, 71 insertions(+), 3 deletions(-) Reviewed-by: Sergio Lopez signature.asc Description: PGP signature

Re: [PATCH v8 15/19] hvf: arm: Implement -cpu host

2021-05-27 Thread Sergio Lopez
72 > target/arm/hvf_arm.h | 19 > target/arm/kvm_arm.h | 2 -- > 5 files changed, 100 insertions(+), 4 deletions(-) > create mode 100644 target/arm/hvf_arm.h Reviewed-by: Sergio Lopez Tested-by: Sergio Lopez signature.asc Description: PGP signature

Re: [PATCH v8 13/19] hvf: Add Apple Silicon support

2021-05-27 Thread Sergio Lopez
| 5 + > accel/hvf/hvf-accel-ops.c | 14 + > include/sysemu/hvf_int.h| 9 +- > meson.build | 1 + > target/arm/hvf/hvf.c| 703 ++++++++++++ > target/arm/hvf/trace-events | 10 + > 6 files changed, 741 insertions(+), 1 deletion(-) > create mode 100644 target/arm/hvf/hvf.c > create mode 100644 target/arm/hvf/trace-events Reviewed-by: Sergio Lopez Tested-by: Sergio Lopez signature.asc Description: PGP signature

Re: [PATCH v8 12/19] hvf: Simplify post reset/init/loadvm hooks

2021-05-27 Thread Sergio Lopez
> accel/hvf/hvf-accel-ops.c | 27 +++ > target/i386/hvf/x86hvf.c | 5 ++++- > 2 files changed, 11 insertions(+), 21 deletions(-) Reviewed-by: Sergio Lopez signature.asc Description: PGP signature

Re: [PATCH v8 08/19] hvf: Use cpu_synchronize_state()

2021-05-27 Thread Sergio Lopez
allows us to make hvf_cpu_synchronize_state() static. > > Signed-off-by: Alexander Graf > --- > accel/hvf/hvf-accel-ops.c | 2 +- > accel/hvf/hvf-accel-ops.h | 1 - > target/i386/hvf/x86hvf.c | 9 - > 3 files changed, 5 insertions(+), 7 deletions(-) Reviewed-

Re: [PATCH v8 11/19] hvf: Introduce hvf vcpu struct

2021-05-27 Thread Sergio Lopez
| 4 +- > target/i386/hvf/x86_task.c | 12 +-- > target/i386/hvf/x86hvf.c| 210 ++------ > 11 files changed, 248 insertions(+), 237 deletions(-) Reviewed-by: Sergio Lopez signature.asc Description: PGP signature

Re: [PATCH v8 09/19] hvf: Make synchronize functions static

2021-05-27 Thread Sergio Lopez
l/hvf/hvf-accel-ops.h | 3 --- > 2 files changed, 3 insertions(+), 6 deletions(-) Reviewed-by: Sergio Lopez signature.asc Description: PGP signature

Re: [PATCH v8 03/19] hvf: Move cpu functions into common directory

2021-05-27 Thread Sergio Lopez
+- > include/sysemu/hvf_int.h | 4 + > target/i386/hvf/hvf-i386.h | 2 - > target/i386/hvf/hvf.c | 302 > target/i386/hvf/x86hvf.h | 2 - > 5 files changed, 311 insertions(+), 307 deletions(-) Reviewed-by: Sergio Lopez signature.asc Description: PGP signature

Re: [PATCH v8 06/19] hvf: Remove use of hv_uvaddr_t and hv_gpaddr_t

2021-05-27 Thread Sergio Lopez
file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Sergio Lopez signature.asc Description: PGP signature

Re: [PATCH v8 10/19] hvf: Remove hvf-accel-ops.h

2021-05-27 Thread Sergio Lopez
/hvf-accel-ops.h | 17 - > include/sysemu/hvf_int.h | 1 + > target/i386/hvf/hvf.c | 2 -- > 4 files changed, 1 insertion(+), 21 deletions(-) > delete mode 100644 accel/hvf/hvf-accel-ops.h Reviewed-by: Sergio Lopez signature.asc Description: PGP signature

Re: [PATCH v8 07/19] hvf: Split out common code on vcpu init and destroy

2021-05-27 Thread Sergio Lopez
> Signed-off-by: Alexander Graf > --- > accel/hvf/hvf-accel-ops.c | 30 ++ > accel/hvf/hvf-accel-ops.h | 2 -- > include/sysemu/hvf_int.h | 2 ++ > target/i386/hvf/hvf.c | 23 ++- > 4 files changed, 34 insertions(+), 23 del

Re: [PATCH v8 02/19] hvf: Move vcpu thread functions into common directory

2021-05-27 Thread Sergio Lopez
d | 1 + > target/i386/hvf/meson.build| 1 - > target/i386/hvf/x86hvf.c | 2 +- > 5 files changed, 2 insertions(+), 2 deletions(-) > rename {target/i386 => accel}/hvf/hvf-accel-ops.c (100%) > rename {target/i386 => accel}/hv

Re: [PATCH v8 05/19] hvf: Make hvf_set_phys_mem() static

2021-05-27 Thread Sergio Lopez
les changed, 1 insertion(+), 2 deletions(-) Reviewed-by: Sergio Lopez signature.asc Description: PGP signature

Re: [PATCH v8 04/19] hvf: Move hvf internal definitions into common header

2021-05-27 Thread Sergio Lopez
--- > 2 files changed, 31 insertions(+), 30 deletions(-) Reviewed-by: Sergio Lopez signature.asc Description: PGP signature

  1   2   3   4   5   6   >