All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Wei Huang <huangwei.virt@gmail.com>, kvm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, jan.kiszka@siemens.com,
	gleb@kernel.org, avi.kivity@gmail.com
Subject: Re: [PATCH v2 0/4] KVM: x86: get CPL from SS.DPL
Date: Mon, 26 May 2014 14:53:24 +0200	[thread overview]
Message-ID: <53833944.6030605@redhat.com> (raw)
In-Reply-To: <CALeycy-hH7=S5tLo1TWQTqGpwsjjx6_c3yaJZs0Vywyv-fZQaQ@mail.gmail.com>

Il 26/05/2014 00:58, Wei Huang ha scritto:
> If so , my question: is there other special cases similar to task switch
> which can break patch 4?

I don't think so.  CPL can only change when SS is loaded, i.e. for 
inter-privilege transfers that aren't far calls or far jumps to a 
conforming code segment.

I count only three such cases (protected mode int, protected mode iret, 
call gate), none of which is implemented in the KVM emulator.  In fact, 
the emulator doesn't implement task gates either---luckily all 
information about the destination task is provided by the processor in 
the VMCB or VMCS.

Paolo

  reply	other threads:[~2014-05-26 12:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CALeycy_8q9jcbwCGp6qpcN8TyH7Ve2WUxCbo+kcd_bHYzXDqOA@mail.gmail.com>
2014-05-25 22:58 ` [PATCH v2 0/4] KVM: x86: get CPL from SS.DPL Wei Huang
2014-05-26 12:53   ` Paolo Bonzini [this message]
2014-05-15 16:51 Paolo Bonzini

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=53833944.6030605@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=avi.kivity@gmail.com \
    --cc=gleb@kernel.org \
    --cc=huangwei.virt@gmail.com \
    --cc=jan.kiszka@siemens.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@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 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.