From: Sean Christopherson <sean.j.christopherson@intel.com>
To: Qian Cai <cai@lca.pw>
Cc: Paolo Bonzini <pbonzini@redhat.com>, KVM <kvm@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: Intel KVM entry failed, hardware error 0x0
Date: Tue, 5 May 2020 20:32:48 -0700 [thread overview]
Message-ID: <20200506033247.GC19271@linux.intel.com> (raw)
In-Reply-To: <20200506030014.GB19271@linux.intel.com>
On Tue, May 05, 2020 at 08:00:15PM -0700, Sean Christopherson wrote:
> On Tue, May 05, 2020 at 10:32:15PM -0400, Qian Cai wrote:
> > Today’s linux-next started to fail with this config,
> >
> > https://raw.githubusercontent.com/cailca/linux-mm/master/kcsan.config
> >
> > qemu-kvm-2.12.0-99.module+el8.2.0+5827+8c39933c.x86_64
> >
> > I believe it was working yesterday. Before I bury myself bisecting it, does
> > anyone have any thought?
>
> It reproduces for me as well with my vanilla config in a VM. I can debug
> and/or bisect, should be quite quick in a VM.
>
> VM is bailing on the EPT Violation at the reset vector, i.e. on the very
> first exit. Presumably KVM is incorrectly setting vmx->fail somewhere.
The __FILL_RETURN_BUFFER in the VM-Exit path was recently modified and
changed how it clobbered EFLAGS, which causes KVM to think VM-Enter failed.
Commit 089dd8e53126 ("x86/speculation: Change FILL_RETURN_BUFFER to work
with objtool") introduced the change, but this is really a bug in KVM. The
VM-Exit path shouldn't rely on __FILL_RETURN_BUFFER to set EFLAGS to a
specific state, i.e. EFLAGS was always being clobbered, it just happened to
work before now.
I'll get a patch sent out shortly.
prev parent reply other threads:[~2020-05-06 3:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-06 2:32 Intel KVM entry failed, hardware error 0x0 Qian Cai
2020-05-06 3:00 ` Sean Christopherson
2020-05-06 3:32 ` 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=20200506033247.GC19271@linux.intel.com \
--to=sean.j.christopherson@intel.com \
--cc=cai@lca.pw \
--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 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.