[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/3] ui/gtk: new param monitor to specify target monitor for
From: |
Markus Armbruster |
Subject: |
Re: [PATCH 1/3] ui/gtk: new param monitor to specify target monitor for launching QEMU |
Date: |
Tue, 17 May 2022 09:46:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Gerd Hoffmann <kraxel@redhat.com> writes:
> On Mon, May 09, 2022 at 02:31:05PM -0700, Dongwon Kim wrote:
>> Daniel,
>>
>> I found a way to make the monitor arguments in array type (['uint32']).
>> And I know how to retrieve monitor values from it but I could not find
>> how to pass the monitor values when starting qemu. Like,
>>
>> qemu-system-x86_64 ..... gtk,gl=on.....monitor=????
>>
>> I tried several different things but it keeps getting error saying
>> Invalid parameter type, expected 'array'.
>>
>> Do you know how to pass this arg?
>
> qemu accepts json for -display, that should work:
>
> -display '{ "type": "gtk", "monitor": [ 1, 2 ] }'
>
> Not sure whenever there is some way to specify arrays using
> the -display gtk,$options style.
There is, but it's somewhat ugly:
-display gtk,monitor.0=1,monitor.1=2
See util/keyval.c.