Skip to contentSkip to conversation

Userspace specific host irq?

DISCUSSION Sheng Yang 1 participant 1 message Jan 8, 2009 KVM

lore
Share & tools
lore

Sheng Yang

author
#0 lore raw

Hi all

This piece of code puzzled me at all time:

virt/kvm/kvm_main.c:assigned_device_update_intx()

Quoted 4 lines
		if (airq->host_irq)
			adev->host_irq = airq->host_irq;
		else
			adev->host_irq = adev->dev->irq;

I don't know why we can let userspace use a different host_irq rather than the real one.

I've queried Amit and Ben-Ami who are the original author about this question, and they also think this piece of code is redundancy. Send the question to the mailing list, if everyone agree, I would discard this one.

Thanks!

Signature · 2 lines
regards
Yang, Sheng