From: Paolo Bonzini <pbonzini@redhat.com>
To: Sean Christopherson <seanjc@google.com>
Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org,
jroedel@suse.de, mlevitsk@redhat.com
Subject: Re: [PATCH] KVM: nSVM: prepare guest save area while is_guest_mode is true
Date: Thu, 18 Feb 2021 19:28:55 +0100 [thread overview]
Message-ID: <50bcc6e3-5f6e-32a3-6975-db7d857e88f3@redhat.com> (raw)
In-Reply-To: <YC6uGgKgImRnuhTA@google.com>
On 18/02/21 19:12, Sean Christopherson wrote:
>> Yeah, the problem is I don't understand why 06fc7772690d fixed things in 11
>> year old KVM instead of breaking them, because effectively this patch is
>> reverting it.
>
> 11 year old KVM didn't grab a different VMCB when updating the intercepts, it
> had already copied/merged L1's stuff to L0's VMCB, and then updated L0's VMCB
> regardless of is_nested().
Ok, so the bug was introduced when adding recalc_intercepts, which threw
away the intercept manipulations that svm_set_cr0 had done in the
meanwhile. That's commit 384c63684397 ("KVM: SVM: Add function to
recalculate intercept masks", 2011-01-12).
That piece of information makes me feel less uneasy about missing
something. recalc_intercepts has been there for a long time, but not as
long as 06fc7772690d.
Paolo
next prev parent reply other threads:[~2021-02-18 19:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-18 16:28 Paolo Bonzini
2021-02-18 17:42 ` Sean Christopherson
2021-02-18 18:00 ` Paolo Bonzini
2021-02-18 18:12 ` Sean Christopherson
2021-02-18 18:28 ` Paolo Bonzini [this message]
2021-02-22 15:25 ` Vitaly Kuznetsov
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=50bcc6e3-5f6e-32a3-6975-db7d857e88f3@redhat.com \
--to=pbonzini@redhat.com \
--cc=jroedel@suse.de \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mlevitsk@redhat.com \
--cc=seanjc@google.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®