From: Avi Kivity <avi@redhat.com>
To: Glauber Costa <glommer@gmail.com>
Cc: Alexander Graf <agraf@suse.de>, Andi Kleen <andi@firstfloor.org>,
"Serebrin,
Benjamin (Calendar)" <Benjamin.Serebrin@exchange.amd.com>,
Skywing <Skywing@valhallalegends.com>,
Anthony Liguori <anthony@codemonkey.ws>,
kvm@vger.kernel.org, Amit Shah <amit.shah@redhat.com>,
"Wahlig, Elsie" <elsie.wahlig@amd.com>,
"Nakajima, Jun" <jun.nakajima@intel.com>
Subject: Re: Cross vendor migration ideas
Date: Sun, 16 Nov 2008 16:58:59 +0200 [thread overview]
Message-ID: <49203533.2060209@redhat.com> (raw)
In-Reply-To: <5d6222a80811150938r1ed70764s678bd5b7552b0fb5@mail.gmail.com>
Glauber Costa wrote:
> We can possibly do it a little bit better by emulating in the guest directly.
> So the deal would be emulation both in the host and the guest. If the
> guest have it,
> fine. Otherwise, we use host emulation, that is slower, but works.
>
If the guest is modifiable, this is easy. Include both syscall and
sysenter paths in the vsyscall page, with a jmp to select between them.
If we trap a #UD pointing at a syscall or sysenter, emulate it, and
patch the jmp instruction to point at the other path. This way we have
a self-adjusting syscall/sysenter entry point. We also need to tell kvm
not to emulate the instruction, so that the #UD actually reaches the kernel.
If the guest is not modifiable, this means patching. This is much
harder than tpr patching since we don't have any space to hide our code
in. Maybe we can reverse engineer the vsyscall page and hack it, but
this may take a lot of work.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2008-11-16 14:59 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-12 15:39 Cross vendor migration ideas Alexander Graf
2008-11-12 15:45 ` Anthony Liguori
2008-11-12 15:50 ` Alexander Graf
2008-11-12 15:59 ` Anthony Liguori
2008-11-13 0:02 ` Skywing
2008-11-13 1:48 ` Serebrin, Benjamin (Calendar)
2008-11-15 13:03 ` Andi Kleen
2008-11-15 16:39 ` Alexander Graf
2008-11-15 17:37 ` Andi Kleen
2008-11-16 15:36 ` Avi Kivity
2008-11-17 11:09 ` Andi Kleen
2008-11-17 11:59 ` Avi Kivity
2008-11-15 17:38 ` Glauber Costa
2008-11-16 14:58 ` Avi Kivity [this message]
2008-11-13 10:16 ` Avi Kivity
2008-11-12 20:06 ` Andi Kleen
2008-11-12 20:52 ` Alexander Graf
2008-11-13 10:20 ` Avi Kivity
2008-11-12 16:52 ` Amit Shah
2008-11-12 17:19 ` Alexander Graf
2008-11-13 4:35 ` Amit Shah
2008-11-13 13:38 ` Alexander Graf
2008-11-14 13:07 ` Amit Shah
2008-11-14 23:43 ` Nitin A Kamble
2008-11-17 10:07 ` Amit Shah
-- strict thread matches above, loose matches on Subject: below --
2008-11-16 0:23 Skywing
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=49203533.2060209@redhat.com \
--to=avi@redhat.com \
--cc=Benjamin.Serebrin@exchange.amd.com \
--cc=Skywing@valhallalegends.com \
--cc=agraf@suse.de \
--cc=amit.shah@redhat.com \
--cc=andi@firstfloor.org \
--cc=anthony@codemonkey.ws \
--cc=elsie.wahlig@amd.com \
--cc=glommer@gmail.com \
--cc=jun.nakajima@intel.com \
--cc=kvm@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox