From: Gleb Natapov Date: Mon, 21 Jan 2013 13:36:49 +0000 (+0200) Subject: KVM: VMX: set vmx->emulation_required only when needed. X-Git-Tag: v3.9-rc1~97^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=141687869fb904e912568c6b94a6b1fa2114f6ed;p=pandora-kernel.git KVM: VMX: set vmx->emulation_required only when needed. If emulate_invalid_guest_state=false vmx->emulation_required is never actually used, but it ends up to be always set to true since handle_invalid_guest_state(), the only place it is reset back to false, is never called. This, besides been not very clean, makes vmexit and vmentry path to check emulate_invalid_guest_state needlessly. The patch fixes that by keeping emulation_required coherent with emulate_invalid_guest_state setting. Signed-off-by: Gleb Natapov Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed