]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Fix VHOST_SET_MEM_TABLE failure
authorAsias He <asias.hejun@gmail.com>
Wed, 11 Jul 2012 16:08:13 +0000 (00:08 +0800)
committerPekka Enberg <penberg@kernel.org>
Thu, 12 Jul 2012 07:09:15 +0000 (10:09 +0300)
commit0ce52d60ed1d42b7b56070ab1c69cbd592e83d8b
treebfee5e4d53d11b220f612e81f07f60946a4bb559
parent178bb529bf160f3b9a284e904fea37c38ad3e3bb
kvm tools: Fix VHOST_SET_MEM_TABLE failure

VHOST_SET_MEM_TABLE failed: Operation not supported

In vhost_set_memory(), We have

        if (mem.padding)
                return -EOPNOTSUPP;

So, we need to zero struct vhost_memory.

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/virtio/net.c