From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.25.15.230 with SMTP id 99csp1073637lfp; Mon, 27 Mar 2017 02:49:04 -0700 (PDT) X-Received: by 10.55.150.1 with SMTP id y1mr17672234qkd.311.1490608144609; Mon, 27 Mar 2017 02:49:04 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id c8si61354qtg.86.2017.03.27.02.49.04 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 27 Mar 2017 02:49:04 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Received: from localhost ([::1]:45353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csRGq-0006LU-62 for alex.bennee@linaro.org; Mon, 27 Mar 2017 05:49:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csRGm-0006LI-BO for qemu-arm@nongnu.org; Mon, 27 Mar 2017 05:49:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1csRGj-0007Xf-QT for qemu-arm@nongnu.org; Mon, 27 Mar 2017 05:49:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35772) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1csRGj-0007XS-Kb; Mon, 27 Mar 2017 05:48:57 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7581485363; Mon, 27 Mar 2017 09:48:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 7581485363 Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=eric.auger@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 7581485363 Received: from localhost.localdomain.com (ovpn-117-27.ams2.redhat.com [10.36.117.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id A502F189E1; Mon, 27 Mar 2017 09:48:48 +0000 (UTC) From: Eric Auger To: eric.auger.pro@gmail.com, eric.auger@redhat.com, peter.maydell@linaro.org, qemu-arm@nongnu.org, qemu-devel@nongnu.org Date: Mon, 27 Mar 2017 11:48:43 +0200 Message-Id: <1490608126-22187-1-git-send-email-eric.auger@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Mon, 27 Mar 2017 09:48:56 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-arm] [RFC v3 0/3] vITS save/restore X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: drjones@redhat.com, vijay.kilari@gmail.com, quintela@redhat.com, dgilbert@redhat.com, peterx@redhat.com, Vijaya.Kumar@cavium.com, christoffer.dall@linaro.org Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: iXF/X36spPXZ This series allows ITS save/restore and migration use cases. It relies on not upstreamed kernel series [1]. ITS tables are flushed into guest RAM on VM stop while registers are save on pre_save() callback. Tables and registers are restored on ITS post_load(). That work was tested on Cavium ThunderX using virsh save/restore and virt-manager live migration. Best Regards Eric Host Kernel dependencies: - [1] [PATCH v4 00/22] vITS save/restore History: v2 -> v3: - GITS_IIDR is now saved and restored to check ABI revision. - get/put functions renamed into pre_save/post_load - unmigratable = false removed - changed the migration blocker message - remove the extract64 round s->ctlr - reword some comments v1 -> v2: - rebase on 2.9 soft release code - handle case where migrate_add_blocker fails - add comments along with ITS and GICv3 migration priorities Eric Auger (3): linux-headers: Partial header update for vITS save/restore hw/intc/arm_gicv3_its: Implement state save/restore hw/intc/arm_gicv3_its: Allow save/restore hw/intc/arm_gicv3_common.c | 1 + hw/intc/arm_gicv3_its_common.c | 11 ++- hw/intc/arm_gicv3_its_kvm.c | 120 +++++++++++++++++++++++++++++---- include/hw/intc/arm_gicv3_its_common.h | 8 +++ include/migration/vmstate.h | 2 + linux-headers/asm-arm/kvm.h | 2 + linux-headers/asm-arm64/kvm.h | 2 + 7 files changed, 133 insertions(+), 13 deletions(-) -- 2.5.5