diff options
author | Sean Christopherson <[email protected]> | 2022-07-15 23:00:13 +0000 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2022-07-28 13:22:20 -0400 |
commit | 94bda2f4cd868046094351b06b87d7d1053e990d (patch) | |
tree | 589bc00c4153f613d418ef544661f09b05fffbc4 /scripts/gdb/linux/mm.py | |
parent | 01e69cef63f88d809181f62f03a01d7295f2d5a4 (diff) |
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 <[email protected]>
Reviewed-by: Maxim Levitsky <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/mm.py')
0 files changed, 0 insertions, 0 deletions