From: Eric Blake <eblake@redhat.com>
To: cyrilbur@gmail.com, qemu-devel@nongnu.org
Cc: qemu-ppc@nongnu.org, Cyril Bur <cyril.bur@au1.ibm.com>
Subject: Re: [Qemu-devel] [PATCH for-2.2] spapr: add host Linux version information to device tree
Date: Fri, 18 Jul 2014 05:59:28 -0600 [thread overview]
Message-ID: <53C90C20.8070400@redhat.com> (raw)
In-Reply-To: <1405657877-12353-1-git-send-email-cyrilbur@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1496 bytes --]
On 07/17/2014 10:31 PM, cyrilbur@gmail.com wrote:
> It may prove useful know which Linux distribution version the host machine
> is running when an issue in the guest arises but a user cannot access
> the host.
>
> Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>
> ---
> hw/ppc/spapr.c | 8 +++++++
> target-ppc/kvm.c | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++
> target-ppc/kvm_ppc.h | 6 +++++
> 3 files changed, 76 insertions(+)
>
> diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
> index 6b48a26..391d47a 100644
> --- a/hw/ppc/spapr.c
> +++ b/hw/ppc/spapr.c
> @@ -375,6 +375,14 @@ static void *spapr_create_fdt_skel(hwaddr initrd_base,
> _FDT((fdt_property_string(fdt, "vm,uuid", buf)));
> g_free(buf);
>
> + /*
> + * Add info to the guest FDT to tell it what linux the host is
> + */
> + if (kvmppc_get_linux_host(&buf)) {
> + _FDT((fdt_property_string(fdt, "linux,host", buf)));
> + g_free(buf);
> + }
Ouch. What does this do for migration? By exposing it to the guest,
you have made it part of the guest ABI, and now you have limited
yourself to migrate only when the destination host is identical to the
source if you don't want to risk breaking the guest. Without this, it
seems feasible to migrate from a machine on an older host to another
machine on a newer host.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2014-07-18 11:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-18 4:31 [Qemu-devel] [PATCH for-2.2] spapr: add host Linux version information to device tree cyrilbur
2014-07-18 11:59 ` Eric Blake [this message]
2014-07-18 12:01 ` [Qemu-devel] [Qemu-ppc] " Alexander Graf
2014-07-22 22:35 ` Cyril Bur
2014-07-24 13:15 ` Alexander Graf
2014-07-28 6:47 ` Alexey Kardashevskiy
2014-07-28 7:50 ` Alexander Graf
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=53C90C20.8070400@redhat.com \
--to=eblake@redhat.com \
--cc=cyril.bur@au1.ibm.com \
--cc=cyrilbur@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/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.