wl: disable wl shared memory feature

When the shared memory feature is enabled, there is a bug in how the
driver handles vfds without an associated pfn. Disable the feature bit
until the bug is fixed.

BUG=b:213532601
TEST=crostini.CopyPaste.wayland_to_x11_buster_stable

Change-Id: Ic5f68e167e8ee8f4c990d0c4d73149e60b3ce908
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3789166
Commit-Queue: David Stevens <stevensd@chromium.org>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Tested-by: David Stevens <stevensd@chromium.org>
This commit is contained in:
David Stevens 2022-07-27 15:52:42 +09:00 committed by crosvm LUCI
parent 49c8cd6160
commit bdba48b64b

View file

@ -1972,10 +1972,9 @@ impl VirtioDevice for Wl {
}
fn features(&self) -> u64 {
self.base_features
| 1 << VIRTIO_WL_F_TRANS_FLAGS
| 1 << VIRTIO_WL_F_SEND_FENCES
| 1 << VIRTIO_WL_F_USE_SHMEM
self.base_features | 1 << VIRTIO_WL_F_TRANS_FLAGS | 1 << VIRTIO_WL_F_SEND_FENCES
// TODO(stevensd): re-add flag once driver is fixed
// | 1 << VIRTIO_WL_F_USE_SHMEM
}
fn ack_features(&mut self, value: u64) {