All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrii Anisov <andrii.anisov@gmail.com>
To: Julien Grall <julien.grall@arm.com>
Cc: xen-devel@lists.xenproject.org,
	Stefano Stabellini <sstabellini@kernel.org>,
	Andrii Anisov <andrii_anisov@epam.com>
Subject: Re: [PATCH] gic:vgic: avoid excessive conversions
Date: Mon, 19 Nov 2018 14:02:41 +0200	[thread overview]
Message-ID: <81077db3-73a0-6037-cb20-a5dd1510c95e@gmail.com> (raw)
In-Reply-To: <fb41738a-282e-a633-ff60-ac3fca664cee@arm.com>

Hello Julien,


On 16.11.18 19:27, Julien Grall wrote:
>>           if ( !list_empty(&p->inflight) &&
>>                !test_bit(GIC_IRQ_GUEST_VISIBLE, &p->status) )
>> -            gic_raise_guest_irq(v, p->irq, p->lpi_priority);
>> +            gic_raise_guest_irq(v, p);
>
> The interface is not behaving the same way now. I understand that 
> nobody is using the 3 parameters but that's actually a bug with the ITS.
>
> Because the LPI will not be set with expected priority.
But it is not the issue of the interface, you know. Keeping in mind that 
both an inflight and an lr_pending queues are sorted by p->priority, the 
field p->lpi_priority looks odd anyway.

>> -extern void gic_raise_guest_irq(struct vcpu *v, unsigned int irq,
>> -        unsigned int priority);
>> -extern void gic_raise_inflight_irq(struct vcpu *v, unsigned int 
>> virtual_irq);
>> +extern void gic_raise_guest_irq(struct vcpu *v, struct pending_irq *p);
>> +extern void gic_raise_inflight_irq(struct vcpu *v, struct 
>> pending_irq *n);
>
> That code is not going to compile with the new vGIC as pending_irq 
> only exists for the current vGIC.

Yep, I did miss that.

I guess wrapping it with `#ifndef CONFIG_NEW_VGIC` must be enough here. 
Those two functions are not used by, nor defined by new-vgic.


-- 
Sincerely,
Andrii Anisov.


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2018-11-19 12:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-16 16:45 [PATCH] gic:vgic: avoid excessive conversions Andrii Anisov
2018-11-16 17:27 ` Julien Grall
2018-11-19 12:02   ` Andrii Anisov [this message]
2018-11-19 13:54     ` Julien Grall
2018-11-19 15:48       ` Andrii Anisov
2018-11-20 11:09 ` Andrii Anisov
2018-12-19 10:49   ` Andrii Anisov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81077db3-73a0-6037-cb20-a5dd1510c95e@gmail.com \
    --to=andrii.anisov@gmail.com \
    --cc=andrii_anisov@epam.com \
    --cc=julien.grall@arm.com \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.