From: Paolo Bonzini Date: Tue, 4 Nov 2014 17:31:19 +0000 (+0100) Subject: kvm: x86: vmx: avoid returning bool to distinguish success from error X-Git-Tag: omap-for-v3.19/fixes-rc1~43^2~90 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2ae9df7c991eca6c1ee6f42dbb18701a64175c3;p=pandora-kernel.git kvm: x86: vmx: avoid returning bool to distinguish success from error Return a negative error code instead, and WARN() when we should be covering the entire 2-bit space of vmcs_field_type's return value. For increased robustness, add a BUILD_BUG_ON checking the range of vmcs_field_to_offset. Suggested-by: Tiejun Chen Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed