Commit-ID: ad0b8a9267336ac62b164c13bfeb7668209b6985 Gitweb: http://git.kernel.org/tip/ad0b8a9267336ac62b164c13bfeb7668209b6985 Author: Marc Zyngier <marc.zyngier@xxxxxxx> AuthorDate: Thu, 8 May 2014 10:32:45 +0100 Committer: Pekka Enberg <penberg@xxxxxxxxxx> CommitDate: Tue, 20 May 2014 20:53:53 +0300 kvmtool: convert 9p backend to support bi-endianness Configure the queues to follow the guest endianness, and make sure the configuration space is doing the same. Signed-off-by: Marc Zyngier <marc.zyngier@xxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- tools/kvm/virtio/9p.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/kvm/virtio/9p.c b/tools/kvm/virtio/9p.c index 847eddb..9073a1e 100644 --- a/tools/kvm/virtio/9p.c +++ b/tools/kvm/virtio/9p.c @@ -1252,8 +1252,10 @@ static u32 get_host_features(struct kvm *kvm, void *dev) static void set_guest_features(struct kvm *kvm, void *dev, u32 features) { struct p9_dev *p9dev = dev; + struct virtio_9p_config *conf = p9dev->config; p9dev->features = features; + conf->tag_len = virtio_host_to_guest_u16(&p9dev->vdev, conf->tag_len); } static int init_vq(struct kvm *kvm, void *dev, u32 vq, u32 page_size, u32 align, @@ -1272,6 +1274,7 @@ static int init_vq(struct kvm *kvm, void *dev, u32 vq, u32 page_size, u32 align, job = &p9dev->jobs[vq]; vring_init(&queue->vring, VIRTQUEUE_NUM, p, align); + virtio_init_device_vq(&p9dev->vdev, queue); *job = (struct p9_dev_job) { .vq = queue, -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html