]> git.proxmox.com Git - mirror_qemu.git/commit
vhost: fix memslot limit check
authorJay Zhou <jianjay.zhou@huawei.com>
Tue, 27 Feb 2018 07:10:04 +0000 (15:10 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 1 Mar 2018 14:25:37 +0000 (16:25 +0200)
commit9e2a2a3e083fec1e8059b331e3998c0849d779c1
treeb68aa570c6237e9a3fb0a96af307b977ce0396cd
parentc8945922be9c11fc11dcbc54fadc556a893076fc
vhost: fix memslot limit check

Since used_memslots will be updated to the actual value after
registering memory listener for the first time, move the
memslots limit checking to the right place.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Jay Zhou <jianjay.zhou@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost.c