Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QNX: W/A for virtio-input over shmem #46

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion drivers/virtio/virtio_shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <linux/virtio_ids.h>
#include <linux/virtio_pci.h>
#include <linux/guest_shm.h>
#include <asm/hypervisor.h>

#include "virtio_shmem.h"

Expand Down Expand Up @@ -94,7 +95,11 @@ static bool vi_reg_write(struct virtio_shmem_device *vi_dev, unsigned int reg,
virt_wmb();

vi_dev->notify_peer(vi_dev, 0);

/* delay a short time for BE to update config space */
if (vi_dev->vdev.id.device == VIRTIO_ID_INPUT &&
hypervisor_is_type(X86_HYPER_QNX)) {
mdelay(1);
}
return true;
}

Expand Down