On Thu, Oct 12, 2017 at 12:41:08PM +0200, Christoffer Dall wrote: > We currently have a separate read-modify-write of the HCR_EL2 on entry > to the guest for the sole purpose of setting the VF and VI bits, if set. > Since this is most rarely the case (only when using userspace IRQ chip > and interrupts are in flight), let's get rid of this operation and > instead modify the bits in the vcpu->arch.hcr[_el2] directly when > needed. > > Signed-off-by: Christoffer Dall <christoffer.dall@xxxxxxxxxx> > --- > arch/arm/include/asm/kvm_emulate.h | 9 ++------- > arch/arm/include/asm/kvm_host.h | 3 --- > arch/arm/kvm/emulate.c | 2 +- > arch/arm/kvm/hyp/switch.c | 2 +- > arch/arm64/include/asm/kvm_emulate.h | 9 ++------- > arch/arm64/include/asm/kvm_host.h | 3 --- > arch/arm64/kvm/hyp/switch.c | 6 ------ > arch/arm64/kvm/inject_fault.c | 2 +- > virt/kvm/arm/arm.c | 11 ++++++----- > virt/kvm/arm/mmu.c | 6 +++--- > 10 files changed, 16 insertions(+), 37 deletions(-) > Reviewed-by: Andrew Jones <drjones@xxxxxxxxxx>