mouse does not work in pass in

Host environment

  • Operating system: linux mint
  • OS/kernel version: 6.14.0
  • Architecture: x86_64
  • QEMU flavor: qemu-system-x86_64
  • QEMU version: 10.0.0-rc1
  • QEMU command line:

(Not the smallest but)

#LOCATSION OF DISK IMAGE (/path/to/image)
DISK=""
#PATH TO ISO IMAGE ("none" IF YOU DO NOT WISH TO USE ONE)
ISO=""
#AMOUNT OF RAM (number | [ G | M | K ] )
MEMORY=""
#NUMBER OF CPU CORES (number)[?,sockets=?,cores=?,threads=?]
CPU_CORES=""
#VRAM (number | [ G | M | K ] )
VRAM=""
#KERNEL VMLINUZ FILE
KERNEL=""
#INITRD FILE
INITRD=""
#KEBAORD (VENDERID then PRODUCTID)
KBDVID="0x046d"
KBDPID="0xc33c"
#MOUSE (VENDERID then PRODUCTID)
MOUSEVID="0x046d"
MOUSEPID="0xc08b"
#CONTROLER (VENDERID then PRODUCTID)
CONTROLERVID="0x0e6f"
CONTROLERPID="0x0302"

######################################

/tools/virtualization/venus/qemu/build/qemu-system-x86_64 \
 -enable-kvm \
 -cpu max \
 -smp $CPU_CORES \
 -m $MEMORY \
 -hda $DISK \
 -audio pa,id=snd0,model=virtio,server=/run/user/1000/pulse/native \
 -overcommit mem-lock=off \
 -rtc base=utc \
 -serial mon:stdio \
 -display sdl,gl=on,show-cursor=on \
 -device virtio-vga-gl,hostmem=$VRAM,blob=true,venus=true,drm_native_context=on \
 -object memory-backend-memfd,id=mem1,size=$MEMORY,share=on \
 -machine q35,accel=kvm,kernel-irqchip=split,memory-backend=mem1 \
 -net nic,model=virtio \
 -device virtio-balloon \
 -vga none \
 -full-screen \
 -net user,hostfwd=tcp::2222-:22 \
 -usb \
 -device usb-host,vendorid=$CONTROLERVID,productid=$CONTROLERPID \
 -device usb-host,vendorid=$MOUSEVID,productid=$MOUSEPID \
 -device usb-host,vendorid=$KBDVID,productid=$KBDPID \
 -device virtio-mouse-pci -device virtio-keyboard-pci \
 -append "BOOT_IMAGE=$KERNEL root=/dev/sda2 rw nowatchdog nvme_load=YES zswap.enabled=0 loglevel=3 mitigations=off" \
 -kernel $KERNEL \
 -initrd $INITRD \
 -sandbox on \
 -boot c,menu=on \
 -cdrom $ISO  

Emulated/Virtualized environment

  • Operating system: Arch linux
  • OS/kernel version: 6.14.0
  • Architecture: x86_64

Description of problem

I have this script to start qemu that passes in my mouse, keyboard and xbox controler. When I use it, it does not move the cursor(for my mouse) but the mouse is working because the hot corners do work. Moving my mouse in a up left direction in GNOME will show the menu and apps. Key board works, My controller works, and My mouse works, but the cursor does not move. Here is the script:

Steps to reproduce

  1. run the script above with the right variables.
  2. Move your mouse in the screen. It will not move the pointer.

Additional information

I am using thees patches in qemu but it does not work in vanilla ether: https://lore.kernel.org/all/20241010182427.1434605-1-seanjc@google.com/

and this in the kernel (6.14.0): https://github.com/torvalds/linux/commit/377b2f359d1f71c75f8cc352b5c81f2210312d83

I am ruining qemu 10.0.0-rc1 (but 9.2.2 also does not work), kernel 6.14.0.

I am runing mint on my host and arch on my guest. on my host I have virglrenderer on and on my guest I installed the pacman package lib32-vulkan-virtio and vulkan-virtio.

If it helps I can remove the pass throws and insted use:

-usbdevice tablet -usbdevice mouse -usbdevice keyboard or -device virtio-mouse -device virtio-keyboard -device virtio-tablet

Edited by jon-bit