From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai0Y1-0007ob-Hd for qemu-devel@nongnu.org; Mon, 21 Mar 2016 10:11:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ai0Xx-0000BE-4f for qemu-devel@nongnu.org; Mon, 21 Mar 2016 10:11:09 -0400 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:53784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai0Xw-0000Ap-Qt for qemu-devel@nongnu.org; Mon, 21 Mar 2016 10:11:05 -0400 Received: from localhost by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 21 Mar 2016 14:11:02 -0000 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Mon, 21 Mar 2016 15:02:07 +0100 Message-Id: <1458568928-3055-2-git-send-email-clg@fr.ibm.com> In-Reply-To: <1458568928-3055-1-git-send-email-clg@fr.ibm.com> References: <1458568928-3055-1-git-send-email-clg@fr.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [RFC PATCH 1/2] target-ppc: migrate interrupt vectors address for spapr VM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: Thomas Huth , Mark Cave-Ayland , qemu-devel@nongnu.org, Alexander Graf , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , qemu-ppc@nongnu.org This address is changed by the linux kernel using the H_SET_MODE hcall and needs to be migrated in order to restart a spapr VM running in TCG. Other platforms should not be affected. Signed-off-by: Cédric Le Goater --- target-ppc/machine.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target-ppc/machine.c b/target-ppc/machine.c index 692121e98319..a418d463db83 100644 --- a/target-ppc/machine.c +++ b/target-ppc/machine.c @@ -553,6 +553,9 @@ const VMStateDescription vmstate_ppc_cpu = { VMSTATE_UINTTL(env.hflags_nmsr, PowerPCCPU), /* FIXME: access_type? */ + /* Effective Address of interrupt vectors */ + VMSTATE_UINTTL(env.excp_prefix, PowerPCCPU), + /* Sanity checking */ VMSTATE_UINTTL_EQUAL(env.msr_mask, PowerPCCPU), VMSTATE_UINT64_EQUAL(env.insns_flags, PowerPCCPU), -- 2.1.4