All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: George Dunlap <george.dunlap@eu.citrix.com>,
	Roger Pau Monne <roger.pau@citrix.com>, KeirFraser <keir@xen.org>,
	xen-devel@lists.xen.org
Subject: Re: [PATCH] xen: fix initialization of wallclock time for PVHVM on migration
Date: Tue, 11 Jun 2013 14:59:12 +0100	[thread overview]
Message-ID: <1370959152.24512.319.camel@zakaz.uk.xensource.com> (raw)
In-Reply-To: <51B7303202000078000DD128@nat28.tlf.novell.com>

On Tue, 2013-06-11 at 13:12 +0100, Jan Beulich wrote:
> >>> On 11.06.13 at 14:01, George Dunlap <george.dunlap@eu.citrix.com> wrote:
> > On 06/11/2013 12:59 PM, Jan Beulich wrote:
> >>>>> On 11.06.13 at 12:46, Roger Pau Monne <roger.pau@citrix.com> wrote:
> >>> The initial values of the wallclock time in the shared info page are
> >>> set for PVHVM guests when the hypercall page is initialized, since the
> >>> hypercall page is not reinitialized on resume, the hypervisor
> >>> wallclock time is not properly set on resume.
> >>>
> >>> Fix it by forcing an update of the wallclock values when the shared
> >>> info page is mapped.
> >>
> >> NACK - this is a guest side bug. After migration, a guest _has_ to
> >> re-init the hypercall page, as it may have got migrated between
> >> a VMX and an SVM machine, and the hypercall instructions are
> >> different between them.
> > 
> > Does migrating from VMX to SVM actually work?
> 
> If you sufficiently feature-restrict both hosts, it should work. At
> least it was made work years ago iirc (see the sysenter/syscall
> emulation code in the x86 emulator - the only case where this
> may be needed is when doing cross vendor migration).

Doesn't the presence of that emulation contradict the requirement to
reinit the hypercall page?

My recollection is that although it could be made to work the
performance would suffer horribly precisely due to this emulation.

Ian.

  reply	other threads:[~2013-06-11 13:59 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-11 10:46 [PATCH] xen: fix initialization of wallclock time for PVHVM on migration Roger Pau Monne
2013-06-11 11:59 ` Jan Beulich
2013-06-11 12:01   ` George Dunlap
2013-06-11 12:12     ` Jan Beulich
2013-06-11 13:59       ` Ian Campbell [this message]
2013-06-11 14:04         ` Jan Beulich
2013-06-12 13:36           ` Egger, Christoph
2013-06-11 12:17   ` Roger Pau Monné
2013-06-11 13:15     ` konrad wilk
2013-06-11 14:02     ` Jan Beulich
2013-06-11 13:38   ` Roger Pau Monné
2013-06-11 14:16     ` Jan Beulich
2013-06-11 14:41       ` Konrad Rzeszutek Wilk
2013-06-11 15:05       ` Keir Fraser
2013-06-11 15:45         ` Keir Fraser
2013-06-11 15:59           ` Roger Pau Monné
2013-06-11 16:12             ` Keir Fraser
2013-06-11 16:14               ` Roger Pau Monné
2013-06-11 15:59           ` Jan Beulich
2013-06-12 13:50           ` Konrad Rzeszutek Wilk
2013-06-12 13:55             ` Roger Pau Monné
2013-06-11 15:50     ` Keir Fraser

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=1370959152.24512.319.camel@zakaz.uk.xensource.com \
    --to=ian.campbell@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=keir@xen.org \
    --cc=roger.pau@citrix.com \
    --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.