[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL v3 09/25] ui/console: allow to override the default VC
|
From: |
David Woodhouse |
|
Subject: |
Re: [PULL v3 09/25] ui/console: allow to override the default VC |
|
Date: |
Thu, 09 Nov 2023 11:45:15 +0000 |
|
User-agent: |
Evolution 3.44.4-0ubuntu2 |
On Thu, 2023-11-09 at 19:34 +0800, Stefan Hajnoczi wrote:
> On Thu, 9 Nov 2023 at 19:10, David Woodhouse <dwmw2@infradead.org> wrote:
> >
> > On Tue, 2023-11-07 at 14:15 +0400, marcandre.lureau@redhat.com wrote:
> > > From: Marc-André Lureau <marcandre.lureau@redhat.com>
> > >
> > > If a display is backed by a specialized VC, allow to override the
> > > default "vc:80Cx24C".
> > >
> > > As suggested by Paolo, if the display doesn't implement a VC (get_vc()
> > > returns NULL), use a fallback that will use a muxed console on stdio.
> > >
> > > This changes the behaviour of "qemu -display none", to create a muxed
> > > serial/monitor by default (on TTY & not daemonized).
> > >
> > > Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> > > Reviewed-by: Thomas Huth <thuth@redhat.com>
> >
> > Hrm. This breaks the command line documented at
> > https://qemu-project.gitlab.io/qemu/system/i386/xen.html
> >
> > $ ./qemu-system-x86_64 --accel
> > kvm,xen-version=0x40011,kernel-irqchip=split \
> > -display none -chardev stdio,mux=on,id=char0,signal=off -mon char0 \
> > -device xen-console,chardev=char0 -drive file=${GUEST_IMAGE},if=xen
> >
> > qemu-system-x86_64: cannot use stdio by multiple character devices
> > qemu-system-x86_64: could not connect serial device to character backend
> > 'stdio'
> >
> > Can we make it create a Xen console by default, instead of a serial
> > port? And/or make it *not* use stdio if something else on the command
> > line already does?
>
> I have filed this in QEMU's bug tracker so it's not forgotten:
> https://gitlab.com/qemu-project/qemu/-/issues/1974
>
> Here is the list of open 8.2 bugs:
> https://gitlab.com/qemu-project/qemu/-/milestones/10
>
> Stefan
Thanks. Added a link there to the patch I just sent, along with a note
suggesting that perhaps we should go a bit further.
We're changing the QEMU behaviour in 8.2 to add these new devices using
stdio, and *failing* if something else on the command line already used
stdio.
My patch avoids adding a serial port if there's already a xen-console,
which is all well and good. But surely we shouldn't *fail* if something
else is already using stdio; we should just *not* add the new default
serial port? This might break other command lines which use stdio but
*not* for a serial port? This breaks too:
$ ./qemu-system-x86_64 -display none -chardev stdio,id=char0
qemu-system-x86_64: cannot use stdio by multiple character devices
qemu-system-x86_64: could not connect serial device to character backend
'mon:stdio'
smime.p7s
Description: S/MIME cryptographic signature
- [PULL v3 04/25] ui: add pixman-minimal.h, (continued)
- [PULL v3 04/25] ui: add pixman-minimal.h, marcandre . lureau, 2023/11/07
- [PULL v3 03/25] ui: compile out some qemu-pixman functions when !PIXMAN, marcandre . lureau, 2023/11/07
- [PULL v3 06/25] qemu-options: define -vnc only #ifdef CONFIG_VNC, marcandre . lureau, 2023/11/07
- [PULL v3 08/25] vl: move display early init before default devices, marcandre . lureau, 2023/11/07
- [PULL v3 10/25] ui/vc: console-vc requires PIXMAN, marcandre . lureau, 2023/11/07
- [PULL v3 07/25] vl: simplify display_remote logic, marcandre . lureau, 2023/11/07
- [PULL v3 02/25] build-sys: drop needless warning pragmas for old pixman, marcandre . lureau, 2023/11/07
- [PULL v3 09/25] ui/console: allow to override the default VC, marcandre . lureau, 2023/11/07
- Re: [PULL v3 09/25] ui/console: allow to override the default VC, Peter Maydell, 2023/11/16
[PULL v3 14/25] vhost-user-gpu: skip VHOST_USER_GPU_UPDATE when !PIXMAN, marcandre . lureau, 2023/11/07
[PULL v3 11/25] qmp/hmp: disable screendump if PIXMAN is missing, marcandre . lureau, 2023/11/07
[PULL v3 13/25] ui/console: when PIXMAN is unavailable, don't draw placeholder msg, marcandre . lureau, 2023/11/07
[PULL v3 12/25] virtio-gpu: replace PIXMAN for region/rect test, marcandre . lureau, 2023/11/07
[PULL v3 16/25] ui/vnc: VNC requires PIXMAN, marcandre . lureau, 2023/11/07
[PULL v3 18/25] ui/gtk: -display gtk requires PIXMAN, marcandre . lureau, 2023/11/07
[PULL v3 19/25] ui/dbus: do not require PIXMAN, marcandre . lureau, 2023/11/07