Bug 5660

Summary: Weston doesn't work properly on qemu
Product: [Build System, Metadata & Runtime] OE-Core Reporter: valentin <valentin.popa>
Component: graphicsAssignee: Ross Burton <ross.burton>
Status: RESOLVED OBSOLETE QA Contact:
Severity: enhancement    
Priority: Medium CC: alejandro.hernandez, alexandru.c.georgescu, benjamin.esquivel, jose.perez.carranza, joshuagloe, meta.mr.watcher, meta.watcher, ross.burton, sgw, valentin.popa
Version: 1.6   
Target Milestone: Future   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description valentin 2013-12-12 12:14:27 UTC
Steps to reproduce:

1) enable fbdev and cirrus/qxl emulated graphics device drivers in yocto-linux
2) build 2 images of core-image-weston for qemux86 without X11 (DISTRO_FEATURES_remove="x11"; CORE_IMAGE_EXTRA_INSTALL += "libgles2-mesa"): 
    a) one with drm (kms)
    b) one with fbdev backend
3) a) -launch weston by: weston -Bdrm-backend.so
      EXPECTED OUTCOME:
      - weston desktop should be displayed;
      ACTUAL OUTCOME:
      - blank screen
   b) -launch weston by: weston -Bfbdev-backend.so
      EXPECTED OUTCOME:
      - weston desktop should be displayed;
      ACTUAL OUTCOME:
      - weston desktop is displayed only on the upper half of the screen
Comment 1 valentin 2014-02-28 15:58:22 UTC
WESTON on QEMU

Retested on master:

2) with vmware video driver (-vga vmware + kernel support + mesa vmwgfx):
      - with fbdev_backend : works correctly
      - with drm_backend: blank black screen (lack of support from qemu; the same image has no graphical issues on vmware-player).
1) with cirrus driver (-vga cirrus + kernel support):
      either with fbdev or drm backend, weston doesn't start anymore.


Conclusion:
   No hardware accelerated weston on QEMU. (for the moment, an alternative is to run core-image-weston on vmware-player which works ok)
Comment 2 valentin 2014-03-25 12:17:41 UTC
Just to follow the qemu + vmwgfx (drm) bug:
https://bugzilla.kernel.org/show_bug.cgi?id=46711
Comment 3 valentin 2014-04-09 12:07:07 UTC
Asked to reopen the kernel bug. Moved this to 1.7.
Comment 4 Ross Burton 2015-04-02 16:46:49 UTC
I think this bug needs another update.

Weston needs a KMS driver on the framebuffer.

Qemu supports four different ways of exposing graphics to the guest via the -vga option: cirrus vga vmware qxl.

runqemu uses '-vga vmware' for everything expect the qemumips* family.

The referenced bug implies that the vmwgfx driver doesn't actually work with qemu's vmware emulation.

So the big question is considering we have the requirement that *all* video output from the guest is visible in qemu (including firmware boot, console, X) what is the optimum video mode to use in qemu.  We need output to work in some form without user-space drivers (kernel drivers however we can just enable).
Comment 5 Alejandro Hernandez 2015-08-03 23:14:06 UTC
I retested this today, aside form the fact that cirrus did work using fbdev for me, everything else is as stated, bottom point: weston -Bdrm-backend.so doesnt work using any driver, I will try an see what other options we have.
Comment 6 Ross Burton 2020-01-29 17:12:01 UTC
Closing, a lot has changed.  QA should do more (bug 10690) and open new bugs if needed.