From: Rusty Russell <rusty@rustcorp.com.au>
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
kvm-devel@lists.sourceforge.net, Avi Kivity <avi@qumranet.com>,
Ingo Molnar <mingo@elte.hu>, Dor Laor <dor.laor@qumranet.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Refactor hypercall infrastructure
Date: Sat, 15 Sep 2007 12:35:02 +1000 [thread overview]
Message-ID: <1189823702.7262.68.camel@localhost.localdomain> (raw)
In-Reply-To: <46EAF4C6.8090903@goop.org>
On Fri, 2007-09-14 at 13:53 -0700, Jeremy Fitzhardinge wrote:
> Anthony Liguori wrote:
> > This patch refactors the current hypercall infrastructure to better support live
> > migration and SMP. It eliminates the hypercall page by trapping the UD
> > exception that would occur if you used the wrong hypercall instruction for the
> > underlying architecture and replacing it with the right one lazily.
> >
>
> I guess it would be pretty rude/unlikely for these opcodes to get reused
> in other implementations... But couldn't you make the page trap
> instead, rather than relying on an instruction fault?
That's a pain for inline hypercalls tho. I was planning on moving
lguest to this model (which is interesting, because AFAICT this insn
will cause a #UD or #GP depending on whether VT is supported on this box
so I have to look for both).
Cheers,
Rusty.
WARNING: multiple messages have this Message-ID (diff)
From: Rusty Russell <rusty-8n+1lVoiYb80n/F98K4Iww@public.gmane.org>
To: Jeremy Fitzhardinge <jeremy-TSDbQ3PG+2Y@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Subject: Re: [PATCH] Refactor hypercall infrastructure
Date: Sat, 15 Sep 2007 12:35:02 +1000 [thread overview]
Message-ID: <1189823702.7262.68.camel@localhost.localdomain> (raw)
In-Reply-To: <46EAF4C6.8090903-TSDbQ3PG+2Y@public.gmane.org>
On Fri, 2007-09-14 at 13:53 -0700, Jeremy Fitzhardinge wrote:
> Anthony Liguori wrote:
> > This patch refactors the current hypercall infrastructure to better support live
> > migration and SMP. It eliminates the hypercall page by trapping the UD
> > exception that would occur if you used the wrong hypercall instruction for the
> > underlying architecture and replacing it with the right one lazily.
> >
>
> I guess it would be pretty rude/unlikely for these opcodes to get reused
> in other implementations... But couldn't you make the page trap
> instead, rather than relying on an instruction fault?
That's a pain for inline hypercalls tho. I was planning on moving
lguest to this model (which is interesting, because AFAICT this insn
will cause a #UD or #GP depending on whether VT is supported on this box
so I have to look for both).
Cheers,
Rusty.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
next prev parent reply other threads:[~2007-09-15 3:05 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-14 19:45 [PATCH] Refactor hypercall infrastructure Anthony Liguori
[not found] ` <11897991353793-git-send-email-aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-09-14 19:47 ` Anthony Liguori
2007-09-14 20:53 ` Jeremy Fitzhardinge
2007-09-14 21:02 ` [kvm-devel] " Anthony Liguori
2007-09-14 21:02 ` Anthony Liguori
2007-09-14 21:20 ` [kvm-devel] " Zachary Amsden
2007-09-14 21:20 ` Zachary Amsden
2007-09-14 21:44 ` [kvm-devel] " Anthony Liguori
2007-09-14 21:44 ` Anthony Liguori
2007-09-15 3:37 ` [kvm-devel] " Zachary Amsden
2007-09-15 3:37 ` Zachary Amsden
2007-09-15 8:08 ` [kvm-devel] " Avi Kivity
2007-09-15 8:08 ` Avi Kivity
2007-09-15 17:33 ` [kvm-devel] " Anthony Liguori
2007-09-15 17:33 ` Anthony Liguori
2007-09-14 21:22 ` [kvm-devel] " Jeremy Fitzhardinge
2007-09-14 21:22 ` Jeremy Fitzhardinge
2007-09-14 21:46 ` [kvm-devel] " Anthony Liguori
2007-09-14 21:46 ` Anthony Liguori
2007-09-14 21:52 ` [kvm-devel] " Jeremy Fitzhardinge
2007-09-14 21:52 ` Jeremy Fitzhardinge
2007-09-14 22:08 ` [kvm-devel] " Anthony Liguori
2007-09-14 22:08 ` Anthony Liguori
2007-09-14 22:40 ` [kvm-devel] " Nakajima, Jun
2007-09-14 22:40 ` Nakajima, Jun
2007-09-14 23:00 ` [kvm-devel] " Jeremy Fitzhardinge
2007-09-14 23:00 ` Jeremy Fitzhardinge
2007-09-15 0:10 ` [kvm-devel] " Nakajima, Jun
2007-09-15 0:10 ` Nakajima, Jun
2007-09-15 0:28 ` [kvm-devel] " Jeremy Fitzhardinge
2007-09-15 0:28 ` Jeremy Fitzhardinge
2007-09-15 1:04 ` [kvm-devel] " Nakajima, Jun
2007-09-15 1:04 ` Nakajima, Jun
2007-09-15 4:53 ` [kvm-devel] " Jeremy Fitzhardinge
2007-09-15 4:53 ` Jeremy Fitzhardinge
2007-09-15 6:11 ` [kvm-devel] " Nakajima, Jun
2007-09-15 6:11 ` Nakajima, Jun
2007-09-15 18:23 ` [kvm-devel] " Anthony Liguori
2007-09-17 18:14 ` Nakajima, Jun
2007-09-17 18:14 ` Nakajima, Jun
2007-09-17 18:27 ` [kvm-devel] " Anthony Liguori
2007-09-17 19:15 ` Jeremy Fitzhardinge
2007-09-17 19:15 ` Jeremy Fitzhardinge
2007-09-17 19:33 ` [kvm-devel] " Anthony Liguori
2007-09-17 19:33 ` Anthony Liguori
2007-09-17 19:15 ` [kvm-devel] " Jeremy Fitzhardinge
2007-09-17 20:52 ` Nakajima, Jun
2007-09-17 20:52 ` Nakajima, Jun
2007-09-15 8:00 ` [kvm-devel] " Avi Kivity
2007-09-15 8:00 ` Avi Kivity
2007-09-15 7:53 ` [kvm-devel] " Avi Kivity
2007-09-15 7:53 ` Avi Kivity
2007-09-15 2:35 ` Rusty Russell [this message]
2007-09-15 2:35 ` Rusty Russell
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=1189823702.7262.68.camel@localhost.localdomain \
--to=rusty@rustcorp.com.au \
--cc=aliguori@us.ibm.com \
--cc=avi@qumranet.com \
--cc=dor.laor@qumranet.com \
--cc=jeremy@goop.org \
--cc=kvm-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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.