From: Bandan Das Date: Mon, 21 Apr 2014 19:20:14 +0000 (-0400) Subject: KVM: x86: Check for host supported fields in shadow vmcs X-Git-Tag: omap-for-v3.16/be-signed~15^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe2b201b3be91575857227da7ef21f661bc460b1;p=pandora-kernel.git KVM: x86: Check for host supported fields in shadow vmcs We track shadow vmcs fields through two static lists, one for read only and another for r/w fields. However, with addition of new vmcs fields, not all fields may be supported on all hosts. If so, copy_vmcs12_to_shadow() trying to vmwrite on unsupported hosts will result in a vmwrite error. For example, commit 36be0b9deb23161 introduced GUEST_BNDCFGS, which is not supported by all processors. Filter out host unsupported fields before letting guests use shadow vmcs Signed-off-by: Bandan Das Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed