Skip to contentSkip to conversation

xen/x86: Remove is_periodic_irq() prototype

PATCH In review Jason Andryuk 3 participants 6 messages May 27, 2025 – Jun 2, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/x86: Remove is_periodic_irq() prototype

is_periodic_irq() was removed in the Fixes commit, but the prototype remained. Drop it now.

Fixes ddc35d1cc994 ("[HVM] Enable more than one platform timer...")

---
The full Fixes line is:

Fixes ddc35d1cc994 ("[HVM] Enable more than one platform timer (PIT/RTC/HPET) programmed as periodic timer and adds them to abstract layer, which keeps track of pending_intr_nr to avoid time interrupt lost and sync'ed timer with TSC.")
---
 xen/arch/x86/include/asm/hvm/vpic.h | 1 -
 1 file changed, 1 deletion(-)
xen/arch/x86/include/asm/hvm/vpic.h +0 -1
index d71b270193..78ed33e9aa 100644
@@ -35,6 +35,5 @@ void vpic_irq_negative_edge(struct domain *d, int irq);
 void vpic_init(struct domain *d);
 void vpic_reset(struct domain *d);
 int vpic_ack_pending_irq(struct vcpu *v);
-int is_periodic_irq(struct vcpu *v, int irq, int type);
 
 #endif  /* __ASM_X86_HVM_VPIC_H__ */  
Signature · 1 line
2.49.0
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Jason Andryuk

is_periodic_irq() was removed in the Fixes commit, but the prototype remained. Drop it now.

Fixes ddc35d1cc994 ("[HVM] Enable more than one platform timer...")
Quoted 3 lines

---
The full Fixes line is:

Fixes ddc35d1cc994 ("[HVM] Enable more than one platform timer (PIT/RTC/HPET) programmed as periodic timer and adds them to abstract layer, which keeps track of pending_intr_nr to avoid time interrupt lost and sync'ed timer with TSC.")

Yeah, the older commit messages weren't as well structured as we insist on them being these days.

How did you find this?  inspection, or a tool?

~Andrew

#2 lore raw
Quoted 8 lines · Andrew Cooper
Quoted 5 lines · Jason Andryuk

is_periodic_irq() was removed in the Fixes commit, but the prototype remained. Drop it now.

Fixes ddc35d1cc994 ("[HVM] Enable more than one platform timer...")

Thanks!

Quoted 8 lines
Quoted 3 lines

---
The full Fixes line is:

Fixes ddc35d1cc994 ("[HVM] Enable more than one platform timer (PIT/RTC/HPET) programmed as periodic timer and adds them to abstract layer, which keeps track of pending_intr_nr to avoid time interrupt lost and sync'ed timer with TSC.")

Yeah, the older commit messages weren't as well structured as we insist on them being these days.

How did you find this?  inspection, or a tool?

grep after looking at your vpic.h patch :)

Regards,
Jason

#3 lore raw
Quoted 19 lines · Jason Andryuk
Quoted 8 lines · Andrew Cooper
Quoted 5 lines · Jason Andryuk

is_periodic_irq() was removed in the Fixes commit, but the prototype remained.  Drop it now.

Fixes ddc35d1cc994 ("[HVM] Enable more than one platform timer...")

Thanks!

Quoted 7 lines
Quoted 6 lines

---
The full Fixes line is:

Fixes ddc35d1cc994 ("[HVM] Enable more than one platform timer

(PIT/RTC/HPET) programmed as periodic timer and adds them to abstract layer, which keeps track of pending_intr_nr to avoid time interrupt lost and sync'ed timer with TSC.")

Quoted 6 lines
Quoted 4 lines

Yeah, the older commit messages weren't as well structured as we insist on them being these days.

How did you find this?  inspection, or a tool?

grep after looking at your vpic.h patch :)

I grepped all prototypes in one go, which is why I missed it...

I had a more extreme version of this patch moving vpic.h into hvm/, but that's the only header of the set you can do this with.  All others have a contributing part of struct domain or struct vcpu, and I don't have time to untangle sched.h today.

~Andrew

#4 lore raw
In reply to Andrew Cooper
Quoted 9 lines · Andrew Cooper
Quoted 5 lines · Jason Andryuk

is_periodic_irq() was removed in the Fixes commit, but the prototype remained. Drop it now.

Fixes ddc35d1cc994 ("[HVM] Enable more than one platform timer...")
Quoted 8 lines
Quoted 3 lines

---
The full Fixes line is:

Fixes ddc35d1cc994 ("[HVM] Enable more than one platform timer (PIT/RTC/HPET) programmed as periodic timer and adds them to abstract layer, which keeps track of pending_intr_nr to avoid time interrupt lost and sync'ed timer with TSC.")

Yeah, the older commit messages weren't as well structured as we insist on them being these days.

How did you find this?  inspection, or a tool?

What I'm curious about: Why didn't Eclair spot this?

Jan

#5 lore raw
Quoted 9 lines · Jan Beulich
Quoted 8 lines · Andrew Cooper
Quoted 5 lines · Jason Andryuk

is_periodic_irq() was removed in the Fixes commit, but the prototype remained. Drop it now.

Fixes ddc35d1cc994 ("[HVM] Enable more than one platform timer...")
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines

---
The full Fixes line is:

Fixes ddc35d1cc994 ("[HVM] Enable more than one platform timer (PIT/RTC/HPET) programmed as periodic timer and adds them to abstract layer, which keeps track of pending_intr_nr to avoid time interrupt lost and sync'ed timer with TSC.")

Yeah, the older commit messages weren't as well structured as we insist on them being these days.

How did you find this?  inspection, or a tool?

What I'm curious about: Why didn't Eclair spot this?

I don't see how this case is distinguishable from the DCE case dropping calls to compiled-out functions, which is a deviation because of how Xen wants to work.

~Andrew