diff options
| author | 2022-07-15 23:00:13 +0000 | |
|---|---|---|
| committer | 2022-07-28 13:22:20 -0400 | |
| commit | 94bda2f4cd868046094351b06b87d7d1053e990d (patch) | |
| tree | 589bc00c4153f613d418ef544661f09b05fffbc4 /include/soc/git:/ssh:/git@git.zx2c4.com | |
| parent | KVM: SVM: Fix x2APIC MSRs interception (diff) | |
| download | linux-dev-94bda2f4cd868046094351b06b87d7d1053e990d.tar.xz linux-dev-94bda2f4cd868046094351b06b87d7d1053e990d.zip | |
KVM: x86: Reject loading KVM if host.PAT[0] != WB
Reject KVM if entry '0' in the host's IA32_PAT MSR is not programmed to
writeback (WB) memtype. KVM subtly relies on IA32_PAT entry '0' to be
programmed to WB by leaving the PAT bits in shadow paging and NPT SPTEs
as '0'. If something other than WB is in PAT[0], at _best_ guests will
suffer very poor performance, and at worst KVM will crash the system by
breaking cache-coherency expecations (e.g. using WC for guest memory).
Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20220715230016.3762909-2-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/soc/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
