mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sean Christopherson <seanjc@google.com>
To: Sean Christopherson <seanjc@google.com>,
	Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
	Hou Wenlong <houwenlong.hwl@antgroup.com>
Subject: Re: [PATCH] KVM: x86: Assert that the emulator doesn't load CS with garbage in !RM
Date: Fri, 24 Mar 2023 16:38:12 -0700	[thread overview]
Message-ID: <167969133728.2756130.12262089372774789220.b4-ty@google.com> (raw)
In-Reply-To: <20230216202254.671772-1-seanjc@google.com>

On Thu, 16 Feb 2023 12:22:54 -0800, Sean Christopherson wrote:
> Yell loudly if KVM attempts to load CS outside of Real Mode without an
> accompanying control transfer type, i.e. on X86_TRANSFER_NONE.  KVM uses
> X86_TRANSFER_NONE when emulating IRET and exceptions/interrupts for Real
> Mode, but IRET emulation for Protected Mode is non-existent.  WARN instead
> of trying to pass in a less-wrong type, e.g. X86_TRANSFER_RET, as
> emulating IRET goes even beyond emulating FAR RET (which KVM also doesn't
> fully support).
> 
> [...]

Applied to kvm-x86 misc, thanks!

[1/1] KVM: x86: Assert that the emulator doesn't load CS with garbage in !RM
      https://github.com/kvm-x86/linux/commit/65966aaca18a

--
https://github.com/kvm-x86/linux/tree/next
https://github.com/kvm-x86/linux/tree/fixes

      reply	other threads:[~2023-03-24 23:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-16 20:22 Sean Christopherson
2023-03-24 23:38 ` Sean Christopherson [this message]

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=167969133728.2756130.12262089372774789220.b4-ty@google.com \
    --to=seanjc@google.com \
    --cc=houwenlong.hwl@antgroup.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    /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

all inboxes | Powered by JetHome®