Re: [PATCH] hw/misc/ivshmem: Use 32-bit addressing for the memory BAR

2023-12-09 Thread Geoffrey McRae
things working. On 2023-04-19 14:39, Geoffrey McRae wrote: Since OVMF 202211 the bios maps BAR2 to an upper address which has the undesirable effect of making it impossible to map the memory under Linux due to it exceeding the maximum permissible range for hotplug memory (see

[PATCH] hw/misc/ivshmem: Use 32-bit addressing for the memory BAR

2023-04-18 Thread Geoffrey McRae
configuring the BAR as 32-bit. Signed-off-by: Geoffrey McRae --- hw/misc/ivshmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index d66d912172..2f8f7e2030 100644 --- a/hw/misc/ivshmem.c +++ b/hw/misc/ivshmem.c @@ -913,7 +913,7

Re: Windows QXL Display Driver

2022-05-23 Thread Geoffrey McRae
On 2022-05-24 01:28, Gerd Hoffmann wrote: On Tue, May 24, 2022 at 12:35:49AM +1000, Geoffrey McRae wrote: Hi Gerd, Over the past few weeks I have been adding spice display support to Looking Glass as a fallback mechanism for during system boot (or diags) before our application is loaded in

Windows QXL Display Driver

2022-05-23 Thread Geoffrey McRae
fine until you load the QXL display driver. The issue is that once the driver is loaded windows removes the option to duplicate the output. Is this something that needs to be tweaked in the driver to allow this? or is there a technical reason why this can't be done? Kind Regards, Geoffrey McRae

[PATCH] audio: allow spice buffer_length to be adjusted

2022-01-08 Thread Geoffrey McRae
Signed-off-by: Geoffrey McRae --- audio/spiceaudio.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/audio/spiceaudio.c b/audio/spiceaudio.c index a8d370fe6f..0c44bbe836 100644 --- a/audio/spiceaudio.c +++ b/audio/spiceaudio.c @@ -76,7 +76,7 @@ static void

Re: [PATCH v2] Autoconnect jack ports by default

2021-02-24 Thread Geoffrey McRae
uides/documentation on how to use a generic jack client. IMO the better solution here is simply better documentation, perhaps even a known working sample setup. On 2021-02-25 09:33, Christian Schoenebeck wrote: On Mittwoch, 24. Februar 2021 23:04:47 CET Geoffrey McRae wrote: This goes against ho

Re: [PATCH v2] Autoconnect jack ports by default

2021-02-24 Thread Geoffrey McRae
This goes against how all standard jack clients work, a new jack client should not auto-connect at all unless explicitly configured to as if there is an existing audio diagram configured (which is 99% of the time) it will cause unexpected/undesired behavior. Jack is not supposed to be an 'auto

[PATCH v10 0/1] audio/jack: fix use after free segfault

2020-11-07 Thread Geoffrey McRae
v10: * fixed typo in commit message * qjack_shutdown_lock is now static Geoffrey McRae (1): audio/jack: fix use after free segfault audio/jackaudio.c | 50 +++ 1 file changed, 37 insertions(+), 13 deletions(-) -- 2.20.1

[PATCH v10 1/1] audio/jack: fix use after free segfault

2020-11-07 Thread Geoffrey McRae
This change registers a bottom handler to close the JACK client connection when a server shutdown signal is received. Without this libjack2 attempts to "clean up" old clients and causes a use after free segfault. Signed-off-by: Geoffrey McRae --- audio/jackau

[PATCH v9 1/1] audio/jack: fix use after free segfault

2020-11-06 Thread Geoffrey McRae
This change registers a bottom handler to close the JACK client connection when a server shutdown signal is recieved. Without this libjack2 attempts to "clean up" old clients and causes a use after free segfault. Signed-off-by: Geoffrey McRae --- audio/jackau

[PATCH v8 0/1] audio/jack: fix use after free segfault

2020-11-06 Thread Geoffrey McRae
v9: * switch to using a global shutdown mutex Geoffrey McRae (1): audio/jack: fix use after free segfault audio/jackaudio.c | 50 +++ 1 file changed, 37 insertions(+), 13 deletions(-) -- 2.20.1

[PATCH] hw/core/qdev-properties-system: allow bus addresses > 0x1f

2020-11-06 Thread Geoffrey McRae
the original maximum value of 0xff Signed-off-by: Geoffrey McRae --- hw/core/qdev-properties-system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-properties-system.c index b81a4e8d14..e62644bc69 100644 --- a/hw/core/qdev

Re: [PATCH v8 1/1] audio/jack: fix use after free segfault

2020-08-21 Thread Geoffrey McRae
On 2020-08-22 03:47, Paolo Bonzini wrote: On 21/08/20 19:34, Christian Schoenebeck wrote: static void qjack_fini_out(HWVoiceOut *hw) { QJackOut *jo = (QJackOut *)hw; qjack_client_fini(&jo->c); + +qemu_bh_delete(jo->c.shutdown_bh); Paolo wrapped that qemu_bh_delete() call insi

[PATCH v8 1/1] audio/jack: fix use after free segfault

2020-08-21 Thread Geoffrey McRae
This change registers a bottom handler to close the JACK client connection when a server shutdown signal is recieved. Without this libjack2 attempts to "clean up" old clients and causes a use after free segfault. Signed-off-by: Geoffrey McRae --- audio/jackau

[PATCH v8 0/1] audio/jack: fix use after free segfault

2020-08-21 Thread Geoffrey McRae
v8: * use a local mutex instead of the BQL Geoffrey McRae (1): audio/jack: fix use after free segfault audio/jackaudio.c | 55 --- 1 file changed, 42 insertions(+), 13 deletions(-) -- 2.20.1

Re: [PATCH v5 1/1] audio/jack: fix use after free segfault

2020-08-21 Thread Geoffrey McRae
My suggestion is to work towards protecting the audio code with its own mutex(es) and ignore the existence of the BQL for subsystems that can do so (audio is a prime candidate). Also please add comments to audio_int.h about which functions are called from other threads than the QEMU main t

Re: [PATCH v7 0/1] audio/jack: fix use after free segfault

2020-08-19 Thread Geoffrey McRae
Forgot to update this cover letter too, sorry for the spam, there are no changes to spice-input.c anymore On 2020-08-20 10:27, Geoffrey McRae wrote: v7: * removed accidental inclusion of spice-input changes Geoffrey McRae (1): audio/jack: fix use after free segfault audio/jackaudio.c

[PATCH v6 0/1] audio/jack: fix use after free segfault

2020-08-19 Thread Geoffrey McRae
v6: * delete the QEMUBH when finished * fix possible race by taking the iothread mutex * removed whitespace changes Geoffrey McRae (1): audio/jack: fix use after free segfault audio/jackaudio.c | 51 +-- ui/spice-input.c | 2 ++ 2 files

[PATCH v6 1/1] audio/jack: fix use after free segfault

2020-08-19 Thread Geoffrey McRae
This change registers a bottom handler to close the JACK client connection when a server shutdown signal is recieved. Without this libjack2 attempts to "clean up" old clients and causes a use after free segfault. Signed-off-by: Geoffrey McRae --- audio/jackau

[PATCH v7 1/1] audio/jack: fix use after free segfault

2020-08-19 Thread Geoffrey McRae
This change registers a bottom handler to close the JACK client connection when a server shutdown signal is recieved. Without this libjack2 attempts to "clean up" old clients and causes a use after free segfault. Signed-off-by: Geoffrey McRae --- audio/jackau

[PATCH v7 0/1] audio/jack: fix use after free segfault

2020-08-19 Thread Geoffrey McRae
v7: * removed accidental inclusion of spice-input changes Geoffrey McRae (1): audio/jack: fix use after free segfault audio/jackaudio.c | 51 +-- ui/spice-input.c | 2 ++ 2 files changed, 38 insertions(+), 15 deletions(-) -- 2.20.1

Re: [PATCH] audio/jack: fix use after free segfault

2020-08-19 Thread Geoffrey McRae
On 2020-08-20 01:51, Christian Schoenebeck wrote: On Mittwoch, 19. August 2020 14:51:52 CEST Geoffrey McRae wrote: >> > What latencies do you achieve BTW with Windows guests? >> >> Never tested, it's not the reason why I use jack. > > Surpring that you never ch

Re: [PATCH v5 1/1] audio/jack: fix use after free segfault

2020-08-19 Thread Geoffrey McRae
On 2020-08-20 01:21, Christian Schoenebeck wrote: On Mittwoch, 19. August 2020 08:29:39 CEST Geoffrey McRae wrote: This change registers a bottom handler to close the JACK client connection when a server shutdown signal is recieved. Without this libjack2 attempts to "clean up" o

Re: [PATCH] audio/jack: fix use after free segfault

2020-08-19 Thread Geoffrey McRae
On 2020-08-19 22:41, Christian Schoenebeck wrote: On Mittwoch, 19. August 2020 13:45:33 CEST Geoffrey McRae wrote: > I still don't quite get how this correlates. So you are forcing a > restart of > jackd on host side in between, for what purpose? To simulate the > Windo

Re: [PATCH] audio/jack: fix use after free segfault

2020-08-19 Thread Geoffrey McRae
On 2020-08-19 21:30, Christian Schoenebeck wrote: On Mittwoch, 19. August 2020 00:20:07 CEST Geoffrey McRae wrote: > Could you please describe in more detail how you ran into this > situation with > your 2nd audio device? Sure. Run a Windows guest with two audio devices, let it boot

[PATCH v5 1/1] audio/jack: fix use after free segfault

2020-08-18 Thread Geoffrey McRae
This change registers a bottom handler to close the JACK client connection when a server shutdown signal is recieved. Without this libjack2 attempts to "clean up" old clients and causes a use after free segfault. Signed-off-by: Geoffrey McRae --- audio/jackau

[PATCH v5 0/1] audio/jack: fix use after free segfault

2020-08-18 Thread Geoffrey McRae
v5: * removed hanging dlfcn include from v3 Geoffrey McRae (1): audio/jack: fix use after free segfault audio/jackaudio.c | 29 - 1 file changed, 20 insertions(+), 9 deletions(-) -- 2.20.1

[PATCH v4 0/1] audio/jack: fix use after free segfault

2020-08-18 Thread Geoffrey McRae
v4: Use a bottom handler for shutdown as suggested by Gerd Hoffman Geoffrey McRae (1): audio/jack: fix use after free segfault audio/jackaudio.c | 30 +- configure | 4 +++- 2 files changed, 24 insertions(+), 10 deletions(-) -- 2.20.1

[PATCH v4 1/1] audio/jack: fix use after free segfault

2020-08-18 Thread Geoffrey McRae
This change registers a bottom handler to close the JACK client connection when a server shutdown signal is recieved. Without this libjack2 attempts to "clean up" old clients and causes a use after free segfault. Signed-off-by: Geoffrey McRae --- audio/jackau

Re: [PATCH v2] audio/jack: fix use after free segfault

2020-08-18 Thread Geoffrey McRae
On 2020-08-19 15:28, Geoffrey McRae wrote: On 2020-08-19 15:04, Gerd Hoffmann wrote: Hi, As JACK1 and JACK2 are interchangeable and JACK2 has "cleanup" routine that JACK1 does not have, we need to determine which version is in use at runtime. Unfortunatly there is no way to deter

Re: [PATCH v2] audio/jack: fix use after free segfault

2020-08-18 Thread Geoffrey McRae
On 2020-08-19 15:04, Gerd Hoffmann wrote: Hi, As JACK1 and JACK2 are interchangeable and JACK2 has "cleanup" routine that JACK1 does not have, we need to determine which version is in use at runtime. Unfortunatly there is no way to determine which is in use other then to look for symbols that a

Re: [PATCH v3 1/1] audio/jack: fix use after free segfault

2020-08-18 Thread Geoffrey McRae
On 2020-08-19 14:46, Philippe Mathieu-Daudé wrote: On 8/19/20 5:36 AM, Geoffrey McRae wrote: On 2020-08-19 13:32, Philippe Mathieu-Daudé wrote: Hi Geoffrey, On 8/19/20 3:18 AM, Geoffrey McRae wrote: The client may have been freed already by a secondary audio device recovering its

Re: [PATCH v3 1/1] audio/jack: fix use after free segfault

2020-08-18 Thread Geoffrey McRae
On 2020-08-19 13:32, Philippe Mathieu-Daudé wrote: Hi Geoffrey, On 8/19/20 3:18 AM, Geoffrey McRae wrote: The client may have been freed already by a secondary audio device recovering its session as JACK2 has some cleanup code to work around broken clients, which doesn't account for

[PATCH v3 0/1] audio/jack: fix use after free segfault

2020-08-18 Thread Geoffrey McRae
Fixed accidental eof newline strip from `configure` Geoffrey McRae (1): audio/jack: fix use after free segfault audio/jackaudio.c | 37 - configure | 4 +++- 2 files changed, 39 insertions(+), 2 deletions(-) -- 2.20.1

[PATCH v3 1/1] audio/jack: fix use after free segfault

2020-08-18 Thread Geoffrey McRae
all memory leak if the jack server is restarted. This however is better then the alternative which would be a use after free segfault. Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 37 - configure | 4 +++- 2 files changed, 39 insertions(

[PATCH v2] audio/jack: fix use after free segfault

2020-08-18 Thread Geoffrey McRae
all memory leak if the jack server is restarted. This however is better then the alternative which would be a use after free segfault. Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 37 - configure | 5 +++-- 2 files changed, 39 insertions(

Re: [PATCH] audio/jack: fix use after free segfault

2020-08-18 Thread Geoffrey McRae
On 2020-08-19 04:11, Christian Schoenebeck wrote: On Dienstag, 18. August 2020 14:40:36 CEST Geoffrey McRae wrote: Due to a ridiculous commit in the Jack library, the client may have been freed already by a secondary audio device recovering its session. https://github.com/jackaudio/jack2

[PATCH] audio/jack: fix use after free segfault

2020-08-18 Thread Geoffrey McRae
ted in the jack library this will need to be revisited. Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/audio/jackaudio.c b/audio/jackaudio.c index 72ed7c4929..e8faf1bb89 100644 --- a/audio/jackaudio.c +

Re: [PATCH 5/6] audio/jack: honour the enable state of the audio device

2020-06-22 Thread Geoffrey McRae
On 2020-06-22 19:05, Gerd Hoffmann wrote: On Sun, Jun 21, 2020 at 02:06:25PM +1000, Geoffrey McRae wrote: > Can you stop the stream without closing the connection? Not as far as I can tell, it seems the JACK API doesn't allow for this in a way that is useful to us. What happen

Re: [PATCH 5/6] audio/jack: honour the enable state of the audio device

2020-06-20 Thread Geoffrey McRae
On 2020-06-19 19:29, Gerd Hoffmann wrote: Hi, > Hmm, I guess feeding silence into jack needs some cpu cycles? > Maybe add a timer to close the jack server connection? Keep the > connection open for re-use for a while, but in case the guest stops > playing sound altogether close the jack con

Re: [PATCH 5/6] audio/jack: honour the enable state of the audio device

2020-06-17 Thread Geoffrey McRae
On 2020-06-17 22:44, Gerd Hoffmann wrote: On Sat, Jun 13, 2020 at 02:05:17PM +1000, Geoffrey McRae wrote: When the guest closes the audio device we must start dropping input samples from JACK and zeroing the output buffer samples. Failure to do so causes sound artifacts during operations

[PATCH 4/6] audio/jack: do not remove ports when finishing

2020-06-13 Thread Geoffrey McRae
breakdown with the server the client library waits forever for a response to the unregister request. Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/audio/jackaudio.c b/audio/jackaudio.c index 58c7344497..249cbd3265 100644 --- a/audio

[PATCH 3/6] audio/jack: remove invalid set of input support bool

2020-06-13 Thread Geoffrey McRae
what this was for when the audodev was initially developed. Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/audio/jackaudio.c b/audio/jackaudio.c index fb8efd7af7..58c7344497 100644 --- a/audio/jackaudio.c +++ b/audio/jackaudio.c @@ -607,9

[PATCH 1/6] audio/jack: fix invalid minimum buffer size check

2020-06-13 Thread Geoffrey McRae
d-off-by: Geoffrey McRae --- audio/jackaudio.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/audio/jackaudio.c b/audio/jackaudio.c index 722ddb1dfe..d0b6f748f2 100644 --- a/audio/jackaudio.c +++ b/audio/jackaudio.c @@ -434,17 +434,6 @@ stati

[PATCH 6/6] audio/jack: simplify the re-init code path

2020-06-13 Thread Geoffrey McRae
Instead of checking for the audodev state in each code path, centralize the check into the initialize function itself to make it safe to call it at any time. Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a

[PATCH 0/6] audio/jack: fixes to overall jack behaviour

2020-06-13 Thread Geoffrey McRae
This patch set addresses several issues that cause inconsistent behaviour in the guest when the sound device is stopped and started or the JACK server stops responding on the host. Geoffrey McRae (6): audio/jack: fix invalid minimum buffer size check audio/jack: remove unused stopped state

[PATCH 2/6] audio/jack: remove unused stopped state

2020-06-13 Thread Geoffrey McRae
Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 4 1 file changed, 4 deletions(-) diff --git a/audio/jackaudio.c b/audio/jackaudio.c index d0b6f748f2..fb8efd7af7 100644 --- a/audio/jackaudio.c +++ b/audio/jackaudio.c @@ -38,7 +38,6 @@ struct QJack; typedef enum QJackState

[PATCH 5/6] audio/jack: honour the enable state of the audio device

2020-06-13 Thread Geoffrey McRae
disabled. Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 29 + 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/audio/jackaudio.c b/audio/jackaudio.c index 249cbd3265..b2b53985ae 100644 --- a/audio/jackaudio.c +++ b/audio/jackaudio.c @@ -56,7 +56,7

Re: [PATCH 0/6] audio/jack: fixes to overall jack behaviour

2020-06-12 Thread Geoffrey McRae
Thanks, still learning how best to submit these things :) Is it worth re-sending this again as per the below? On 2020-06-12 17:11, Gerd Hoffmann wrote: On Fri, Jun 12, 2020 at 10:12:37AM +1000, Geoffrey McRae wrote: Sorry for the spam, resubmitted due to missing subject on this cover letter

[PATCH 5/6] audio/jack: honour the enable state of the audio device

2020-06-11 Thread Geoffrey McRae
Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 29 + 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/audio/jackaudio.c b/audio/jackaudio.c index 249cbd3265..b2b53985ae 100644 --- a/audio/jackaudio.c +++ b/audio/jackaudio.c @@ -56,7 +56,7

[PATCH 6/6] audio/jack: simplify the re-init code path

2020-06-11 Thread Geoffrey McRae
Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/audio/jackaudio.c b/audio/jackaudio.c index b2b53985ae..72ed7c4929 100644 --- a/audio/jackaudio.c +++ b/audio/jackaudio.c @@ -395,6 +395,10 @@ static int

[PATCH 4/6] audio/jack: do not remove ports when finishing

2020-06-11 Thread Geoffrey McRae
This fixes a hang when there is a communications issue with the JACK server. Simply closing the connection is enough to completely clean up and as such we do not need to remove the ports first. Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 3 --- 1 file changed, 3 deletions(-) diff

[PATCH 3/6] audio/jack: remove invalid set of input support bool

2020-06-11 Thread Geoffrey McRae
Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/audio/jackaudio.c b/audio/jackaudio.c index fb8efd7af7..58c7344497 100644 --- a/audio/jackaudio.c +++ b/audio/jackaudio.c @@ -607,9 +607,6 @@ static int qjack_thread_creator

[PATCH 2/6] audio/jack: remove unused stopped state

2020-06-11 Thread Geoffrey McRae
Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 4 1 file changed, 4 deletions(-) diff --git a/audio/jackaudio.c b/audio/jackaudio.c index d0b6f748f2..fb8efd7af7 100644 --- a/audio/jackaudio.c +++ b/audio/jackaudio.c @@ -38,7 +38,6 @@ struct QJack; typedef enum QJackState

[PATCH 0/6] audio/jack: fixes to overall jack behaviour

2020-06-11 Thread Geoffrey McRae
stops responding on the host. Geoffrey McRae (6): audio/jack: fix invalid minimum buffer size check audio/jack: remove unused stopped state audio/jack: remove invalid set of input support bool audio/jack: do not remove ports when finishing audio/jack: honour the enable state of the

[PATCH 1/6] audio/jack: fix invalid minimum buffer size check

2020-06-11 Thread Geoffrey McRae
Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/audio/jackaudio.c b/audio/jackaudio.c index 722ddb1dfe..d0b6f748f2 100644 --- a/audio/jackaudio.c +++ b/audio/jackaudio.c @@ -434,17 +434,6 @@ static

[PATCH 3/6] audio/jack: remove invalid set of input support bool

2020-06-11 Thread Geoffrey McRae
Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/audio/jackaudio.c b/audio/jackaudio.c index fb8efd7af7..58c7344497 100644 --- a/audio/jackaudio.c +++ b/audio/jackaudio.c @@ -607,9 +607,6 @@ static int qjack_thread_creator

[PATCH 4/6] audio/jack: do not remove ports when finishing

2020-06-11 Thread Geoffrey McRae
This fixes a hang when there is a communications issue with the JACK server. Simply closing the connection is enough to completely clean up and as such we do not need to remove the ports first. Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 3 --- 1 file changed, 3 deletions(-) diff

[PATCH 2/6] audio/jack: remove unused stopped state

2020-06-11 Thread Geoffrey McRae
Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 4 1 file changed, 4 deletions(-) diff --git a/audio/jackaudio.c b/audio/jackaudio.c index d0b6f748f2..fb8efd7af7 100644 --- a/audio/jackaudio.c +++ b/audio/jackaudio.c @@ -38,7 +38,6 @@ struct QJack; typedef enum QJackState

[PATCH 5/6] audio/jack: honour the enable state of the audio device

2020-06-11 Thread Geoffrey McRae
Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 29 + 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/audio/jackaudio.c b/audio/jackaudio.c index 249cbd3265..b2b53985ae 100644 --- a/audio/jackaudio.c +++ b/audio/jackaudio.c @@ -56,7 +56,7

[PATCH 1/6] audio/jack: fix invalid minimum buffer size check

2020-06-11 Thread Geoffrey McRae
Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/audio/jackaudio.c b/audio/jackaudio.c index 722ddb1dfe..d0b6f748f2 100644 --- a/audio/jackaudio.c +++ b/audio/jackaudio.c @@ -434,17 +434,6 @@ static

[PATCH 6/6] audio/jack: simplify the re-init code path

2020-06-11 Thread Geoffrey McRae
Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/audio/jackaudio.c b/audio/jackaudio.c index b2b53985ae..72ed7c4929 100644 --- a/audio/jackaudio.c +++ b/audio/jackaudio.c @@ -395,6 +395,10 @@ static int

[PATCH 0/6] *** SUBJECT HERE ***

2020-06-11 Thread Geoffrey McRae
This patch set addresses several issues that cause inconsistent behaviour in the guest when the sound device is stopped and started or the JACK server stops responding on the host. Geoffrey McRae (6): audio/jack: fix invalid minimum buffer size check audio/jack: remove unused stopped state

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

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

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

2020-05-11 Thread Geoffrey McRae
On 2020-05-12 00:53, Stefan Hajnoczi wrote: On Wed, Apr 29, 2020 at 03:53:58PM +1000, Geoffrey McRae wrote: This commit adds a new audiodev backend to allow QEMU to use JACK as both an audio sink and source. Signed-off-by: Geoffrey McRae --- audio/Makefile.objs| 5 + audio/audio.c

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

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

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

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

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

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

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

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

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

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

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

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

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

2020-04-29 Thread Geoffrey McRae
On 2020-04-29 22:59, Eric Blake wrote: On 4/29/20 12:53 AM, Geoffrey McRae wrote: This commit adds a new audiodev backend to allow QEMU to use JACK as both an audio sink and source. Signed-off-by: Geoffrey McRae --- audio/Makefile.objs| 5 + audio/audio.c | 1 + audio

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

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

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

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

[PATCH] audio/jack: add JACK client audiodev

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

[Bug 1722884] Re: keyboard input while mouse moving triggers mouse failure

2020-02-21 Thread Geoffrey McRae
I tracked this down and fixed it last year, your issue is unrelated. https://github.com/qemu/qemu/commit/143c04c7e0639e53086519592ead15d2556bfbf2 #diff-3b5bd599c018d558b135bd19647a00c6 https://github.com/qemu/qemu/commit/7abe7eb29494b4e4a11ec99ae5623083409a2f1e #diff-3b5bd599c018d558b135bd19647a0

High rate of MMIO causes KVM stall

2020-01-26 Thread Geoffrey McRae
timer,hv_spinlocks=0x1fff,hv_vendor_id=lakeuv283713,kvm=off,l3-cache=on,-hypervisor,migratable=no,+invtsc,topoext If further details are required please advise. Kind Regards, Geoffrey McRae HostFission https://hostfission.com == TRACE == Thread 12 (Thread 0x7f3ceb5fe700 (LWP 77094)

Re: guest / host buffer sharing ...

2019-11-20 Thread Geoffrey McRae
On 2019-11-20 23:13, Tomasz Figa wrote: Hi Geoffrey, On Thu, Nov 7, 2019 at 7:28 AM Geoffrey McRae wrote: On 2019-11-06 23:41, Gerd Hoffmann wrote: > On Wed, Nov 06, 2019 at 05:36:22PM +0900, David Stevens wrote: >> > (1) The virtio device >> >

Re: guest / host buffer sharing ...

2019-11-06 Thread Geoffrey McRae
On 2019-11-06 23:41, Gerd Hoffmann wrote: On Wed, Nov 06, 2019 at 05:36:22PM +0900, David Stevens wrote: > (1) The virtio device > = > > Has a single virtio queue, so the guest can send commands to register > and unregister buffers. Buffers are allocated in guest ram. Ea

Re: guest / host buffer sharing ...

2019-11-05 Thread Geoffrey McRae
Hi Gerd. On 2019-11-05 21:54, Gerd Hoffmann wrote: Hi folks, The issue of sharing buffers between guests and hosts keeps poping up again and again in different contexts. Most recently here: https://www.mail-archive.com/qemu-devel@nongnu.org/msg656685.html So, I'm grabbing the recipient list

[Qemu-devel] [Bug 1839060] Re: HDA device non functional in Windows 10 1903

2019-09-01 Thread Geoffrey McRae
Hi, I am trying to dig into this issue, can you please provide the verb debug trace from the working version of windows. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1839060 Title: HDA device non

[Qemu-devel] [PATCHv3 2/2] ps2: Fix mouse stream corruption due to lost data

2018-05-07 Thread Geoffrey McRae via Qemu-devel
where windows guests drop the mouse device entirely requring the guest to be restarted. Signed-off-by: Geoffrey McRae --- hw/input/ps2.c | 124 + include/hw/input/ps2.h | 5 ++ 2 files changed, 100 insertions(+), 29 deletions(-) diff

[Qemu-devel] [PATCHv3 1/2] ps2: Clear the PS/2 queue and obey disable

2018-05-07 Thread Geoffrey McRae via Qemu-devel
nse from the command amongst other streaming data, such as mouse or keyboard events. Standard practice is for the guest to disable the device and then issue the identify command, so this must be obeyed. Signed-off-by: Geoffrey McRae --- hw/input/ps2.c | 11 +++ 1 file changed, 11 insertions

[Qemu-devel] [PATCHv2 2/2] ps2: Fix mouse stream corruption due to lost data

2018-05-07 Thread Geoffrey McRae via Qemu-devel
where windows guests drop the mouse device entirely requring the guest to be restarted. Signed-off-by: Geoffrey McRae --- hw/input/ps2.c | 120 + include/hw/input/ps2.h | 5 +++ 2 files changed, 96 insertions(+), 29 deletions(-) diff

[Qemu-devel] [PATCHv2 1/2] ps2: Clear the PS/2 queue and obey disable

2018-05-07 Thread Geoffrey McRae via Qemu-devel
nse from the command amongst other streaming data, such as mouse or keyboard events. Standard practice is for the guest to disable the device and then issue the identify command, so this must be obeyed. Signed-off-by: Geoffrey McRae --- hw/input/ps2.c | 7 +++ 1 file changed, 7 insertions(+) diff

[Qemu-devel] (resend)[PATCH 2/2] ps2: Fix mouse stream corruption due to lost data

2018-05-07 Thread Geoffrey McRae via Qemu-devel
where windows guests drop the mouse device entirely requring the guest to be restarted. Signed-off-by: Geoffrey McRae --- hw/input/pckbd.c | 6 +-- hw/input/ps2.c | 160 +-- 2 files changed, 110 insertions(+), 56 deletions(-) diff --git a

[Qemu-devel] (resend)[PATCH 1/2] ps2: Clear the queue on PS/2 mouse reset and obey device disable

2018-05-07 Thread Geoffrey McRae via Qemu-devel
This allows guest's to correctly reinitialize and identify the mouse should the guest decide to re-scan or reset during mouse input events. Signed-off-by: Geoffrey McRae --- hw/input/ps2.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/input/ps2.c b/hw/input/ps2.c index 06f5d

[Qemu-devel] [Bug 1722884] Re: keyboard input while mouse moving triggers mouse failure

2017-12-19 Thread Geoffrey McRae
This bug needs some attention, we just released Looking Glass which relies heavily on the relative input mode of SPICE which in turn relies heavily on the virtual i8042 controller. This project has the ability to completely eliminate the need to dual boot a Linux machine with windows and is gaining

[Qemu-devel] [Bug 1722884] Re: keyboard input while mouse moving triggers mouse failure

2017-10-29 Thread Geoffrey McRae
I believe I am onto the cause of this issue, because the input events are coming from a multi threaded source (in my instance spice) keyboard and mouse input share common code paths without any thread interlocking. Since keyboard input takes priority over mouse, when more mouse events are being ha

Re: [Qemu-devel] ivshmem Windows Driver

2017-10-16 Thread Geoffrey McRae via Qemu-devel
On 2017-10-17 02:20, Eric Blake wrote: On 10/15/2017 04:32 AM, geoff--- via Qemu-devel wrote: Hi All, I am writing some code that needs to share a block of ram between a Windows guest and Linux host. For this I am using the ivshmem device and I have written a very primitive driver for windows

Re: [Qemu-devel] ivshmem Windows Driver

2017-10-15 Thread Geoffrey McRae via Qemu-devel
On 2017-10-15 23:24, Yan Vugenfirer wrote: On 15 Oct 2017, at 15:21, ge...@hostfission.com wrote: Hi Yan, Thank you for the information. I am rather new to Windows Driver development and learning as I go, so this may take some time, but since the driver only needs to perform very basic functi

Re: [Qemu-devel] ivshmem Windows Driver

2017-10-15 Thread Geoffrey McRae via Qemu-devel
Hi Yan, Thank you for the information. I am rather new to Windows Driver development and learning as I go, so this may take some time, but since the driver only needs to perform very basic functions I do not see this as being too much of a challenge. -Geoff On 2017-10-15 22:14, Yan Vugenfir

[Qemu-devel] [Bug 1722884] Re: keyboard input while mouse moving triggers mouse failure

2017-10-11 Thread Geoffrey McRae
Further to this, it appears to be a race condition with reading from the i8042 controller. I have turned on debugging of PS2 and KBD and filtered out the event that causes the issue. I have split the below up to show the valid reads for the mouse and then the sequence that triggers a reset when the

[Qemu-devel] [Bug 1722884] [NEW] keyboard input while mouse moving triggers mouse failure

2017-10-11 Thread Geoffrey McRae
Public bug reported: When QEMU is getting a ton of mouse input events if keys are pressed on the keyboard the scan code will be corrupted causing erroneous behavior. I have confirmed this problem in the latest version in git (530049bc1dcc24c1178a29d99ca08b6dd08413e0). After the erroneous behavior

[Qemu-devel] [Bug 1722884] Re: keyboard input while mouse moving triggers mouse failure

2017-10-11 Thread Geoffrey McRae
Here is a backtrace of the PS2 reset event: #0 ps2_write_mouse (opaque=0x55804518ae30, val=255) at /home/geoff/Projects/qemu/qemu/hw/input/ps2.c:1033 #1 0x5580420e1dd9 in kbd_write_data (opaque=0x558045147aa0, addr=0, val=255, size=1) at /home/geoff/Projects/qemu/qemu/hw/input/pckbd.c:357