Re: [RFC PATCH 2/2] KVM: emulate: clean up initializations in init_decode_cache

2014-04-04 Thread Paolo Bonzini
Hi Bandan. > diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c > index 8e2b866..eac488b 100644 > --- a/arch/x86/kvm/emulate.c > +++ b/arch/x86/kvm/emulate.c > @@ -1072,6 +1072,9 @@ static int decode_modrm(struct x86_emulate_ctxt *ctxt, > ctxt->modrm_reg = (ctxt->rex_prefix

[RFC PATCH 2/2] KVM: emulate: clean up initializations in init_decode_cache

2014-04-03 Thread Bandan Das
A lot of initializations are unnecessary as they get set to appropriate values before actually being used. Remove some of them and rework some others if the conditions that set them are not true Signed-off-by: Bandan Das --- arch/x86/include/asm/kvm_emulate.h | 16 +++-- arch/x86/kvm/emu