qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] target/i386: Added V_INTR_PRIO check to virtual interrupts


From: Paolo Bonzini
Subject: Re: [PATCH] target/i386: Added V_INTR_PRIO check to virtual interrupts
Date: Wed, 28 Jul 2021 11:26:57 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 21/07/21 17:26, Lara Lazier wrote:
+static inline bool ctl_has_irq(uint32_t int_ctl)
+{
+    uint32_t int_prio;
+    uint32_t tpr;
+
+    int_prio = (int_ctl & V_INTR_PRIO_MASK) >> V_INTR_MASKING_SHIFT;

Oops, I missed that this should be V_INTR_PRIO_SHIFT. Can you send the correction please?

Thanks,

Paolo

+    tpr = int_ctl & V_TPR_MASK;
+    return (int_ctl & V_IRQ_MASK) && (int_prio >= tpr);
+}
+




reply via email to

[Prev in Thread] Current Thread [Next in Thread]