QEMU-Devel Archive on lore.kernel.org
 help / color / Atom feed
* [Qemu-devel] [Bug 1793859] Re: GTK display and mouse input area scaling fails when using vfio-pci device
       [not found] <153760092554.29759.17075669747500120723.malonedeb@soybean.canonical.com>
@ 2018-10-25 13:35 ` Chen Zhang
  2018-11-06  8:45 ` Chen Zhang
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: Chen Zhang @ 2018-10-25 13:35 UTC (permalink / raw)
  To: qemu-devel

Hi, I have a hack for this issue.

In general, the gvt-g is buggy in that the kernel driver i915 failed to
provide the actual resolution for the vgpu and always report the largest
available one.

The following patch modified the gtk-egl implementation for DMA Buf
mode, to convert mouse movement/tablet position to the scaled window
coordinates.

See https://pastebin.com/96iBLdDx

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1793859

Title:
  GTK display and mouse input area scaling fails when using vfio-pci
  device

Status in QEMU:
  New

Bug description:
  Version qemu 3.0.0-1 running on Arch. Found on Windows 8.1 and Windows
  10 VM's when using Intel gvt-g device.

  While in fullscreen the GTK display is scaled larger than the x11
  screen or virtual machine resolution. Without choosing zoom-to-fit
  portions of the VM display are not shown on x11 screen regardless of
  the VM resolution. When zoom-to-fit is done the mouse that's shown on
  screen and actual input are off sync. The mouse can wander off screen
  when going left and down.

  This message is shown when changing from gxl-vga to vfio-pci in view menu. 
  (qemu-system-x86_64:6472): Gtk-WARNING **: 09:50:06.663: drawing failure for widget 'GtkDrawingArea': NULL pointer
  (qemu-system-x86_64:6472): Gtk-WARNING **: 09:50:06.664: drawing failure for widget 'GtkNotebook': NULL pointer
  (qemu-system-x86_64:6472): Gtk-WARNING **: 09:50:06.664: drawing failure for widget 'GtkBox': NULL pointer
  (qemu-system-x86_64:6472): Gtk-WARNING **: 09:50:06.664: drawing failure for widget 'GtkWindow': NULL pointer

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1793859/+subscriptions

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Qemu-devel] [Bug 1793859] Re: GTK display and mouse input area scaling fails when using vfio-pci device
       [not found] <153760092554.29759.17075669747500120723.malonedeb@soybean.canonical.com>
  2018-10-25 13:35 ` [Qemu-devel] [Bug 1793859] Re: GTK display and mouse input area scaling fails when using vfio-pci device Chen Zhang
@ 2018-11-06  8:45 ` Chen Zhang
  2018-11-26 21:53 ` tinywrkbee
  2020-02-14 23:54 ` UserPC2021
  3 siblings, 0 replies; 4+ messages in thread
From: Chen Zhang @ 2018-11-06  8:45 UTC (permalink / raw)
  To: qemu-devel

Hi there,

Would anyone be so kind to review my patch?

Thanks.


https://lists.nongnu.org/archive/html/qemu-devel/2018-10/msg06806.html

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1793859

Title:
  GTK display and mouse input area scaling fails when using vfio-pci
  device

Status in QEMU:
  New

Bug description:
  Version qemu 3.0.0-1 running on Arch. Found on Windows 8.1 and Windows
  10 VM's when using Intel gvt-g device.

  While in fullscreen the GTK display is scaled larger than the x11
  screen or virtual machine resolution. Without choosing zoom-to-fit
  portions of the VM display are not shown on x11 screen regardless of
  the VM resolution. When zoom-to-fit is done the mouse that's shown on
  screen and actual input are off sync. The mouse can wander off screen
  when going left and down.

  This message is shown when changing from gxl-vga to vfio-pci in view menu. 
  (qemu-system-x86_64:6472): Gtk-WARNING **: 09:50:06.663: drawing failure for widget 'GtkDrawingArea': NULL pointer
  (qemu-system-x86_64:6472): Gtk-WARNING **: 09:50:06.664: drawing failure for widget 'GtkNotebook': NULL pointer
  (qemu-system-x86_64:6472): Gtk-WARNING **: 09:50:06.664: drawing failure for widget 'GtkBox': NULL pointer
  (qemu-system-x86_64:6472): Gtk-WARNING **: 09:50:06.664: drawing failure for widget 'GtkWindow': NULL pointer

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1793859/+subscriptions

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Qemu-devel] [Bug 1793859] Re: GTK display and mouse input area scaling fails when using vfio-pci device
       [not found] <153760092554.29759.17075669747500120723.malonedeb@soybean.canonical.com>
  2018-10-25 13:35 ` [Qemu-devel] [Bug 1793859] Re: GTK display and mouse input area scaling fails when using vfio-pci device Chen Zhang
  2018-11-06  8:45 ` Chen Zhang
