From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDMnp-0003Kx-24 for qemu-devel@nongnu.org; Wed, 15 Jun 2016 22:13:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDMnk-0001YA-EU for qemu-devel@nongnu.org; Wed, 15 Jun 2016 22:13:03 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:7906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDMnj-0001XS-OT for qemu-devel@nongnu.org; Wed, 15 Jun 2016 22:13:00 -0400 Message-ID: <57620B0E.9070206@huawei.com> Date: Thu, 16 Jun 2016 10:12:30 +0800 From: Shannon Zhao MIME-Version: 1.0 References: <1465915112-29272-1-git-send-email-peter.maydell@linaro.org> <1465915112-29272-9-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1465915112-29272-9-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 08/20] hw/intc/arm_gicv3: Add vmstate descriptors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: patches@linaro.org, Shlomo Pongratz , Shlomo Pongratz , Pavel Fedin , Shannon Zhao , Christoffer Dall On 2016/6/14 22:38, Peter Maydell wrote: > diff --git a/hw/intc/arm_gicv3_kvm.c b/hw/intc/arm_gicv3_kvm.c > index acc1730..d08808d 100644 > --- a/hw/intc/arm_gicv3_kvm.c > +++ b/hw/intc/arm_gicv3_kvm.c miss adding #include "migration/migration.h" otherwise there is a compiling error: error: implicit declaration of function 'migrate_add_blocker' [-Werror=implicit-function-declaration] > @@ -119,6 +119,13 @@ static void kvm_arm_gicv3_realize(DeviceState *dev, Error **errp) > KVM_VGIC_V3_ADDR_TYPE_DIST, s->dev_fd); > kvm_arm_register_device(&s->iomem_redist, -1, KVM_DEV_ARM_VGIC_GRP_ADDR, > KVM_VGIC_V3_ADDR_TYPE_REDIST, s->dev_fd); > + > + /* Block migration of a KVM GICv3 device: the API for saving and restoring > + * the state in the kernel is not yet finalised in the kernel or > + * implemented in QEMU. > + */ > + error_setg(&s->migration_blocker, "vGICv3 migration is not implemented"); > + migrate_add_blocker(s->migration_blocker); > } > > static void kvm_arm_gicv3_class_init(ObjectClass *klass, void *data) > -- Shannon