WHPX: register for unrecognized MSR exits
commite7ca549fc8caf9b1c79814f3854622448815f2bf
authorJustin Terry (VM) <juterry@microsoft.com>
Tue, 5 Jun 2018 22:15:28 +0000 (5 22:15 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Jun 2018 17:05:36 +0000 (28 19:05 +0200)
treedc059d8602fcdcb143742d666eacb025218a295a
parente1753a7e1d8174f5861367504c5cea5fbcd85953
WHPX: register for unrecognized MSR exits

Some variations of Linux kernels end up accessing MSR's that the Windows
Hypervisor doesn't implement which causes a GP to be returned to the guest.
This fix registers QEMU for unimplemented MSR access and globally returns 0 on
reads and ignores writes. This behavior is allows the Linux kernel to probe the
MSR with a write/read/check sequence it does often without failing the access.

Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
Message-Id: <20180605221500.21674-2-juterry@microsoft.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/whpx-all.c