Skip to contentSkip to conversation

PV drivers for HVM guest

DISCUSSION Ky Srinivasan 2 participants 4 messages Apr 27, 2007

lore
Share & tools
lore
#0 lore raw

In platform_pci.c we register the IRQ that the hypervisor should use to notify the guest in response to event channel notifications. In cases where the mapping between irq and vectors are not one to one, I am not sure how this can work. For instance, on a RHEL 4 installation (with acpi turned on) I am looking at, the irq assigned to the platform-pci device is 185! Consequently the set_callback_irq() fails since the number passed down exceeds the number of pins being emulated. Any insight will be greatly appreciated.

Regards,

K. Y

#1 lore raw

After some more hacking, if I were to use the irqline information available in the pci config space for this device, both in establishing the handler for this device (request_irq()) as well as in registering the callback irq (set_callback_irq()) things seem to work.

Regards,

K. Y

Quoted 1 line
Quoted 1 line
Quoted 1 line

On Fri, Apr 27, 2007 at 3:12 PM, in message <[email protected]>,

Quoted 19 lines · Ky Srinivasan

In platform_pci.c we register the IRQ that the hypervisor should use to notify the guest in response to event channel notifications. In cases where the mapping between irq and vectors are not one to one, I am not sure how this can work. For instance, on a RHEL 4 installation (with acpi turned on) I am looking at, the irq assigned to the platform- pci device is 185! Consequently the set_callback_irq() fails since the number passed down exceeds the number of pins being emulated. Any insight will be greatly appreciated.

Regards,

K. Y

_______________________________________________
Xen- devel mailing list
Xen- [email protected]
http://lists.xensource.com/xen- devel

#2 lore raw
In reply to Ky Srinivasan

After some more hacking, if I were to use the irqline information available in the pci config space for this device, both in establishing the handler for this device (request_irq()) as well as in registering the callback irq (set_callback_irq()) things seem to work.

Regards,

K. Y

Quoted 1 line
Quoted 1 line
Quoted 1 line

On Fri, Apr 27, 2007 at 3:12 PM, in message <[email protected]>,

Quoted 19 lines · Ky Srinivasan

In platform_pci.c we register the IRQ that the hypervisor should use to notify the guest in response to event channel notifications. In cases where the mapping between irq and vectors are not one to one, I am not sure how this can work. For instance, on a RHEL 4 installation (with acpi turned on) I am looking at, the irq assigned to the platform- pci device is 185! Consequently the set_callback_irq() fails since the number passed down exceeds the number of pins being emulated. Any insight will be greatly appreciated.

Regards,

K. Y

_______________________________________________
Xen- devel mailing list
Xen- [email protected]
http://lists.xensource.com/xen- devel

#3 lore raw
In reply to Ky Srinivasan
Quoted 7 lines · Ky Srinivasan

In platform_pci.c we register the IRQ that the hypervisor should use to notify the guest in response to event channel notifications. In cases where the mapping between irq and vectors are not one to one, I am not sure how this can work. For instance, on a RHEL 4 installation (with acpi turned on) I am looking at, the irq assigned to the platform-pci device is 185! Consequently the set_callback_irq() fails since the number passed down exceeds the number of pins being emulated. Any insight will be greatly appreciated.

3.0.5-rc doesn't have this problem. We pass down the PCI device address and let Xen work it out from that.

--- Keir