Received: from eggs.gnu.org ([2001:4830:134:3::10]:48501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNyO5-0003pc-7u for qemu-devel@nongnu.org; Fri, 15 Jul 2016 04:22:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNyO0-0005Hi-5T for qemu-devel@nongnu.org; Fri, 15 Jul 2016 04:22:20 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:60587 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNyO0-0005Hd-0E for qemu-devel@nongnu.org; Fri, 15 Jul 2016 04:22:16 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u6F8Dkb6081093 for ; Fri, 15 Jul 2016 04:22:14 -0400 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0a-001b2d01.pphosted.com with ESMTP id 246hek0vgc-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 15 Jul 2016 04:22:14 -0400 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 15 Jul 2016 09:22:13 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id A22721B08023 for ; Fri, 15 Jul 2016 09:23:21 +0100 (BST) Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u6F8Lx2H3080698 for ; Fri, 15 Jul 2016 08:21:59 GMT Received: from d06av02.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u6F8LxWU031534 for ; Fri, 15 Jul 2016 02:21:59 -0600 Date: Fri, 15 Jul 2016 10:21:57 +0200 From: Cornelia Huck In-Reply-To: <1468516976-20140-13-git-send-email-dgilbert@redhat.com> References: <1468516976-20140-1-git-send-email-dgilbert@redhat.com> <1468516976-20140-13-git-send-email-dgilbert@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20160715102157.6af9fbfb.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH v3 12/14] virtio-gpu: Use migrate_add_blocker for virgl migration blocking List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" Cc: qemu-devel@nongnu.org, mst@redhat.com, amit.shah@redhat.com, quintela@redhat.com, kraxel@redhat.com On Thu, 14 Jul 2016 18:22:54 +0100 "Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > virgl conditionally registers a vmstate as unmigratable when virgl > is enabled; instead use the migrate_add_blocker mechanism. > > Signed-off-by: Dr. David Alan Gilbert > --- > hw/display/virtio-gpu.c | 19 +++++++++++++------ > include/hw/virtio/virtio-gpu.h | 2 ++ > 2 files changed, 15 insertions(+), 6 deletions(-) > > @@ -1169,13 +1165,23 @@ static void virtio_gpu_device_realize(DeviceState *qdev, Error **errp) > } > > if (virtio_gpu_virgl_enabled(g->conf)) { > - vmstate_register(qdev, -1, &vmstate_virtio_gpu_unmigratable, g); > + error_setg(&g->migration_blocker, "virgl is not yet migratable"); Suggest prepending with "virtio-gpu:". > + migrate_add_blocker(g->migration_blocker); > } else { > register_savevm(qdev, "virtio-gpu", -1, VIRTIO_GPU_VM_VERSION, > virtio_gpu_save, virtio_gpu_load, g); > } > } In any case, Reviewed-by: Cornelia Huck