From a2ae9df7c991eca6c1ee6f42dbb18701a64175c3 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 4 Nov 2014 18:31:19 +0100 Subject: [PATCH] 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-format-patch failed