All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Cédric Le Goater" <clg@fr.ibm.com>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: "Thomas Huth" <thuth@redhat.com>,
	"Mark Cave-Ayland" <mark.cave-ayland@ilande.co.uk>,
	qemu-devel@nongnu.org, "Alexander Graf" <agraf@suse.de>,
	"Cédric Le Goater" <clg@fr.ibm.com>,
	qemu-ppc@nongnu.org
Subject: [Qemu-devel] [RFC PATCH 1/2] target-ppc: migrate interrupt vectors address for spapr VM
Date: Mon, 21 Mar 2016 15:02:07 +0100	[thread overview]
Message-ID: <1458568928-3055-2-git-send-email-clg@fr.ibm.com> (raw)
In-Reply-To: <1458568928-3055-1-git-send-email-clg@fr.ibm.com>

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 <clg@fr.ibm.com>
---
 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

  reply	other threads:[~2016-03-21 14:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-21 14:02 [Qemu-devel] [RFC PATCH 0/2] ppc: fix spapr migration (TCG) Cédric Le Goater
2016-03-21 14:02 ` Cédric Le Goater [this message]
2016-03-21 16:18   ` [Qemu-devel] [RFC PATCH 1/2] target-ppc: migrate interrupt vectors address for spapr VM Thomas Huth
2016-03-21 16:45     ` [Qemu-devel] [Qemu-ppc] " Greg Kurz
2016-03-21 16:51     ` [Qemu-devel] " Cédric Le Goater
2016-03-21 17:04       ` [Qemu-devel] [Qemu-ppc] " Greg Kurz
2016-03-22  0:15       ` [Qemu-devel] " David Gibson
2016-03-22  7:13         ` Cédric Le Goater
2016-03-21 14:02 ` [Qemu-devel] [RFC PATCH 2/2] target-ppc: fix interrupt vectors address migration Cédric Le Goater
2016-03-22  0:19   ` David Gibson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1458568928-3055-2-git-send-email-clg@fr.ibm.com \
    --to=clg@fr.ibm.com \
    --cc=agraf@suse.de \
    --cc=david@gibson.dropbear.id.au \
    --cc=mark.cave-ayland@ilande.co.uk \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.