From: Paolo Bonzini Date: Tue, 22 Sep 2015 21:02:14 +0000 (+0200) Subject: KVM: x86: use correct page table format to check nested page table reserved bits X-Git-Tag: omap-for-v4.4/cleanup-pt1~56^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fec21449a62702a582cecbb0b351363e039c95e;p=pandora-kernel.git KVM: x86: use correct page table format to check nested page table reserved bits Intel CPUID on AMD host or vice versa is a weird case, but it can happen. Handle it by checking the host CPU vendor instead of the guest's in reset_tdp_shadow_zero_bits_mask. For speed, the check uses the fact that Intel EPT has an X (executable) bit while AMD NPT has NX. Reported-by: Borislav Petkov Tested-by: Borislav Petkov Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed