summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/e500_tlb.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2013-01-21 15:36:49 +0200
committerMarcelo Tosatti <mtosatti@redhat.com>2013-01-24 00:40:31 -0200
commit141687869fb904e912568c6b94a6b1fa2114f6ed (patch)
tree6c2c62b50e8b499db77ecb5f1b1d1570f06d49a8 /arch/powerpc/kvm/e500_tlb.c
parent378a8b099fc207ddcb91b19a8c1457667e0af398 (diff)
downloadtalos-op-linux-141687869fb904e912568c6b94a6b1fa2114f6ed.tar.gz
talos-op-linux-141687869fb904e912568c6b94a6b1fa2114f6ed.zip
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 <gleb@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/powerpc/kvm/e500_tlb.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud