All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Hebbal Yacine <y_hebbal@esi.dz>
Cc: kvm@vger.kernel.org
Subject: Re: [Question] Switching VCPU CPL from the hypervisor ?
Date: Wed, 16 Dec 2015 18:48:38 +0100	[thread overview]
Message-ID: <5671A3F6.5060207@redhat.com> (raw)
In-Reply-To: <CACEoar5vk6mzeWYwcDsBFVxYfcYm3fyBufwA+BM1ZvP3PL5aVw@mail.gmail.com>



On 15/12/2015 18:02, Hebbal Yacine wrote:
> What I want to do is: when a controlled process is in user mode, i
> change its cpl to 0, force it to execute a code that is injected in the
> VM, set back its cpl to 3 and let it run like if nothing happened

Could you inject an SMI and place your code in the guest firmware's SMM
handler?  What input is needed by this CPL=0 code?

Paolo

  parent reply	other threads:[~2015-12-16 17:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-15 16:20 [Question] Switching VCPU CPL from the hypervisor ? Yacine HEBBAL
2015-12-15 16:53 ` Paolo Bonzini
2015-12-15 17:12   ` Yacine HEBBAL
     [not found]   ` <CACEoar5vk6mzeWYwcDsBFVxYfcYm3fyBufwA+BM1ZvP3PL5aVw@mail.gmail.com>
2015-12-16 17:48     ` Paolo Bonzini [this message]
2015-12-17 15:58       ` Yacine HEBBAL

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=5671A3F6.5060207@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=y_hebbal@esi.dz \
    /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.