From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Jan Beulich <jbeulich@novell.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: x86's context switch ordering of operations
Date: Tue, 29 Apr 2008 10:03:40 -0700 [thread overview]
Message-ID: <481754EC.9030109@goop.org> (raw)
In-Reply-To: <48173326.76E4.0078.0@novell.com>
Jan Beulich wrote:
> 1) How does the storing of vcpu_info_mfn in the hypervisor survive
> migration or save/restore? The mainline Linux code, which uses this
> hypercall, doesn't appear to make any attempt to revert to using the
> default location during suspend or to re-setup the alternate location
> during resume (but of course I'm not sure that guest is save/restore/
> migrate ready in the first place). I would imagine it to be at least
> difficult for the guest to manage its state post resume without the
> hypervisor having restored the previously established alternative
> placement.
>
The only kernel which uses it is 32-on-32 pvops, and that doesn't
currently support migration. It would be easy for the guest to restore
that state for itself shortly after resuming.
I still need to add 32-on-64 and 64-on-64 implementations for this.
Just haven't looked at it yet.
> 2) The implementation in the hypervisor seems to have added yet another
> scalibility issue (on 32-bits), as this is being carried out using
> map_domain_page_global() - if there are sufficiently many guests with
> sufficiently many vCPU-s, there just won't be any space left at some
> point. This worries me especially in the context of seeing a call to
> sh_map_domain_page_global() that is followed by a BUG_ON() checking
> whether the call failed.
>
Yes, we discussed it, and, erm, don't do that. Guests should be able to
deal with VCPUOP_register_vcpu_info failing, but that doesn't address
overall heap starvation.
J
prev parent reply other threads:[~2008-04-29 17:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-29 12:39 x86's context switch ordering of operations Jan Beulich
2008-04-29 12:50 ` Keir Fraser
2008-04-29 13:39 ` Jan Beulich
2008-04-29 13:58 ` Keir Fraser
2008-04-29 15:37 ` Jan Beulich
2008-04-29 16:52 ` Keir Fraser
2008-04-29 17:03 ` Jeremy Fitzhardinge [this message]
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=481754EC.9030109@goop.org \
--to=jeremy@goop.org \
--cc=jbeulich@novell.com \
--cc=xen-devel@lists.xensource.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.