From: Paul Durrant <xadimgnik@gmail.com>
To: "'Dongli Zhang'" <dongli.zhang@oracle.com>,
"'Andrew Cooper'" <andrew.cooper3@citrix.com>,
"'Anastassios Nanos'" <anastassios.nanos@sunlight.io>,
<xen-devel@lists.xen.org>
Subject: RE: Live migration and PV device handling
Date: Mon, 6 Apr 2020 08:50:21 +0100 [thread overview]
Message-ID: <001301d60be8$06afa1a0$140ee4e0$@xen.org> (raw)
In-Reply-To: <d698f1ed-247e-404c-04ce-762c651771d1@oracle.com>
> -----Original Message-----
> From: Xen-devel <xen-devel-bounces@lists.xenproject.org> On Behalf Of Dongli Zhang
> Sent: 03 April 2020 23:33
> To: Andrew Cooper <andrew.cooper3@citrix.com>; Anastassios Nanos <anastassios.nanos@sunlight.io>; xen-
> devel@lists.xen.org
> Subject: Re: Live migration and PV device handling
>
> Hi Andrew,
>
> On 4/3/20 5:42 AM, Andrew Cooper wrote:
> > On 03/04/2020 13:32, Anastassios Nanos wrote:
> >> Hi all,
> >>
> >> I am trying to understand how live-migration happens in xen. I am
> >> looking in the HVM guest case and I have dug into the relevant parts
> >> of the toolstack and the hypervisor regarding memory, vCPU context
> >> etc.
> >>
> >> In particular, I am interested in how PV device migration happens. I
> >> assume that the guest is not aware of any suspend/resume operations
> >> being done
> >
> > Sadly, this assumption is not correct. HVM guests with PV drivers
> > currently have to be aware in exactly the same way as PV guests.
> >
> > Work is in progress to try and address this. See
> > https://xenbits.xen.org/gitweb/?p=xen.git;a=commitdiff;h=775a02452ddf3a6889690de90b1a94eb29c3c732
> > (sorry - for some reason that doc isn't being rendered properly in
> > https://xenbits.xen.org/docs/ )
> >
>
> I read below from the commit:
>
> +* The toolstack choose a randomized domid for initial creation or default
> +migration, but preserve the source domid non-cooperative migration.
> +Non-Cooperative migration will have to be denied if the domid is
> +unavailable on the target host, but randomization of domid on creation
> +should hopefully minimize the likelihood of this. Non-Cooperative migration
> +to localhost will clearly not be possible.
>
> Does that indicate while scope of domid_t is shared by a single server in old
> design, the scope of domid_t is shared by a cluster of server in new design?
>
> That is, the domid should be unique in the cluster of all servers if we expect
> non-cooperative migration always succeed?
>
That would be necessary to guarantee success (or rather guarantee no failure due to domid clash) but the scope of xl/libxl is single serve, hence randomization is the best we have to reduce clashes to a minimum.
Paul
next prev parent reply other threads:[~2020-04-06 7:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-03 12:32 Live migration and PV device handling Anastassios Nanos
2020-04-03 12:42 ` Andrew Cooper
2020-04-03 22:32 ` Dongli Zhang
2020-04-06 7:50 ` Paul Durrant [this message]
2020-04-06 13:15 ` Andrew Cooper
2020-04-06 17:16 ` Tamas K Lengyel
2020-04-06 17:24 ` Andrew Cooper
2020-04-06 17:31 ` Tamas K Lengyel
2020-04-07 7:57 ` Paul Durrant
2020-04-07 14:34 ` Tamas K Lengyel
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='001301d60be8$06afa1a0$140ee4e0$@xen.org' \
--to=xadimgnik@gmail.com \
--cc=anastassios.nanos@sunlight.io \
--cc=andrew.cooper3@citrix.com \
--cc=dongli.zhang@oracle.com \
--cc=paul@xen.org \
--cc=xen-devel@lists.xen.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.