Revert "KVM: nested VMX: disable perf cpuid reporting"
authorJim Mattson <jmattson@google.com>
Wed, 21 Dec 2016 00:34:50 +0000 (16:34 -0800)
committerSasha Levin <alexander.levin@verizon.com>
Tue, 13 Jun 2017 13:29:19 +0000 (09:29 -0400)
commit4736ccc83dfca59e589eae8c183ecd0d579e75a2
treeeee5916cfc6fae655299da3446e630970696f6c0
parent7a07dbb8c25c3a9c2d9461d22faf38436c160239
Revert "KVM: nested VMX: disable perf cpuid reporting"

[ Upstream commit 0b4c208d443ba2af82b4c70f99ca8df31e9a0020 ]

This reverts commit bc6134942dbbf31c25e9bd7c876be5da81c9e1ce.

A CPUID instruction executed in VMX non-root mode always causes a
VM-exit, regardless of the leaf being queried.

Fixes: bc6134942dbb ("KVM: nested VMX: disable perf cpuid reporting")
Signed-off-by: Jim Mattson <jmattson@google.com>
[The issue solved by bc6134942dbb has been resolved with ff651cb613b4
 ("KVM: nVMX: Add nested msr load/restore algorithm").]
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
arch/x86/kvm/cpuid.c
arch/x86/kvm/vmx.c