[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH for-5.1 V3 3/7] hw/mips: Add CPU IRQ3 delivery for KVM
From: |
Aleksandar Markovic |
Subject: |
Re: [PATCH for-5.1 V3 3/7] hw/mips: Add CPU IRQ3 delivery for KVM |
Date: |
Tue, 12 May 2020 14:57:55 +0200 |
нед, 3. мај 2020. у 12:24 Huacai Chen <address@hidden> је написао/ла:
>
> Currently, KVM/MIPS only deliver I/O interrupt via IP2, this patch add
> IP3 delivery as well, because Loongson-3 based machine use both IRQ2
> (CPU's IP2) and IRQ3 (CPU's IP3).
>
> Signed-off-by: Huacai Chen <address@hidden>
> Co-developed-by: Jiaxun Yang <address@hidden>
> ---
Reviewed-by: Aleksandar Markovic <address@hidden>
> hw/mips/mips_int.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/mips/mips_int.c b/hw/mips/mips_int.c
> index 796730b..982ce34 100644
> --- a/hw/mips/mips_int.c
> +++ b/hw/mips/mips_int.c
> @@ -48,14 +48,14 @@ static void cpu_mips_irq_request(void *opaque, int irq,
> int level)
> if (level) {
> env->CP0_Cause |= 1 << (irq + CP0Ca_IP);
>
> - if (kvm_enabled() && irq == 2) {
> + if (kvm_enabled() && (irq == 2 || irq == 3)) {
> kvm_mips_set_interrupt(cpu, irq, level);
> }
>
> } else {
> env->CP0_Cause &= ~(1 << (irq + CP0Ca_IP));
>
> - if (kvm_enabled() && irq == 2) {
> + if (kvm_enabled() && (irq == 2 || irq == 3)) {
> kvm_mips_set_interrupt(cpu, irq, level);
> }
> }
> --
> 2.7.0
>
- [PATCH for-5.1 V3 0/7] mips: Add Loongson-3 machine support (with KVM), Huacai Chen, 2020/05/03
- [PATCH for-5.1 V3 1/7] configure: Add KVM target support for MIPS64, Huacai Chen, 2020/05/03
- [PATCH for-5.1 V3 2/7] hw/mips: Implement the kvm_type() hook in MachineClass, Huacai Chen, 2020/05/03
- [PATCH for-5.1 V3 3/7] hw/mips: Add CPU IRQ3 delivery for KVM, Huacai Chen, 2020/05/03
- Re: [PATCH for-5.1 V3 3/7] hw/mips: Add CPU IRQ3 delivery for KVM,
Aleksandar Markovic <=
- [PATCH for-5.1 V3 4/7] target/mips: Add Loongson-3 CPU definition, Huacai Chen, 2020/05/03
- [PATCH for-5.1 V3 5/7] target/mips: Add more CP0 register for save/restore, Huacai Chen, 2020/05/03
- [PATCH for-5.1 V3 6/7] hw/mips: Add Loongson-3 machine support (with KVM), Huacai Chen, 2020/05/03
- [PATCH for-5.1 V3 7/7] MAINTAINERS: Add myself as Loongson-3 maintainer, Huacai Chen, 2020/05/03
- Re: [PATCH for-5.1 V3 0/7] mips: Add Loongson-3 machine support (with KVM), Yonggang Luo, 2020/05/03
- Re: [PATCH for-5.1 V3 0/7] mips: Add Loongson-3 machine support (with KVM), no-reply, 2020/05/03
- Re: [PATCH for-5.1 V3 0/7] mips: Add Loongson-3 machine support (with KVM), Aleksandar Markovic, 2020/05/03