From: "Michael R. Hines" <mrhines@linux.vnet.ibm.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: aliguori@us.ibm.com, quintela@redhat.com, qemu-devel@nongnu.org,
owasserm@redhat.com, abali@us.ibm.com, mrhines@us.ibm.com,
gokul@us.ibm.com, pbonzini@redhat.com, chegu_vinod@hp.com,
knoel@redhat.com
Subject: Re: [Qemu-devel] [PATCH 3/6] rdma: core logic
Date: Fri, 28 Jun 2013 10:22:41 -0400 [thread overview]
Message-ID: <51CD9C31.5040200@linux.vnet.ibm.com> (raw)
In-Reply-To: <CAFEAcA9LLvFyNUkc7w==zCffDqg=qxVbpJ3ZVr9-Fk89oOsV5A@mail.gmail.com>
On 06/28/2013 10:07 AM, Peter Maydell wrote:
> On 28 June 2013 15:00, Michael R. Hines <mrhines@linux.vnet.ibm.com> wrote:
>> On 06/28/2013 09:28 AM, Peter Maydell wrote:
>>>> Is endianess for the data a big issue when you are assume the migration
>>>> is happening across identical CPU architectures?
>>> Well:
>>> * is that a reasonable assumption? (why?)
>>
>> I would yes, because we're dealing raw guest RAM.
>> Migration of memory would not work across a different architecture
>> (particularly page tables - which would need to be canonicalized
>> and de-canonicalized).
> Raw guest RAM is fine, because the VM at the destination
> will (by definition) be running a guest of the same endianness.
> However it looks like in this code you have host (QEMU)
> code looking into the guest RAM, and the guest and host
> might not have the same endianness. (The easy way for them
> to be different is if you're using TCG rather than KVM;
> alternatively you might be running a big-endian VM inside KVM
> with a little-endian QEMU controlling it, if your architecture
> supports that.)
Alright, I see. I guess the moral of the story is that I should
not make any architecture assumptions about *any* part
of QEMU, then.
I'll add the remaining byte-swap routines for safety to the
patch before I sent out the next patch series.
>>> * if you try this on some setup where it's not true, do we
>>> fail helpfully or obscurely?
>> Shouldn't a check like that occur before the migration actually begins?
>> Is this specific to RDMA?
> Normal migration works fine for TCG because it doesn't depend on
> the endianness of the host vs the guest -- everything on the
> wire is in big-endian format and we byteswap field values as
> we marshall them. Guest RAM itself is just sent as a bag of bytes
> (conceptually speaking, anyway).
Understood.
- Michael
next prev parent reply other threads:[~2013-06-28 14:23 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-27 22:44 [Qemu-devel] [PATCH 0/6] rdma: core logic and unpin support mrhines
2013-06-27 22:44 ` [Qemu-devel] [PATCH 1/6] rdma: update documentation to reflect new " mrhines
2013-06-27 23:09 ` Eric Blake
2013-06-28 13:17 ` Michael R. Hines
2013-06-27 22:44 ` [Qemu-devel] [PATCH 2/6] rdma: introduce ram_handle_compressed() mrhines
2013-06-27 22:56 ` Peter Maydell
2013-06-28 7:17 ` Paolo Bonzini
2013-06-27 22:44 ` [Qemu-devel] [PATCH 3/6] rdma: core logic mrhines
2013-06-27 23:16 ` Peter Maydell
2013-06-28 13:23 ` Michael R. Hines
2013-06-28 13:28 ` Peter Maydell
2013-06-28 14:00 ` Michael R. Hines
2013-06-28 14:07 ` Peter Maydell
2013-06-28 14:22 ` Michael R. Hines [this message]
2013-06-28 7:33 ` Paolo Bonzini
2013-06-28 14:11 ` Michael R. Hines
2013-06-27 22:44 ` [Qemu-devel] [PATCH 4/6] rdma: allow state transitions between other states besides ACTIVE mrhines
2013-06-27 23:10 ` Eric Blake
2013-06-28 7:34 ` Paolo Bonzini
2013-06-27 22:44 ` [Qemu-devel] [PATCH 5/6] rdma: introduce MIG_STATE_NONE and change MIG_STATE_SETUP state transition mrhines
2013-06-27 22:44 ` [Qemu-devel] [PATCH 6/6] rdma: account for the time spent in MIG_STATE_SETUP through QMP mrhines
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=51CD9C31.5040200@linux.vnet.ibm.com \
--to=mrhines@linux.vnet.ibm.com \
--cc=abali@us.ibm.com \
--cc=aliguori@us.ibm.com \
--cc=chegu_vinod@hp.com \
--cc=gokul@us.ibm.com \
--cc=knoel@redhat.com \
--cc=mrhines@us.ibm.com \
--cc=owasserm@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=quintela@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.