]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: Get rid of vcpu->arch.irq_lines
authorChristoffer Dall <christoffer.dall@linaro.org>
Thu, 3 Aug 2017 10:09:05 +0000 (12:09 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 10:53:10 +0000 (10:53 +0000)
commit446ddd7405ddac1a3f70c3c2d09a1991033b8fed
tree26679eaf7ef8824f7fb535702ecc0c6af0c20eae
parentec0b76c84528967dfb97722f578505e85b5f53c4
KVM: arm/arm64: Get rid of vcpu->arch.irq_lines

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.

Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Julien Thierry <julien.thierry@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/include/asm/kvm_emulate.h
arch/arm/include/asm/kvm_host.h
arch/arm/kvm/emulate.c
arch/arm/kvm/hyp/switch.c
arch/arm64/include/asm/kvm_emulate.h
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/hyp/switch.c
arch/arm64/kvm/inject_fault.c
virt/kvm/arm/arm.c
virt/kvm/arm/mmu.c