From: Michael Roth <michael.roth@amd.com>
To: <seanjc@google.com>
Cc: <linux-kernel@vger.kernel.org>, <kvm@vger.kernel.org>,
Tom Lendacky <thomas.lendacky@amd.com>
Subject: re: Possible 5.19 regression for systems with 52-bit physical address support
Date: Thu, 28 Jul 2022 08:44:30 -0500 [thread overview]
Message-ID: <20220728134430.ulykdplp6fxgkyiw@amd.com> (raw)
In-Reply-To: 20220420002747.3287931-1-seanjc@google.com
Hi Sean,
With this patch applied, AMD processors that support 52-bit physical
address will result in MMIO caching being disabled. This ends up
breaking SEV-ES and SNP, since they rely on the MMIO reserved bit to
generate the appropriate NAE MMIO exit event.
This failure can also be reproduced on Milan by disabling mmio_caching
via KVM module parameter.
In the case of AMD, guests use a separate physical address range that
and so there are still reserved bits available to make use of the MMIO
caching. This adjustment happens in svm_adjust_mmio_mask(), but since
mmio_caching_enabled flag is 0, any attempts to update masks get
ignored by kvm_mmu_set_mmio_spte_mask().
Would adding 'force' parameter to kvm_mmu_set_mmio_spte_mask() that
svm_adjust_mmio_mask() can set to ignore enable_mmio_caching be
reasonable fix, or should we take a different approach?
Thanks!
-Mike
next reply other threads:[~2022-07-28 13:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-28 13:44 Michael Roth [this message]
2022-07-28 13:53 ` Possible 5.19 regression for systems with 52-bit physical address support Michael Roth
2022-07-28 14:56 ` Sean Christopherson
2022-07-28 15:43 ` Sean Christopherson
2022-07-28 16:05 ` Tom Lendacky
2022-07-28 16:06 ` Michael Roth
2022-07-28 18:06 ` Sean Christopherson
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=20220728134430.ulykdplp6fxgkyiw@amd.com \
--to=michael.roth@amd.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=seanjc@google.com \
--cc=thomas.lendacky@amd.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