From: Eugene Korenevsky Date: Thu, 11 Dec 2014 05:53:27 +0000 (+0300) Subject: KVM: nVMX: Improve nested msr switch checking X-Git-Tag: fixes-v4.0-rc1~113^2~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9ac033e6b6970c7061725fc6824b3933eb5a0e7;p=pandora-kernel.git KVM: nVMX: Improve nested msr switch checking This patch improve checks required by Intel Software Developer Manual. - SMM MSRs are not allowed. - microcode MSRs are not allowed. - check x2apic MSRs only when LAPIC is in x2apic mode. - MSR switch areas must be aligned to 16 bytes. - address of first and last byte in MSR switch areas should not set any bits beyond the processor's physical-address width. Also it adds warning messages on failures during MSR switch. These messages are useful for people who debug their VMMs in nVMX. Signed-off-by: Eugene Korenevsky Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed