Commit-ID: 3a98bb23995ca21abe80c492ba01f59f59baefdc Gitweb: http://git.kernel.org/tip/3a98bb23995ca21abe80c492ba01f59f59baefdc Author: Asias He <asias.hejun@xxxxxxxxx> AuthorDate: Sat, 7 Apr 2012 20:05:22 +0800 Committer: Pekka Enberg <penberg@xxxxxxxxxx> CommitDate: Mon, 9 Apr 2012 11:34:47 +0300 kvm tools: Add set_size_vq for virtio-blk set_size_vq does not do the actual work, we can implement this later. Signed-off-by: Asias He <asias.hejun@xxxxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- tools/kvm/virtio/blk.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/tools/kvm/virtio/blk.c b/tools/kvm/virtio/blk.c index 407f995..b061307 100644 --- a/tools/kvm/virtio/blk.c +++ b/tools/kvm/virtio/blk.c @@ -193,9 +193,16 @@ static int get_pfn_vq(struct kvm *kvm, void *dev, u32 vq) static int get_size_vq(struct kvm *kvm, void *dev, u32 vq) { + /* FIXME: dynamic */ return VIRTIO_BLK_QUEUE_SIZE; } +static int set_size_vq(struct kvm *kvm, void *dev, u32 vq, int size) +{ + /* FIXME: dynamic */ + return size; +} + static struct virtio_ops blk_dev_virtio_ops = (struct virtio_ops) { .set_config = set_config, .get_config = get_config, @@ -205,6 +212,7 @@ static struct virtio_ops blk_dev_virtio_ops = (struct virtio_ops) { .notify_vq = notify_vq, .get_pfn_vq = get_pfn_vq, .get_size_vq = get_size_vq, + .set_size_vq = set_size_vq, }; static int virtio_blk__init_one(struct kvm *kvm, struct disk_image *disk) -- 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