From: Alex Williamson <alex.williamson@redhat.com>
To: qemu Mailinglist <qemu@suppser.de>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Keyboard/Mouse Console for vfio with active function x-vga ans -vga none
Date: Thu, 10 Apr 2014 14:29:35 -0600 [thread overview]
Message-ID: <1397161775.3142.39.camel@ul30vt.home> (raw)
In-Reply-To: <5346F9FC.10606@suppser.de>
On Thu, 2014-04-10 at 22:07 +0200, qemu Mailinglist wrote:
> there are many discus about using keyboard and mouse with VGA passthru,
> so I add a graphic_console to vfio.c, like puv3.c.
> I test it with SDL and VNC Access, the Keyboard works, the mouse work
> good without absolute version like "-usbdevice mouse".
> Default it boot with "QEMU PS/2 Mouse", but this is changing to "vmmouse
> (absolute)" at boot time of gast system.
>
> I hope someone else can test.
>
> Signed-off-by: Tobias Nannen qemu@suppser.de
> ---
> hw/misc/vfio.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c
> index 9cf5b84..9294041 100644
> --- a/hw/misc/vfio.c
> +++ b/hw/misc/vfio.c
> @@ -39,6 +39,7 @@
> #include "qemu/range.h"
> #include "sysemu/kvm.h"
> #include "sysemu/sysemu.h"
> +#include "ui/console.h"
>
> /* #define DEBUG_VFIO */
> #ifdef DEBUG_VFIO
> @@ -3586,6 +3587,10 @@ static int vfio_get_device(VFIOGroup *group,
> const char *name, VFIODevice *vdev)
> QLIST_INIT(&vdev->vga.region[QEMU_PCI_VGA_IO_HI].quirks);
>
> vdev->has_vga = true;
> + if (vga_interface_type == VGA_NONE) {
> + static const GraphicHwOps no_ops;
> + graphic_console_init(NULL, 0, &no_ops, NULL);
> + }
> }
> irq_info.index = VFIO_PCI_ERR_IRQ_INDEX;
>
I don't think vfio is the one to be creating a dummy console, besides
there's no reason you can't have multiple vfio devices with x-vga=on.
There should probably be some dummy console driver so you can add
-device dummy-console to the commandline if this is desired. Thanks,
Alex
next prev parent reply other threads:[~2014-04-10 20:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-10 20:07 [Qemu-devel] [PATCH] Keyboard/Mouse Console for vfio with active function x-vga ans -vga none qemu Mailinglist
2014-04-10 20:29 ` Alex Williamson [this message]
2014-04-10 21:14 ` qemu Mailinglist
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1397161775.3142.39.camel@ul30vt.home \
--to=alex.williamson@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu@suppser.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).