@ 2018-11-26 21:53 ` tinywrkbee
  2020-02-14 23:54 ` UserPC2021
  3 siblings, 0 replies; 4+ messages in thread
From: tinywrkbee @ 2018-11-26 21:53 UTC (permalink / raw)
  To: qemu-devel

Chen, have you seen the following bug report? https://bugs.launchpad.net/qemu/+bug/1592351
See my comment there, with recent git build of 3.1.0 I don't have a pointer offset issue.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1793859

Title:
  GTK display and mouse input area scaling fails when using vfio-pci
  device

Status in QEMU:
  New

Bug description:
  Version qemu 3.0.0-1 running on Arch. Found on Windows 8.1 and Windows
  10 VM's when using Intel gvt-g device.

  While in fullscreen the GTK display is scaled larger than the x11
  screen or virtual machine resolution. Without choosing zoom-to-fit
  portions of the VM display are not shown on x11 screen regardless of
  the VM resolution. When zoom-to-fit is done the mouse that's shown on
  screen and actual input are off sync. The mouse can wander off screen
  when going left and down.

  This message is shown when changing from gxl-vga to vfio-pci in view menu. 
  (qemu-system-x86_64:6472): Gtk-WARNING **: 09:50:06.663: drawing failure for widget 'GtkDrawingArea': NULL pointer
  (qemu-system-x86_64:6472): Gtk-WARNING **: 09:50:06.664: drawing failure for widget 'GtkNotebook': NULL pointer
  (qemu-system-x86_64:6472): Gtk-WARNING **: 09:50:06.664: drawing failure for widget 'GtkBox': NULL pointer
  (qemu-system-x86_64:6472): Gtk-WARNING **: 09:50:06.664: drawing failure for widget 'GtkWindow': NULL pointer

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1793859/+subscriptions

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 1793859] Re: GTK display and mouse input area scaling fails when using vfio-pci device
       [not found] <153760092554.29759.17075669747500120723.malonedeb@soybean.canonical.com>
                   ` (2 preceding siblings ...)
  2018-11-26 21:53 ` tinywrkbee
@ 2020-02-14 23:54 ` UserPC2021
  3 siblings, 0 replies; 4+ messages in thread
From: UserPC2021 @ 2020-02-14 23:54 UTC (permalink / raw)
  To: qemu-devel

Perhaps this is due to this issue https://github.com/intel/gvt-
linux/issues/71

https://yadi.sk/i/Ejg_6JJEBIc-Zw

** Bug watch added: github.com/intel/gvt-linux/issues #71
   https://github.com/intel/gvt-linux/issues/71

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1793859

Title:
  GTK display and mouse input area scaling fails when using vfio-pci
  device

Status in QEMU:
  New

Bug description:
  Version qemu 3.0.0-1 running on Arch. Found on Windows 8.1 and Windows
  10 VM's when using Intel gvt-g device.

  While in fullscreen the GTK display is scaled larger than the x11
  screen or virtual machine resolution. Without choosing zoom-to-fit
  portions of the VM display are not shown on x11 screen regardless of
  the VM resolution. When zoom-to-fit is done the mouse that's shown on
  screen and actual input are off sync. The mouse can wander off screen
  when going left and down.

  This message is shown when changing from gxl-vga to vfio-pci in view menu. 
  (qemu-system-x86_64:6472): Gtk-WARNING **: 09:50:06.663: drawing failure for widget 'GtkDrawingArea': NULL pointer
  (qemu-system-x86_64:6472): Gtk-WARNING **: 09:50:06.664: drawing failure for widget 'GtkNotebook': NULL pointer
  (qemu-system-x86_64:6472): Gtk-WARNING **: 09:50:06.664: drawing failure for widget 'GtkBox': NULL pointer
  (qemu-system-x86_64:6472): Gtk-WARNING **: 09:50:06.664: drawing failure for widget 'GtkWindow': NULL pointer

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1793859/+subscriptions


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, back to index

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <153760092554.29759.17075669747500120723.malonedeb@soybean.canonical.com>
2018-10-25 13:35 ` [Qemu-devel] [Bug 1793859] Re: GTK display and mouse input area scaling fails when using vfio-pci device Chen Zhang
2018-11-06  8:45 ` Chen Zhang
2018-11-26 21:53 ` tinywrkbee
2020-02-14 23:54 ` UserPC2021

QEMU-Devel Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/qemu-devel/0 qemu-devel/git/0.git
	git clone --mirror https://lore.kernel.org/qemu-devel/1 qemu-devel/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 qemu-devel qemu-devel/ https://lore.kernel.org/qemu-devel \
		qemu-devel@nongnu.org
	public-inbox-index qemu-devel

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.nongnu.qemu-devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git