aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Le Goater <clg@fr.ibm.com>2014-07-04 14:15:57 +0200
committerAlexey Kardashevskiy <aik@ozlabs.ru>2014-08-08 19:25:55 +1000
commit4087c952574f18106c5d9731d4573ce7e3c35f62 (patch)
treeedbbb141154e2c1fec234722ee93bafd44375f5b
parent633558ee62202f7ad931732f44df07b5fe6bdd16 (diff)
downloadpowerpc-4087c952574f18106c5d9731d4573ce7e3c35f62.tar.gz
vhost: reset byteswap in vhost_vq_reset()
This patch does not fix any known issues in the previous vhost patchset. Nevertheless, the byteswap attribute needs to be re-initialized like all other virtqueue attributes. BZ: 108753 Branch: powerkvm-v2.1.1 Signed-off-by: Cédric Le Goater <clg@fr.ibm.com> Cc: Paul Mackerras <paulus@au1.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org> (cherry picked from commit af892adc789c20a9b8c42195cee2d6e2861ad037) Signed-off-by: Scott Garfinkle <seg@us.ibm.com>
-rw-r--r--drivers/vhost/vhost.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
index c43277ebadd0e7..3072e902d63b59 100644
--- a/drivers/vhost/vhost.c
+++ b/drivers/vhost/vhost.c
@@ -188,6 +188,7 @@ static void vhost_vq_reset(struct vhost_dev *dev,
vq->call_ctx = NULL;
vq->call = NULL;
vq->log_ctx = NULL;
+ vq->byteswap = 0;
}
static int vhost_worker(void *data)